afreshwatertrout4.lua 1.5 KB

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