9
3

abonecutterfishRoam9.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/abonecutterfishRoam9.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.13 03:10:41
  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, 1083.37, -24.37, -717.98, 1, 0)
  21. MovementLoopAddLocation(NPC, 1081.6, -24.35, -713.96, 1, math.random(5,10))
  22. MovementLoopAddLocation(NPC, 1081.6, -24.37, -713.96, 1, 0)
  23. MovementLoopAddLocation(NPC, 1088.8, -24.33, -720.23, 1, math.random(5,10))
  24. MovementLoopAddLocation(NPC, 1088.8, -24.35, -720.23, 1, 0)
  25. MovementLoopAddLocation(NPC, 1083.39, -24.37, -726.23, 1, 0)
  26. MovementLoopAddLocation(NPC, 1080.72, -24.34, -726.81, 1, 0)
  27. MovementLoopAddLocation(NPC, 1073.84, -24.3, -721.44, 1, 0)
  28. MovementLoopAddLocation(NPC, 1067.19, -24.32, -721.58, 1, 0)
  29. MovementLoopAddLocation(NPC, 1060.5, -24.3, -723.35, 1, math.random(5,10))
  30. MovementLoopAddLocation(NPC, 1060.5, -24.3, -723.35, 1, 0)
  31. MovementLoopAddLocation(NPC, 1076.68, -24.37, -718.26, 1, 0)
  32. MovementLoopAddLocation(NPC, 1085.4, -24.31, -720.39, 1, math.random(5,10))
  33. MovementLoopAddLocation(NPC, 1085.4, -24.31, -720.39, 1, 0)
  34. MovementLoopAddLocation(NPC, 1081.63, -24.35, -714.44, 1, 0)
  35. MovementLoopAddLocation(NPC, 1086.29, -24.36, -709.1, 1, 0)
  36. MovementLoopAddLocation(NPC, 1096.5, -24.31, -701.87, 1, math.random(5,10))
  37. MovementLoopAddLocation(NPC, 1096.5, -24.31, -701.87, 1, 0)
  38. MovementLoopAddLocation(NPC, 1086.32, -24.3, -708.23, 1, 0)
  39. MovementLoopAddLocation(NPC, 1083.37, -24.37, -717.98, 1, math.random(5,10))
  40. end