afaytangleroot1.lua 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. function spawn(NPC)
  9. waypoints(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function waypoints(NPC)
  18. MovementLoopAddLocation(NPC, 683.83, -33.19, 519.99, 2, 4)
  19. MovementLoopAddLocation(NPC, 696.65, -32.55, 522.84, 2, math.random(5,10))
  20. MovementLoopAddLocation(NPC, 696.65, -32.55, 522.84, 2, 0)
  21. MovementLoopAddLocation(NPC, 702.71, -33.88, 511.03, 2, math.random(5,10))
  22. MovementLoopAddLocation(NPC, 702.71, -33.88, 511.03, 2, 0)
  23. MovementLoopAddLocation(NPC, 702.88, -33.05, 504.25, 2, math.random(5,10))
  24. MovementLoopAddLocation(NPC, 702.88, -33.05, 504.25, 2, 0)
  25. MovementLoopAddLocation(NPC, 706.96, -33.06, 504.21, 2, 0)
  26. MovementLoopAddLocation(NPC, 712.94, -33.39, 509.2, 2, math.random(5,10))
  27. MovementLoopAddLocation(NPC, 712.94, -33.39, 509.2, 2, 0)
  28. MovementLoopAddLocation(NPC, 713.11, -33.86, 516.1, 2, math.random(5,10))
  29. MovementLoopAddLocation(NPC, 713.11, -33.86, 516.1, 2, 0)
  30. MovementLoopAddLocation(NPC, 723.42, -32.91, 512.2, 2, math.random(5,10))
  31. MovementLoopAddLocation(NPC, 723.42, -32.91, 512.2, 2, 0)
  32. MovementLoopAddLocation(NPC, 716.12, -33.53, 513.05, 2, math.random(5,10))
  33. MovementLoopAddLocation(NPC, 716.12, -33.53, 513.05, 2, 0)
  34. MovementLoopAddLocation(NPC, 710.3, -32.86, 522.8, 2, math.random(5,10))
  35. MovementLoopAddLocation(NPC, 710.3, -32.86, 522.8, 2, 0)
  36. MovementLoopAddLocation(NPC, 697.34, -32.12, 525.4, 2, math.random(5,10))
  37. MovementLoopAddLocation(NPC, 697.34, -32.12, 525.4, 2, 0)
  38. MovementLoopAddLocation(NPC, 678.13, -33.14, 523.91, 2, math.random(5,10))
  39. MovementLoopAddLocation(NPC, 678.13, -33.14, 523.91, 2, 0)
  40. MovementLoopAddLocation(NPC, 683.83, -33.19, 519.99, 2, 4)
  41. end