agossamergroundskeeper.lua 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : SpawnScripts/ForestRuins/agossamergroundskeeper.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.02.26 11:02:09
  5. Script Purpose : Grounds keeper pathing in Forest Ruins
  6. :
  7. --]]
  8. function spawn(NPC)
  9. waypoints(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. end
  14. function respawn(NPC)
  15. end
  16. function waypoints(NPC)
  17. if GetSpawnLocationID(NPC)==424758 then
  18. MovementLoopAddLocation(NPC, 1054.41, -10.25, -674.03, 2, 0)
  19. MovementLoopAddLocation(NPC, 1062.13, -10.25, -692.43, 2, 0)
  20. MovementLoopAddLocation(NPC, 1059.32, -10.25, -704.01, 2, 0)
  21. MovementLoopAddLocation(NPC, 1054.11, -10.25, -710.41, 2, 0)
  22. MovementLoopAddLocation(NPC, 1038.42, -10.32, -706.81, 2, 5)
  23. MovementLoopAddLocation(NPC, 1031.17, -10.25, -702.45, 2, 0)
  24. MovementLoopAddLocation(NPC, 1026.93, -10.25, -692.83, 2, 0)
  25. MovementLoopAddLocation(NPC, 1060.11, -10.25, -673.05, 2, 5)
  26. MovementLoopAddLocation(NPC, 1083.37, -10.25, -661.99, 2, 0)
  27. else if GetSpawnLocationID(NPC)==424748 then
  28. MovementLoopAddLocation(NPC, 1022.49, -10.25, -688.72, 2, 0)
  29. MovementLoopAddLocation(NPC, 1011.3, -19, -664.87, 2, 0)
  30. MovementLoopAddLocation(NPC, 1010.45, -19, -660.17, 2, 0)
  31. MovementLoopAddLocation(NPC, 1018.87, -19.01, -651.51, 2, 0)
  32. MovementLoopAddLocation(NPC, 1028.21, -19, -653.71, 2, 0)
  33. MovementLoopAddLocation(NPC, 1030.3, -19, -661.95, 2, 0)
  34. MovementLoopAddLocation(NPC, 1027.52, -18.99, -652.75, 2, 0)
  35. MovementLoopAddLocation(NPC, 1029.21, -19.01, -646.1, 2, 5)
  36. MovementLoopAddLocation(NPC, 1042.8, -19.01, -640.33, 2, 0)
  37. MovementLoopAddLocation(NPC, 1052.54, -19.01, -645.16, 2, 5)
  38. MovementLoopAddLocation(NPC, 1043.5, -19.01, -649.4, 2, 0)
  39. MovementLoopAddLocation(NPC, 1052.15, -12.3, -665.86, 2, 0)
  40. MovementLoopAddLocation(NPC, 1056.82, -10.25, -677.94, 2, 0)
  41. MovementLoopAddLocation(NPC, 1026.39, -10.25, -693.81, 2, 5)
  42. end
  43. end
  44. end