9
3

abonecutterfishRoam6.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/abonecutterfishRoam6.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.13 03:10:11
  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, 1035.38, -24.37, -724.27, 1, 0)
  21. MovementLoopAddLocation(NPC, 1035.49, -24.34, -720.21, 1, math.random(5,10))
  22. MovementLoopAddLocation(NPC, 1035.49, -24.37, -720.21, 1, 0)
  23. MovementLoopAddLocation(NPC, 1034.8, -24.36, -728.7, 1, 0)
  24. MovementLoopAddLocation(NPC, 1027.69, -24.37, -736.42, 1, math.random(5,10))
  25. MovementLoopAddLocation(NPC, 1027.69, -24.37, -736.42, 1, 0)
  26. MovementLoopAddLocation(NPC, 1034.45, -24.34, -737.01, 1, math.random(5,10))
  27. MovementLoopAddLocation(NPC, 1034.45, -24.37, -737.01, 1, 0)
  28. MovementLoopAddLocation(NPC, 1034.15, -24.33, -728.77, 1, 0)
  29. MovementLoopAddLocation(NPC, 1037.82, -24.32, -722.17, 1, 0)
  30. MovementLoopAddLocation(NPC, 1047.06, -24.34, -721.89, 1, 0)
  31. MovementLoopAddLocation(NPC, 1055.91, -24.32, -720.29, 1, math.random(5,10))
  32. MovementLoopAddLocation(NPC, 1055.91, -24.37, -720.29, 1, 0)
  33. MovementLoopAddLocation(NPC, 1046.3, -24.37, -722.91, 1, math.random(5,10))
  34. MovementLoopAddLocation(NPC, 1046.3, -24.37, -722.91, 1, 0)
  35. MovementLoopAddLocation(NPC, 1037.02, -24.33, -719.2, 1, 0)
  36. MovementLoopAddLocation(NPC, 1027.35, -24.33, -722.21, 1, math.random(5,10))
  37. MovementLoopAddLocation(NPC, 1027.35, -24.37, -722.21, 1, 0)
  38. MovementLoopAddLocation(NPC, 1031.93, -24.33, -721.33, 1, 0)
  39. MovementLoopAddLocation(NPC, 1035.38, -24.37, -724.27, 1, math.random(5,10))
  40. end