astoneshellsnapper9.lua 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/astoneshellsnapper9.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.12 06: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, 1117.85, -22.91, -660.81, 1, 0)
  21. MovementLoopAddLocation(NPC, 1115.06, -22.84, -661.54, 1, math.random(5,10))
  22. MovementLoopAddLocation(NPC, 1115.06, -22.84, -661.54, 1, 0)
  23. MovementLoopAddLocation(NPC, 1120.84, -22.57, -659.72, 1, math.random(5,10))
  24. MovementLoopAddLocation(NPC, 1120.84, -22.57, -659.72, 1, 0)
  25. MovementLoopAddLocation(NPC, 1123.91, -21.27, -657.26, 1, 0)
  26. MovementLoopAddLocation(NPC, 1127.22, -21.07, -656.96, 1, math.random(5,10))
  27. MovementLoopAddLocation(NPC, 1127.22, -21.07, -656.96, 1, 0)
  28. MovementLoopAddLocation(NPC, 1128.81, -23.2, -661.06, 1, math.random(5,10))
  29. MovementLoopAddLocation(NPC, 1128.81, -23.2, -661.06, 1, 0)
  30. MovementLoopAddLocation(NPC, 1123.13, -23.02, -659.92, 1, math.random(5,10))
  31. MovementLoopAddLocation(NPC, 1123.13, -23.02, -659.92, 1, 0)
  32. MovementLoopAddLocation(NPC, 1117.35, -21.18, -657.81, 1, math.random(5,10))
  33. MovementLoopAddLocation(NPC, 1117.35, -21.18, -657.81, 1, 0)
  34. MovementLoopAddLocation(NPC, 1113.76, -23.06, -662.75, 1, math.random(5,10))
  35. MovementLoopAddLocation(NPC, 1113.76, -23.06, -662.75, 1, 0)
  36. MovementLoopAddLocation(NPC, 1117.85, -22.91, -660.81, 1, math.random(5,10))
  37. end