9
3

abonecutterfishRoam5.lua 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/abonecutterfishRoam5.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.13 03:10:03
  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, 1036.76, -24.38, -736.45, 1, 0)
  21. MovementLoopAddLocation(NPC, 1043.73, -24.33, -739.45, 1, math.random(5,10))
  22. MovementLoopAddLocation(NPC, 1043.73, -24.35, -739.45, 1, 0)
  23. MovementLoopAddLocation(NPC, 1029.97, -24.35, -736.63, 1, math.random(5,10))
  24. MovementLoopAddLocation(NPC, 1029.97, -24.37, -736.63, 1, 0)
  25. MovementLoopAddLocation(NPC, 1036.23, -24.32, -720.92, 1, math.random(5,10))
  26. MovementLoopAddLocation(NPC, 1036.23, -24.37, -720.92, 1, 0)
  27. MovementLoopAddLocation(NPC, 1036.96, -24.33, -731.61, 1, 0)
  28. MovementLoopAddLocation(NPC, 1039.8, -24.35, -733.65, 1, 0)
  29. MovementLoopAddLocation(NPC, 1056.16, -24.37, -725.61, 1, math.random(5,10))
  30. MovementLoopAddLocation(NPC, 1056.16, -24.37, -725.61, 1, 0)
  31. MovementLoopAddLocation(NPC, 1041.03, -24.32, -741.53, 1, math.random(5,10))
  32. MovementLoopAddLocation(NPC, 1041.03, -24.34, -741.53, 1, 0)
  33. MovementLoopAddLocation(NPC, 1036.76, -24.38, -736.45, 1, math.random(5,10))
  34. end