acorrupteddryadPatrol.lua 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : SpawnScripts/Oakmyst_Classic/acorrupteddryadPatrol.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.18 09:10:40
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/MonsterCallouts/Dryad_Corrupt1.lua")
  9. require "SpawnScripts/Generic/NPCModule"
  10. function spawn(NPC, Spawn)
  11. NPCModule(NPC, Spawn)
  12. waypoints(NPC)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function waypoints(NPC)
  18. if GetSpawnLocationID(NPC)==133778971 then
  19. MovementLoopAddLocation(NPC, 910.3, 14.75, -177.67, 1, 6)
  20. MovementLoopAddLocation(NPC, 909.7, 15.67, -185.22, 1, 0)
  21. MovementLoopAddLocation(NPC, 913.95, 16.44, -188.68, 1, 0)
  22. MovementLoopAddLocation(NPC, 919.14, 16.48, -189.56, 1, 0)
  23. MovementLoopAddLocation(NPC, 924.17, 14.2, -190.29, 1, 0)
  24. MovementLoopAddLocation(NPC, 927.57, 11.24, -191.23, 1, 0)
  25. MovementLoopAddLocation(NPC, 930.86, 7.17, -199.94, 1, 0)
  26. MovementLoopAddLocation(NPC, 931.73, 5.98, -203.1, 1, 0)
  27. MovementLoopAddLocation(NPC, 934.9, 4.21, -205.88, 1, 0)
  28. MovementLoopAddLocation(NPC, 940.71, 4.46, -206.98, 1, 0)
  29. MovementLoopAddLocation(NPC, 944.62, 4.91, -206.77, 1, 0)
  30. MovementLoopAddLocation(NPC, 947.55, 5.19, -202.25, 1, math.random(6,12))
  31. MovementLoopAddLocation(NPC, 947.55, 5.19, -202.25, 1, 0)
  32. MovementLoopAddLocation(NPC, 944.24, 4.93, -205.66, 1, 0)
  33. MovementLoopAddLocation(NPC, 939.47, 4.29, -206.96, 1, 0)
  34. MovementLoopAddLocation(NPC, 934.96, 4.23, -205.62, 1, 0)
  35. MovementLoopAddLocation(NPC, 931.1, 6.12, -202.89, 1, 0)
  36. MovementLoopAddLocation(NPC, 931.27, 7.4, -199.07, 1, 0)
  37. MovementLoopAddLocation(NPC, 930.52, 7.89, -196.42, 1, 0)
  38. MovementLoopAddLocation(NPC, 925.04, 13.53, -191.05, 1, 0)
  39. MovementLoopAddLocation(NPC, 919.61, 16.1, -190.78, 1, 0)
  40. MovementLoopAddLocation(NPC, 916.18, 16.22, -190.65, 1, 0)
  41. MovementLoopAddLocation(NPC, 909.86, 15.72, -186.03, 1, 0)
  42. MovementLoopAddLocation(NPC, 910.3, 14.75, -177.67, 1, 6)
  43. end
  44. end