astoneshellsnapper8.lua 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/astoneshellsnapper8.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.12 06:10:01
  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, 1109.2, -22.29, -675.84, 1, 0)
  21. MovementLoopAddLocation(NPC, 1109.77, -22.6, -684.51, 1, math.random(5,10))
  22. MovementLoopAddLocation(NPC, 1109.77, -22.6, -684.51, 1, 0)
  23. MovementLoopAddLocation(NPC, 1107.11, -20.11, -685.53, 1, math.random(5,10))
  24. MovementLoopAddLocation(NPC, 1107.11, -20.11, -685.53, 1, 0)
  25. MovementLoopAddLocation(NPC, 1107.47, -20.77, -677.18, 1, math.random(5,10))
  26. MovementLoopAddLocation(NPC, 1107.47, -20.77, -677.18, 1, 0)
  27. MovementLoopAddLocation(NPC, 1109.71, -23.79, -671.39, 1, math.random(5,10))
  28. MovementLoopAddLocation(NPC, 1109.71, -23.79, -671.39, 1, 0)
  29. MovementLoopAddLocation(NPC, 1109.31, -23.36, -667.97, 1, 0)
  30. MovementLoopAddLocation(NPC, 1112.52, -22.8, -663.1, 1, math.random(5,10))
  31. MovementLoopAddLocation(NPC, 1112.52, -22.8, -663.1, 1, 0)
  32. MovementLoopAddLocation(NPC, 1109.17, -22.07, -663.87, 1, math.random(5,10))
  33. MovementLoopAddLocation(NPC, 1109.17, -22.07, -663.87, 1, 0)
  34. MovementLoopAddLocation(NPC, 1106.67, -21.91, -667.83, 1, math.random(5,10))
  35. MovementLoopAddLocation(NPC, 1109.2, -22.29, -675.84, 1, 0)
  36. end