aFreeportresident56725.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : SpawnScripts/Freeport/aFreeportresident56725.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.05.02 12:05:04
  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, -40.09, -20.05, -260.67, 2)
  13. MoveToLocation(NPC, -20.25, -18.80, -260.50, 2)
  14. MoveToLocation(NPC, -18.95, -18.80, -247.79, 2)
  15. MoveToLocation(NPC, -10.97, -18.80, -237.51, 2, "heading")
  16. end
  17. function heading(NPC)
  18. SetHeading(NPC, 176.94)
  19. AddTimer(NPC, 7000, "movement_loop_continue", 1)
  20. end
  21. function movement_loop_continue(NPC)
  22. MoveToLocation(NPC, -18.95, -18.80, -247.79, 2)
  23. MoveToLocation(NPC, -20.25, -18.80, -260.50, 2)
  24. MoveToLocation(NPC, -38.93, -20.05, -261.50, 2)
  25. MoveToLocation(NPC, -52.94, -19.97, -292.72, 2, "heading2")
  26. end
  27. function heading2(NPC)
  28. SetHeading(NPC, -292.72)
  29. AddTimer(NPC, 7000, "movement_loop_start", 1)
  30. end
  31. function hailed(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. AddTimer(NPC, 7000, "movement_loop_start", 1)
  34. end
  35. function respawn(NPC)
  36. spawn(NPC)
  37. end