afreshwatertrout2.lua 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : SpawnScripts/Oakmyst_Classic/afreshwatertrout2.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.19 07:10:49
  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, 916.65, 0.29, -265.67, 2, 4)
  19. MovementLoopAddLocation(NPC, 923.5, 0.19, -260.99, 2, 0)
  20. MovementLoopAddLocation(NPC, 931.04, 0.27, -262.99, 2, math.random(5,10))
  21. MovementLoopAddLocation(NPC, 931.04, 0.27, -262.99, 2, 0)
  22. MovementLoopAddLocation(NPC, 934.46, 0.71, -257.49, 2, math.random(5,10))
  23. MovementLoopAddLocation(NPC, 934.46, 0.71, -257.49, 2, 0)
  24. MovementLoopAddLocation(NPC, 928.76, 0.28, -259.37, 2, 0)
  25. MovementLoopAddLocation(NPC, 917.97, 0.21, -267.64, 2, 0)
  26. MovementLoopAddLocation(NPC, 915.04, 0.55, -269.12, 2, math.random(5,10))
  27. MovementLoopAddLocation(NPC, 915.04, 0.55, -269.12, 2, 0)
  28. MovementLoopAddLocation(NPC, 923.74, 0.07, -262.18, 2, 0)
  29. MovementLoopAddLocation(NPC, 924.92, 0.44, -257.79, 2, math.random(5,10))
  30. MovementLoopAddLocation(NPC, 924.92, 0.44, -257.79, 2, 0)
  31. MovementLoopAddLocation(NPC, 922.57, 0.01, -267.41, 2, math.random(5,10))
  32. MovementLoopAddLocation(NPC, 922.57, 0.01, -267.41, 2, 0)
  33. MovementLoopAddLocation(NPC, 915.74, 0.4, -263.98, 2, math.random(5,10))
  34. MovementLoopAddLocation(NPC, 915.74, 0.4, -263.98, 2, 0)
  35. MovementLoopAddLocation(NPC, 916.65, 0.29, -265.67, 2, 4)
  36. end