abonecutterfishRoam2.lua 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/abonecutterfishRoam2.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.13 03:10:34
  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, 980.77, -24.37, -793.23, 1, 0)
  21. MovementLoopAddLocation(NPC, 983.03, -24.37, -781.99, 1, 0)
  22. MovementLoopAddLocation(NPC, 990.35, -24.33, -772.31, 1, 0)
  23. MovementLoopAddLocation(NPC, 993.63, -24.32, -766.31, 1, math.random(5,10))
  24. MovementLoopAddLocation(NPC, 993.63, -24.36, -766.31, 1, 0)
  25. MovementLoopAddLocation(NPC, 984.16, -24.34, -774.4, 1, math.random(5,10))
  26. MovementLoopAddLocation(NPC, 984.16, -24.37, -774.4, 1, 0)
  27. MovementLoopAddLocation(NPC, 988.1, -24.33, -778.68, 1, math.random(5,10))
  28. MovementLoopAddLocation(NPC, 988.1, -24.35, -778.68, 1, 0)
  29. MovementLoopAddLocation(NPC, 982.75, -24.35, -784.42, 1, 0)
  30. MovementLoopAddLocation(NPC, 978.22, -24.3, -799.42, 1, math.random(5,10))
  31. MovementLoopAddLocation(NPC, 978.22, -24.36, -799.42, 1, 0)
  32. MovementLoopAddLocation(NPC, 980.77, -24.37, -793.23, 1, math.random(5,10))
  33. end