afreshwatertrout3.lua 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --[[
  2. Script Name : SpawnScripts/Oakmyst_Classic/afreshwatertrout3.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.19 07:10:26
  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, 922.23, 0.08, -262.01, 2, 4)
  19. MovementLoopAddLocation(NPC, 916.57, 0.3, -263.78, 2, math.random(5,10))
  20. MovementLoopAddLocation(NPC, 916.57, 0.3, -263.78, 2, 0)
  21. MovementLoopAddLocation(NPC, 926.13, 0.41, -256.72, 2, 0)
  22. MovementLoopAddLocation(NPC, 936.44, 0.89, -255.03, 2, 0)
  23. MovementLoopAddLocation(NPC, 939.02, 0.98, -253.16, 2, math.random(5,10))
  24. MovementLoopAddLocation(NPC, 939.02, 0.98, -253.16, 2, 0)
  25. MovementLoopAddLocation(NPC, 934.63, 0.71, -257, 2, 0)
  26. MovementLoopAddLocation(NPC, 934.14, 0.63, -267.49, 2, math.random(5,10))
  27. MovementLoopAddLocation(NPC, 934.14, 0.63, -267.49, 2, 0)
  28. MovementLoopAddLocation(NPC, 923.01, 0.5, -258.05, 2, math.random(5,10))
  29. MovementLoopAddLocation(NPC, 923.01, 0.5, -258.05, 2, 0)
  30. MovementLoopAddLocation(NPC, 918.22, 0.18, -267.41, 2, math.random(5,10))
  31. MovementLoopAddLocation(NPC, 918.22, 0.18, -267.41, 2, 0)
  32. MovementLoopAddLocation(NPC, 922.23, 0.08, -262.01, 2, 4)
  33. end