afreshwatertrout4.lua 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --[[
  2. Script Name : SpawnScripts/Oakmyst_Classic/afreshwatertrout4.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, 930.27, 0.32, -260.4, 2, 4)
  19. MovementLoopAddLocation(NPC, 935.82, 0.74, -256.85, 2, math.random(5,10))
  20. MovementLoopAddLocation(NPC, 935.82, 0.74, -256.85, 2, 0)
  21. MovementLoopAddLocation(NPC, 929.97, 0.28, -262.05, 2, 0)
  22. MovementLoopAddLocation(NPC, 933.11, 0.81, -269.21, 2, 0)
  23. MovementLoopAddLocation(NPC, 932.55, 0.9, -274.84, 2, math.random(5,10))
  24. MovementLoopAddLocation(NPC, 932.55, 0.9, -274.84, 2, 0)
  25. MovementLoopAddLocation(NPC, 932.21, 0.35, -264.96, 2, 0)
  26. MovementLoopAddLocation(NPC, 927.41, 0.26, -260.75, 2, 0)
  27. MovementLoopAddLocation(NPC, 918.91, 0.21, -262.36, 2, math.random(5,10))
  28. MovementLoopAddLocation(NPC, 918.91, 0.21, -262.36, 2, 0)
  29. MovementLoopAddLocation(NPC, 928.92, 0.42, -255.34, 2, math.random(5,10))
  30. MovementLoopAddLocation(NPC, 928.92, 0.42, -255.34, 2, 0)
  31. MovementLoopAddLocation(NPC, 921.33, 0.01, -267.8, 2, math.random(5,10))
  32. MovementLoopAddLocation(NPC, 921.33, 0.01, -267.8, 2, 0)
  33. MovementLoopAddLocation(NPC, 930.27, 0.32, -260.4, 2, 4)
  34. end