afreshwatertrout3.lua 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. 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, 922.23, 0.08, -262.01, 2, 4)
  21. MovementLoopAddLocation(NPC, 916.57, 0.3, -263.78, 2, math.random(5,10))
  22. MovementLoopAddLocation(NPC, 916.57, 0.3, -263.78, 2, 0)
  23. MovementLoopAddLocation(NPC, 926.13, 0.41, -256.72, 2, 0)
  24. MovementLoopAddLocation(NPC, 936.44, 0.89, -255.03, 2, 0)
  25. MovementLoopAddLocation(NPC, 939.02, 0.98, -253.16, 2, math.random(5,10))
  26. MovementLoopAddLocation(NPC, 939.02, 0.98, -253.16, 2, 0)
  27. MovementLoopAddLocation(NPC, 934.63, 0.71, -257, 2, 0)
  28. MovementLoopAddLocation(NPC, 934.14, 0.63, -267.49, 2, math.random(5,10))
  29. MovementLoopAddLocation(NPC, 934.14, 0.63, -267.49, 2, 0)
  30. MovementLoopAddLocation(NPC, 923.01, 0.5, -258.05, 2, math.random(5,10))
  31. MovementLoopAddLocation(NPC, 923.01, 0.5, -258.05, 2, 0)
  32. MovementLoopAddLocation(NPC, 918.22, 0.18, -267.41, 2, math.random(5,10))
  33. MovementLoopAddLocation(NPC, 918.22, 0.18, -267.41, 2, 0)
  34. MovementLoopAddLocation(NPC, 922.23, 0.08, -262.01, 2, 4)
  35. end