abonecutterfishRoam8.lua 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/abonecutterfishRoam8.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.13 03:10:31
  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, 1072.27, -24.37, -708.91, 1, 0)
  21. MovementLoopAddLocation(NPC, 1080.26, -24.37, -710.52, 1, math.random(5,10))
  22. MovementLoopAddLocation(NPC, 1080.26, -24.37, -710.52, 1, 0)
  23. MovementLoopAddLocation(NPC, 1081.43, -24.34, -704.66, 1, 0)
  24. MovementLoopAddLocation(NPC, 1077.98, -24.37, -700.89, 1, math.random(5,10))
  25. MovementLoopAddLocation(NPC, 1077.98, -24.37, -700.89, 1, 0)
  26. MovementLoopAddLocation(NPC, 1083.43, -24.36, -707.11, 1, 0)
  27. MovementLoopAddLocation(NPC, 1096.13, -24.34, -702.09, 1, math.random(5,10))
  28. MovementLoopAddLocation(NPC, 1096.13, -24.35, -702.09, 1, 0)
  29. MovementLoopAddLocation(NPC, 1080.48, -24.32, -710.77, 1, 0)
  30. MovementLoopAddLocation(NPC, 1076.59, -24.35, -710.62, 1, 0)
  31. MovementLoopAddLocation(NPC, 1058.93, -24.33, -719.01, 1, math.random(5,10))
  32. MovementLoopAddLocation(NPC, 1058.93, -24.37, -719.01, 1, 0)
  33. MovementLoopAddLocation(NPC, 1066.79, -24.34, -713.37, 1, 0)
  34. MovementLoopAddLocation(NPC, 1070.73, -24.39, -705.13, 1, math.random(5,10))
  35. MovementLoopAddLocation(NPC, 1070.73, -24.39, -705.13, 1, 0)
  36. MovementLoopAddLocation(NPC, 1072.27, -24.37, -708.91, 1, math.random(5,10))
  37. end