afaytangleroot1.lua 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : SpawnScripts/Peatbog_Classic/afaytangleroot1.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.11.04 07:11:30
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. waypoints(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. end
  16. function respawn(NPC)
  17. spawn(NPC)
  18. end
  19. function waypoints(NPC)
  20. MovementLoopAddLocation(NPC, 683.83, -33.19, 519.99, 2, 6)
  21. MovementLoopAddLocation(NPC, 696.65, -32.55, 522.84, 2, math.random(5,10))
  22. MovementLoopAddLocation(NPC, 696.65, -32.55, 522.84, 2, 0)
  23. MovementLoopAddLocation(NPC, 702.71, -33.88, 511.03, 2, math.random(5,10))
  24. MovementLoopAddLocation(NPC, 702.71, -33.88, 511.03, 2, 0)
  25. MovementLoopAddLocation(NPC, 702.88, -33.05, 504.25, 2, math.random(5,10))
  26. MovementLoopAddLocation(NPC, 702.88, -33.05, 504.25, 2, 0)
  27. MovementLoopAddLocation(NPC, 706.96, -33.06, 504.21, 2, 0)
  28. MovementLoopAddLocation(NPC, 712.94, -33.39, 509.2, 2, math.random(5,10))
  29. MovementLoopAddLocation(NPC, 712.94, -33.39, 509.2, 2, 0)
  30. MovementLoopAddLocation(NPC, 713.11, -33.86, 516.1, 2, math.random(5,10))
  31. MovementLoopAddLocation(NPC, 713.11, -33.86, 516.1, 2, 0)
  32. MovementLoopAddLocation(NPC, 723.42, -32.91, 512.2, 2, math.random(5,10))
  33. MovementLoopAddLocation(NPC, 723.42, -32.91, 512.2, 2, 0)
  34. MovementLoopAddLocation(NPC, 716.12, -33.53, 513.05, 2, math.random(5,10))
  35. MovementLoopAddLocation(NPC, 716.12, -33.53, 513.05, 2, 0)
  36. MovementLoopAddLocation(NPC, 710.3, -32.86, 522.8, 2, math.random(5,10))
  37. MovementLoopAddLocation(NPC, 710.3, -32.86, 522.8, 2, 0)
  38. MovementLoopAddLocation(NPC, 697.34, -32.12, 525.4, 2, math.random(5,10))
  39. MovementLoopAddLocation(NPC, 697.34, -32.12, 525.4, 2, 0)
  40. MovementLoopAddLocation(NPC, 678.13, -33.14, 523.91, 2, math.random(5,10))
  41. MovementLoopAddLocation(NPC, 678.13, -33.14, 523.91, 2, 0)
  42. MovementLoopAddLocation(NPC, 683.83, -33.19, 519.99, 2, 4)
  43. end