afreshwatertrout2.lua 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. 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, 916.65, 0.29, -265.67, 2, 4)
  21. MovementLoopAddLocation(NPC, 923.5, 0.19, -260.99, 2, 0)
  22. MovementLoopAddLocation(NPC, 931.04, 0.27, -262.99, 2, math.random(5,10))
  23. MovementLoopAddLocation(NPC, 931.04, 0.27, -262.99, 2, 0)
  24. MovementLoopAddLocation(NPC, 934.46, 0.71, -257.49, 2, math.random(5,10))
  25. MovementLoopAddLocation(NPC, 934.46, 0.71, -257.49, 2, 0)
  26. MovementLoopAddLocation(NPC, 928.76, 0.28, -259.37, 2, 0)
  27. MovementLoopAddLocation(NPC, 917.97, 0.21, -267.64, 2, 0)
  28. MovementLoopAddLocation(NPC, 915.04, 0.55, -269.12, 2, math.random(5,10))
  29. MovementLoopAddLocation(NPC, 915.04, 0.55, -269.12, 2, 0)
  30. MovementLoopAddLocation(NPC, 923.74, 0.07, -262.18, 2, 0)
  31. MovementLoopAddLocation(NPC, 924.92, 0.44, -257.79, 2, math.random(5,10))
  32. MovementLoopAddLocation(NPC, 924.92, 0.44, -257.79, 2, 0)
  33. MovementLoopAddLocation(NPC, 922.57, 0.01, -267.41, 2, math.random(5,10))
  34. MovementLoopAddLocation(NPC, 922.57, 0.01, -267.41, 2, 0)
  35. MovementLoopAddLocation(NPC, 915.74, 0.4, -263.98, 2, math.random(5,10))
  36. MovementLoopAddLocation(NPC, 915.74, 0.4, -263.98, 2, 0)
  37. MovementLoopAddLocation(NPC, 916.65, 0.29, -265.67, 2, 4)
  38. end