aFreeportdenizen55693.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : SpawnScripts/Freeport/aFreeportdenizen55693.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.04.29 09:04:02
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. movement_loop_start(NPC)
  10. end
  11. function movement_loop_start(NPC)
  12. MoveToLocation(NPC, 55.33, -20.18, 62.93, 2)
  13. MoveToLocation(NPC, 51.75, -19.93, 75.50, 2)
  14. MoveToLocation(NPC, 42.39, -18.22, 89.47, 2)
  15. MoveToLocation(NPC, 29.07, -18.22, 92.13, 2)
  16. MoveToLocation(NPC, 25.96, -18.22, 90.15, 2, "heading")
  17. end
  18. function heading(NPC)
  19. SetHeading(NPC, 59.67)
  20. AddTimer(NPC, 7000, "movement_loop_continue", 1)
  21. end
  22. function movement_loop_continue(NPC)
  23. MoveToLocation(NPC, 29.60, -18.22, 92.18, 2)
  24. MoveToLocation(NPC, 44.04, -18.22, 86.02, 2)
  25. MoveToLocation(NPC, 52.12, -19.92, 76.37, 2)
  26. MoveToLocation(NPC, 53.94, -20.17, 61.03, 2)
  27. MoveToLocation(NPC, 49.78, -19.94, 60.49, 2, "heading2")
  28. end
  29. function heading2(NPC)
  30. SetHeading(NPC, 52.89)
  31. AddTimer(NPC, 7000, "movement_loop_start", 1)
  32. end
  33. function hailed(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. AddTimer(NPC, 7000, "movement_loop_continue", 1)
  36. end
  37. function respawn(NPC)
  38. spawn(NPC)
  39. end