9
3

astoneshellsnapper1.lua 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/astoneshellsnapper1.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.12 03:10:50
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. AddTimer(NPC, 6000, "waypoints")
  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, 960.68, -24.05, -577.75, 1, 0)
  21. MovementLoopAddLocation(NPC, 966.67, -26.64, -584.45, 1, math.random(5,10))
  22. MovementLoopAddLocation(NPC, 966.67, -26.64, -584.45, 1, 0)
  23. MovementLoopAddLocation(NPC, 971.99, -25.25, -583.13, 1, math.random(5,10))
  24. MovementLoopAddLocation(NPC, 971.99, -25.25, -583.13, 1, 0)
  25. MovementLoopAddLocation(NPC, 972.92, -23.41, -579.01, 1, math.random(5,10))
  26. MovementLoopAddLocation(NPC, 972.92, -23.41, -579.01, 1, 0)
  27. MovementLoopAddLocation(NPC, 967.17, -23, -575.46, 1, math.random(5,10))
  28. MovementLoopAddLocation(NPC, 967.17, -23, -575.46, 1, 0)
  29. MovementLoopAddLocation(NPC, 963.16, -25.78, -581.93, 1, math.random(5,10))
  30. MovementLoopAddLocation(NPC, 963.16, -25.78, -581.93, 1, 0)
  31. MovementLoopAddLocation(NPC, 961.61, -26.88, -584.15, 1, math.random(5,10))
  32. MovementLoopAddLocation(NPC, 961.61, -26.88, -584.15, 1, 0)
  33. MovementLoopAddLocation(NPC, 959.02, -25.54, -580.57, 1, math.random(5,10))
  34. MovementLoopAddLocation(NPC, 959.02, -25.54, -580.57, 1, 0)
  35. MovementLoopAddLocation(NPC, 958.39, -23.66, -576.73, 1, math.random(5,10))
  36. MovementLoopAddLocation(NPC, 958.39, -23.66, -576.73, 1, 0)
  37. MovementLoopAddLocation(NPC, 960.68, -24.05, -577.75, 1, math.random(5,10))
  38. end