9
3

afreshwatertrout6.lua 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : SpawnScripts/Oakmyst_Classic/afreshwatertrout6.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.19 07:10:23
  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, 918.48, 1.16, -281.58, 2, 4)
  21. MovementLoopAddLocation(NPC, 914.3, 0.81, -277.93, 2, 0)
  22. MovementLoopAddLocation(NPC, 914.17, 0.62, -271.27, 2, math.random(5,10))
  23. MovementLoopAddLocation(NPC, 914.17, 0.62, -271.27, 2, 0)
  24. MovementLoopAddLocation(NPC, 912.18, 0.93, -276.15, 2, math.random(5,10))
  25. MovementLoopAddLocation(NPC, 912.18, 0.93, -276.15, 2, 0)
  26. MovementLoopAddLocation(NPC, 918.84, 0.22, -269.53, 2, math.random(5,10))
  27. MovementLoopAddLocation(NPC, 918.84, 0.22, -269.53, 2, 0)
  28. MovementLoopAddLocation(NPC, 914.07, 0.67, -274.17, 2, 0)
  29. MovementLoopAddLocation(NPC, 915.37, 0.93, -280.26, 2, 0)
  30. MovementLoopAddLocation(NPC, 922.12, 1.13, -282.52, 2, 0)
  31. MovementLoopAddLocation(NPC, 925.92, 1.21, -281.66, 2, math.random(5,10))
  32. MovementLoopAddLocation(NPC, 925.92, 1.21, -281.66, 2, 0)
  33. MovementLoopAddLocation(NPC, 922.71, 1.15, -282.25, 2, 0)
  34. MovementLoopAddLocation(NPC, 913.41, 0.89, -277.63, 2, math.random(5,10))
  35. MovementLoopAddLocation(NPC, 913.41, 0.89, -277.63, 2, 0)
  36. MovementLoopAddLocation(NPC, 914.87, 0.56, -271.98, 2, math.random(5,10))
  37. MovementLoopAddLocation(NPC, 914.87, 0.56, -271.98, 2, 0)
  38. MovementLoopAddLocation(NPC, 913.87, 0.77, -276.57, 2, 0)
  39. MovementLoopAddLocation(NPC, 918.48, 1.16, -281.58, 2, 4)
  40. end