9
3

astoneshellsnapper14.lua 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/astoneshellsnapper14.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.12 07:10:59
  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, 1143.22, -22.25, -715.03, 1, 0)
  21. MovementLoopAddLocation(NPC, 1148.32, -21.65, -713.9, 1, math.random(5,10))
  22. MovementLoopAddLocation(NPC, 1148.32, -21.65, -713.9, 1, 0)
  23. MovementLoopAddLocation(NPC, 1142.7, -22.84, -714.25, 1, 0)
  24. MovementLoopAddLocation(NPC, 1140.42, -22.95, -721.4, 1, math.random(5,10))
  25. MovementLoopAddLocation(NPC, 1140.42, -22.95, -721.4, 1, 0)
  26. MovementLoopAddLocation(NPC, 1136.08, -22.83, -721.82, 1, math.random(5,10))
  27. MovementLoopAddLocation(NPC, 1136.08, -22.83, -721.82, 1, 0)
  28. MovementLoopAddLocation(NPC, 1140.27, -22.37, -724.02, 1, math.random(5,10))
  29. MovementLoopAddLocation(NPC, 1140.27, -22.37, -724.02, 1, 0)
  30. MovementLoopAddLocation(NPC, 1130.32, -22.86, -717.15, 1, math.random(5,10))
  31. MovementLoopAddLocation(NPC, 1130.32, -22.86, -717.15, 1, 0)
  32. MovementLoopAddLocation(NPC, 1134.81, -22.9, -720.71, 1, 0)
  33. MovementLoopAddLocation(NPC, 1140.3, -22.81, -721.85, 1, 0)
  34. MovementLoopAddLocation(NPC, 1141.71, -22.85, -715.78, 1, 0)
  35. MovementLoopAddLocation(NPC, 1143.22, -22.25, -715.03, 1, math.random(5,10))
  36. end