9
3

abonecutterfishRoam1.lua 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/abonecutterfishRoam1.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.13 03:10:26
  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, 979.91, -24.37, -803.71, 1, 0)
  21. MovementLoopAddLocation(NPC, 978.9, -24.35, -807, 1, math.random(5,10))
  22. MovementLoopAddLocation(NPC, 978.9, -24.36, -807, 1, 0)
  23. MovementLoopAddLocation(NPC, 981.75, -24.37, -786.14, 1, math.random(5,10))
  24. MovementLoopAddLocation(NPC, 981.75, -24.37, -786.14, 1, 0)
  25. MovementLoopAddLocation(NPC, 987.51, -24.34, -781.46, 1, 0)
  26. MovementLoopAddLocation(NPC, 985.46, -24.34, -777.43, 1, 0)
  27. MovementLoopAddLocation(NPC, 978.35, -24.31, -797.4, 1, math.random(5,10))
  28. MovementLoopAddLocation(NPC, 978.35, -24.35, -797.4, 1, 0)
  29. MovementLoopAddLocation(NPC, 985.79, -24.33, -800.54, 1, math.random(5,10))
  30. MovementLoopAddLocation(NPC, 985.79, -24.36, -800.54, 1, 0)
  31. MovementLoopAddLocation(NPC, 979.91, -24.37, -803.71, 2, math.random(5,10))
  32. end