9
3

Patroller1.lua 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/Patroller1.lua
  3. Script Purpose : a Qeynos Guardsman <Guard>
  4. Script Author : John Adams - updated by Rylec (updated movement - old is saved)
  5. Script Date : 2008.11.26
  6. Script Notes : Attempting to create a "leader" guard the other 3 will follow around the island.
  7. --]]
  8. function spawn(NPC)
  9. waypoints(NPC)
  10. --[[ --Syntax is NPC, x, y, z, speed, delay (in seconds) (John Adams old path, might be old path so keeping it for now)
  11. MovementLoopAddLocation(NPC, 21.09, -5.30, 161.75, 2, 0)
  12. MovementLoopAddLocation(NPC, 21.18, -5.28, 144.12, 2, 0)
  13. MovementLoopAddLocation(NPC, 16.59, -5.27, 133.36, 2, 0)
  14. MovementLoopAddLocation(NPC, 10.50, -5.24, 114.47, 2, 0)
  15. MovementLoopAddLocation(NPC, 6.95, -5.22, 103.47, 2, 0)
  16. MovementLoopAddLocation(NPC, -25.22, -5.10, 100.19, 2, 0)
  17. MovementLoopAddLocation(NPC, -52.38, -5.79, 108.30, 2, 0)
  18. MovementLoopAddLocation(NPC, -55.46, -4.91, 131.16, 2, 0)
  19. MovementLoopAddLocation(NPC, -46.75, -5.04, 157.32, 2, 0)
  20. MovementLoopAddLocation(NPC, -23.70, -5.12, 176.13, 2, 0)
  21. MovementLoopAddLocation(NPC, -9.30, -5.20, 186.68, 2, 0)
  22. MovementLoopAddLocation(NPC, -21.30, -5.41, 217.11, 2, 0)
  23. MovementLoopAddLocation(NPC, -7.47, -5.21, 188.38, 2, 0)
  24. MovementLoopAddLocation(NPC, 1.16, -5.22, 181.35, 2, 0)
  25. MovementLoopAddLocation(NPC, 12.73, -5.26, 172.09, 2, 0)
  26. --]]
  27. end
  28. function respawn(NPC)
  29. spawn(NPC)
  30. end
  31. function hailed(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. -- Emote(NPC, "glares at you.")
  34. -- Say(NPC, "Yes, I'm busy. Hurry up now, what is it?")
  35. end
  36. function waypoints(NPC)
  37. MovementLoopAddLocation(NPC, -21.39, -5.38, 216.76, 2, 2)
  38. MovementLoopAddLocation(NPC, -9.77, -5.22, 190.18, 2, 0)
  39. MovementLoopAddLocation(NPC, -27.77, -5.11, 172.5, 2, 0)
  40. MovementLoopAddLocation(NPC, -48.04, -5.03, 158.19, 2, 0)
  41. MovementLoopAddLocation(NPC, -56.81, -4.99, 134.91, 2, 0)
  42. MovementLoopAddLocation(NPC, -53.47, -5.49, 110.98, 2, 0)
  43. MovementLoopAddLocation(NPC, -34.49, -5.07, 101.44, 2, 0)
  44. MovementLoopAddLocation(NPC, -48.36, -5.13, 108.76, 2, 0)
  45. MovementLoopAddLocation(NPC, -52.25, -5.14, 112.06, 2, 0)
  46. MovementLoopAddLocation(NPC, -54.23, -5.47, 112.1, 2, 0)
  47. MovementLoopAddLocation(NPC, -57.14, -4.99, 133.36, 2, 0)
  48. MovementLoopAddLocation(NPC, -47.15, -5.03, 158.1, 2, 0)
  49. MovementLoopAddLocation(NPC, -25.05, -5.12, 175.27, 2, 0)
  50. MovementLoopAddLocation(NPC, -10.53, -5.22, 190.4, 2, 0)
  51. MovementLoopAddLocation(NPC, 15.99, -5.27, 169.85, 2, 0)
  52. MovementLoopAddLocation(NPC, 33.96, -6.05, 167.83, 2, 0)
  53. MovementLoopAddLocation(NPC, 46.71, -3.38, 167.21, 2, 0)
  54. MovementLoopAddLocation(NPC, 16.43, -5.27, 169.85, 2, 0)
  55. MovementLoopAddLocation(NPC, -10.74, -5.21, 190.95, 2, 0)
  56. end