abonecutterfishRoam7.lua 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/abonecutterfishRoam7.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.13 03:10:20
  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, 1058.27, -24.4, -721.66, 1, 0)
  21. MovementLoopAddLocation(NPC, 1060.48, -24.35, -723.04, 1, 0)
  22. MovementLoopAddLocation(NPC, 1069.93, -24.37, -721.3, 1, 0)
  23. MovementLoopAddLocation(NPC, 1074.44, -24.33, -721.42, 1, math.random(5,10))
  24. MovementLoopAddLocation(NPC, 1074.44, -24.37, -721.42, 1, 0)
  25. MovementLoopAddLocation(NPC, 1068.17, -24.32, -721.63, 1, 0)
  26. MovementLoopAddLocation(NPC, 1060.32, -24.33, -723.72, 1, 0)
  27. MovementLoopAddLocation(NPC, 1056.2, -24.37, -720.1, 1, 0)
  28. MovementLoopAddLocation(NPC, 1051.07, -24.32, -721.66, 1, 0)
  29. MovementLoopAddLocation(NPC, 1043.23, -24.34, -722.33, 1, math.random(5,10))
  30. MovementLoopAddLocation(NPC, 1043.23, -24.36, -722.33, 1, 0)
  31. MovementLoopAddLocation(NPC, 1047.97, -24.33, -722, 1, 0)
  32. MovementLoopAddLocation(NPC, 1055.11, -24.32, -720.47, 1, 0)
  33. MovementLoopAddLocation(NPC, 1057.61, -24.35, -722.69, 1, 0)
  34. MovementLoopAddLocation(NPC, 1055.81, -24.37, -725.46, 1, 0)
  35. MovementLoopAddLocation(NPC, 1047.09, -24.34, -732.62, 1, math.random(5,10))
  36. MovementLoopAddLocation(NPC, 1047.09, -24.36, -732.62, 1, 0)
  37. MovementLoopAddLocation(NPC, 1057.65, -24.31, -724.75, 1, 0)
  38. MovementLoopAddLocation(NPC, 1059.67, -24.36, -718.06, 1, 0)
  39. MovementLoopAddLocation(NPC, 1066.51, -24.3, -714.28, 1, 0)
  40. MovementLoopAddLocation(NPC, 1068.47, -24.33, -709.91, 1, math.random(5,10))
  41. MovementLoopAddLocation(NPC, 1068.47, -24.35, -709.91, 1, 0)
  42. MovementLoopAddLocation(NPC, 1066.12, -24.34, -713.87, 1, 0)
  43. MovementLoopAddLocation(NPC, 1059.28, -24.31, -718.38, 1, 0)
  44. MovementLoopAddLocation(NPC, 1058.27, -24.4, -721.66, 1, math.random(5,10))
  45. end