9
3

Patroller1.lua 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/Patroller1.lua
  3. Script Purpose : a Qeynos Guardsman <Guard>
  4. Script Author : John Adams
  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. --Syntax is NPC, x, y, z, speed, delay (in seconds)
  10. MovementLoopAddLocation(NPC, 21.09, -5.30, 161.75, 2, 0)
  11. MovementLoopAddLocation(NPC, 21.18, -5.28, 144.12, 2, 0)
  12. MovementLoopAddLocation(NPC, 16.59, -5.27, 133.36, 2, 0)
  13. MovementLoopAddLocation(NPC, 10.50, -5.24, 114.47, 2, 0)
  14. MovementLoopAddLocation(NPC, 6.95, -5.22, 103.47, 2, 0)
  15. MovementLoopAddLocation(NPC, -25.22, -5.10, 100.19, 2, 0)
  16. MovementLoopAddLocation(NPC, -52.38, -5.79, 108.30, 2, 0)
  17. MovementLoopAddLocation(NPC, -55.46, -4.91, 131.16, 2, 0)
  18. MovementLoopAddLocation(NPC, -46.75, -5.04, 157.32, 2, 0)
  19. MovementLoopAddLocation(NPC, -23.70, -5.12, 176.13, 2, 0)
  20. MovementLoopAddLocation(NPC, -9.30, -5.20, 186.68, 2, 0)
  21. MovementLoopAddLocation(NPC, -21.30, -5.41, 217.11, 2, 0)
  22. MovementLoopAddLocation(NPC, -7.47, -5.21, 188.38, 2, 0)
  23. MovementLoopAddLocation(NPC, 1.16, -5.22, 181.35, 2, 0)
  24. MovementLoopAddLocation(NPC, 12.73, -5.26, 172.09, 2, 0)
  25. end
  26. function respawn(NPC)
  27. spawn(NPC)
  28. end
  29. function hailed(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. Emote(NPC, "glares at you.")
  32. Say(NPC, "Yes, I'm busy. Hurry up now, what is it?")
  33. end