astoneshellsnapper11.lua 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/astoneshellsnapper11.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.12 07:10:40
  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, 1145.93, -22.36, -657.25, 1, 0)
  21. MovementLoopAddLocation(NPC, 1151.33, -22.01, -656.62, 1, math.random(5,10))
  22. MovementLoopAddLocation(NPC, 1151.33, -22.01, -656.62, 1, 0)
  23. MovementLoopAddLocation(NPC, 1149.01, -20.21, -653.7, 1, math.random(5,10))
  24. MovementLoopAddLocation(NPC, 1149.01, -20.21, -653.7, 1, 0)
  25. MovementLoopAddLocation(NPC, 1142.3, -22.38, -658.72, 1, math.random(5,10))
  26. MovementLoopAddLocation(NPC, 1142.3, -22.38, -658.72, 1, 0)
  27. MovementLoopAddLocation(NPC, 1146.89, -23.36, -660.55, 1, math.random(5,10))
  28. MovementLoopAddLocation(NPC, 1146.89, -23.36, -660.55, 1, 0)
  29. MovementLoopAddLocation(NPC, 1139.43, -22.11, -659.1, 1, 0)
  30. MovementLoopAddLocation(NPC, 1134.2, -21.75, -658.95, 1, math.random(5,10))
  31. MovementLoopAddLocation(NPC, 1134.2, -21.75, -658.95, 1, 0)
  32. MovementLoopAddLocation(NPC, 1131.32, -19.44, -654.62, 1, math.random(5,10))
  33. MovementLoopAddLocation(NPC, 1131.32, -19.44, -654.62, 1, 0)
  34. MovementLoopAddLocation(NPC, 1128.61, -24.02, -662.75, 1, math.random(5,10))
  35. MovementLoopAddLocation(NPC, 1128.61, -24.02, -662.75, 1, 0)
  36. MovementLoopAddLocation(NPC, 1135.2, -23.08, -661.77, 1, 0)
  37. MovementLoopAddLocation(NPC, 1141.96, -22.95, -660.36, 1, math.random(5,10))
  38. MovementLoopAddLocation(NPC, 1141.96, -22.95, -660.36, 1, 0)
  39. MovementLoopAddLocation(NPC, 1149.25, -22.71, -658.64, 1, 0)
  40. MovementLoopAddLocation(NPC, 1151.42, -21.09, -655.47, 1, math.random(5,10))
  41. MovementLoopAddLocation(NPC, 1151.42, -21.09, -655.47, 1, 0)
  42. MovementLoopAddLocation(NPC, 1145.93, -22.36, -657.25, 1, math.random(5,10))
  43. end