astoneshellsnapper7.lua 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/astoneshellsnapper7.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.12 04:10:06
  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, 939.95, -25.64, -626.15, 1, 0)
  21. MovementLoopAddLocation(NPC, 944.12, -24.73, -630.87, 1, math.random(5,10))
  22. MovementLoopAddLocation(NPC, 944.12, -24.73, -630.87, 1, 0)
  23. MovementLoopAddLocation(NPC, 941.33, -26.26, -623.96, 1, math.random(5,10))
  24. MovementLoopAddLocation(NPC, 941.33, -26.26, -623.96, 1, 0)
  25. MovementLoopAddLocation(NPC, 945.4, -26.74, -627.3, 1, 0)
  26. MovementLoopAddLocation(NPC, 947.08, -25.57, -631.86, 1, 0)
  27. MovementLoopAddLocation(NPC, 950.99, -26.31, -633.69, 1, math.random(5,10))
  28. MovementLoopAddLocation(NPC, 956.45, -26.65, -633.56, 1, 0)
  29. MovementLoopAddLocation(NPC, 959.33, -25.15, -635.85, 1, math.random(5,10))
  30. MovementLoopAddLocation(NPC, 959.33, -25.15, -635.85, 1, 0)
  31. MovementLoopAddLocation(NPC, 954.76, -24.52, -635.31, 1, 0)
  32. MovementLoopAddLocation(NPC, 950.52, -26.37, -633.44, 1, 0)
  33. MovementLoopAddLocation(NPC, 947.73, -25.44, -632.84, 1, math.random(5,10))
  34. MovementLoopAddLocation(NPC, 947.73, -25.44, -632.84, 1, 0)
  35. MovementLoopAddLocation(NPC, 945.87, -26.38, -628.8, 1, 0)
  36. MovementLoopAddLocation(NPC, 942.74, -26.6, -624.85, 1, 0)
  37. MovementLoopAddLocation(NPC, 939.95, -25.64, -626.15, 1, math.random(5,10))
  38. end