9
3

astoneshellsnapper10.lua 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/astoneshellsnapper10.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.12 07:10:03
  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, 1133.82, -22.61, -660.65, 1, 0)
  21. MovementLoopAddLocation(NPC, 1131.61, -20.28, -656.25, 1, math.random(5,10))
  22. MovementLoopAddLocation(NPC, 1131.61, -20.28, -656.25, 1, 0)
  23. MovementLoopAddLocation(NPC, 1129.37, -23.23, -661.36, 1, math.random(5,10))
  24. MovementLoopAddLocation(NPC, 1129.37, -23.23, -661.36, 1, 0)
  25. MovementLoopAddLocation(NPC, 1138.37, -23.22, -661.82, 1, 0)
  26. MovementLoopAddLocation(NPC, 1140.71, -22.26, -658.99, 1, math.random(5,10))
  27. MovementLoopAddLocation(NPC, 1140.71, -22.26, -658.99, 1, 0)
  28. MovementLoopAddLocation(NPC, 1135.71, -21.58, -658.65, 1, 0)
  29. MovementLoopAddLocation(NPC, 1127.28, -21.49, -657.56, 1, 0)
  30. MovementLoopAddLocation(NPC, 1122.88, -20.34, -655.3, 1, math.random(5,10))
  31. MovementLoopAddLocation(NPC, 1122.88, -20.34, -655.3, 1, 0)
  32. MovementLoopAddLocation(NPC, 1122.08, -23.91, -661.36, 1, math.random(5,10))
  33. MovementLoopAddLocation(NPC, 1122.08, -23.91, -661.36, 1, 0)
  34. MovementLoopAddLocation(NPC, 1126.48, -23.55, -660.64, 1, 0)
  35. MovementLoopAddLocation(NPC, 1129.45, -22.13, -659.39, 1, 0)
  36. MovementLoopAddLocation(NPC, 1133.82, -22.61, -660.65, 1, math.random(5,10))
  37. end