astoneshellsnapper3.lua 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/astoneshellsnapper3.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.12 03:10:07
  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, 976.17, -23.45, -580.24, 1, 0)
  21. MovementLoopAddLocation(NPC, 979.7, -23.71, -583.1, 1, math.random(5,10))
  22. MovementLoopAddLocation(NPC, 979.7, -23.71, -583.1, 1, 0)
  23. MovementLoopAddLocation(NPC, 981.75, -26.42, -590.58, 1, math.random(5,10))
  24. MovementLoopAddLocation(NPC, 981.75, -26.42, -590.58, 1, 0)
  25. MovementLoopAddLocation(NPC, 977.68, -27.56, -589.67, 1, math.random(5,10))
  26. MovementLoopAddLocation(NPC, 977.68, -27.56, -589.67, 1, 0)
  27. MovementLoopAddLocation(NPC, 974.24, -25.72, -584.54, 1, math.random(5,10))
  28. MovementLoopAddLocation(NPC, 974.24, -25.72, -584.54, 1, 0)
  29. MovementLoopAddLocation(NPC, 969.13, -25.5, -582.86, 1, math.random(5,10))
  30. MovementLoopAddLocation(NPC, 969.13, -25.5, -582.86, 1, 0)
  31. MovementLoopAddLocation(NPC, 978.36, -24.98, -585.25, 1, math.random(5,10))
  32. MovementLoopAddLocation(NPC, 978.36, -24.98, -585.25, 1, 0)
  33. MovementLoopAddLocation(NPC, 982.95, -24.95, -589.41, 1, math.random(5,10))
  34. MovementLoopAddLocation(NPC, 982.95, -24.95, -589.41, 1, 0)
  35. MovementLoopAddLocation(NPC, 984.07, -26.2, -594.11, 1, math.random(5,10))
  36. MovementLoopAddLocation(NPC, 984.07, -26.2, -594.11, 1, 0)
  37. MovementLoopAddLocation(NPC, 986.65, -24.05, -593.13, 1, math.random(5,10))
  38. MovementLoopAddLocation(NPC, 986.65, -24.05, -593.13, 1, 0)
  39. MovementLoopAddLocation(NPC, 982.84, -23.85, -586.01, 1, 0)
  40. MovementLoopAddLocation(NPC, 970.29, -23.43, -578.79, 1, math.random(5,10))
  41. MovementLoopAddLocation(NPC, 970.29, -23.43, -578.79, 1, 0)
  42. MovementLoopAddLocation(NPC, 976.18, -23.44, -580.2, 1, math.random(5,10))
  43. end