abonecutterfishRoam4.lua 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/abonecutterfishRoam4.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.13 03:10:52
  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, 993.56, -24.38, -768.25, 1, 0)
  21. MovementLoopAddLocation(NPC, 994.45, -24.32, -764.43, 1, 0)
  22. MovementLoopAddLocation(NPC, 1000.74, -23.91, -757.57, 1, 0)
  23. MovementLoopAddLocation(NPC, 1011.55, -23.88, -748.17, 1, 0)
  24. MovementLoopAddLocation(NPC, 1020.09, -24.14, -742.89, 1, math.random(5,10))
  25. MovementLoopAddLocation(NPC, 1020.09, -24.14, -742.89, 1, 0)
  26. MovementLoopAddLocation(NPC, 1015.36, -23.9, -742.29, 1, math.random(5,10))
  27. MovementLoopAddLocation(NPC, 1015.36, -23.9, -742.29, 1, 0)
  28. MovementLoopAddLocation(NPC, 1020.01, -24.01, -745.14, 1, math.random(5,10))
  29. MovementLoopAddLocation(NPC, 1020.01, -24.01, -745.14, 1, 0)
  30. MovementLoopAddLocation(NPC, 1011.44, -23.89, -747.89, 1, 0)
  31. MovementLoopAddLocation(NPC, 1004.1, -23.82, -753.92, 1, 0)
  32. MovementLoopAddLocation(NPC, 996.82, -23.93, -760.65, 1, 0)
  33. MovementLoopAddLocation(NPC, 991.69, -24.37, -769.97, 1, math.random(5,10))
  34. MovementLoopAddLocation(NPC, 991.69, -24.37, -769.97, 1, 0)
  35. MovementLoopAddLocation(NPC, 985.58, -24.32, -772.37, 1, math.random(5,10))
  36. MovementLoopAddLocation(NPC, 985.58, -24.37, -772.37, 1, 0)
  37. MovementLoopAddLocation(NPC, 993.56, -24.37, -768.25, 1, math.random(5,10))
  38. end