aFreeportdenizen55697.lua 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : SpawnScripts/Freeport/aFreeportdenizen55697.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.04.24 07:04:15
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. MoveToLocation(NPC, 268.99, -3.55, -95.23, 2, "Turn")
  10. end
  11. function Turn(NPC, Spawn)
  12. SetHeading(NPC, -341.74)
  13. AddTimer(NPC, 6000, "delayed_movement", 1, Spawn)
  14. end
  15. function delayed_movement(NPC, Spawn)
  16. MoveToLocation(NPC, 262.65, -3.54, -95.52, 2)
  17. MoveToLocation(NPC, 250.47, -3.52, -101.02, 2)
  18. MoveToLocation(NPC, 227.58, -3.50, -98.16, 2)
  19. MoveToLocation(NPC, 208.70, -4.11, -88.33, 2)
  20. MoveToLocation(NPC, 194.91, -3.71, -88.32, 2)
  21. MoveToLocation(NPC, 189.28, -3.52, -91.82, 2)
  22. MoveToLocation(NPC, 180.16, -3.47, -101.66, 2)
  23. MoveToLocation(NPC, 162.25, -3.53, -104.58, 2)
  24. MoveToLocation(NPC, 155.53, -4.02, -108.19, 2, "Turn2")
  25. end
  26. function Turn2(NPC, Spawn)
  27. SetHeading(NPC, 55.31)
  28. AddTimer(NPC, 5000, "delayed_movement2", 1, Spawn)
  29. end
  30. function delayed_movement2(NPC, Spawn)
  31. MoveToLocation(NPC, 162.25, -3.53, -104.58, 2, 1)
  32. MoveToLocation(NPC, 180.16, -3.47, -101.66, 2, 1)
  33. MoveToLocation(NPC, 189.28, -3.52, -91.82, 2, 1)
  34. MoveToLocation(NPC, 194.91, -3.71, -88.32, 2, 1)
  35. MoveToLocation(NPC, 208.70, -4.11, -88.33, 2, 1)
  36. MoveToLocation(NPC, 227.58, -3.50, -98.16, 2, 1)
  37. MoveToLocation(NPC, 250.47, -3.52, -101.02, 2, 1)
  38. MoveToLocation(NPC, 268.99, -3.55, -95.23, 2, 5, "Turn")
  39. end
  40. function hailed(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. delayed_movement2(NPC, Spawn)
  43. end
  44. function respawn(NPC)
  45. spawn(NPC)
  46. end