9
3

arockadderRoam1.lua 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/arockadderRoam1.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.12 04:10:13
  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, 1034.02, -21.58, -596.64, 1, 0)
  21. MovementLoopAddLocation(NPC, 1038.07, -21.11, -597.86, 1, math.random(5,10))
  22. MovementLoopAddLocation(NPC, 1038.07, -21.11, -597.86, 1, 0)
  23. MovementLoopAddLocation(NPC, 1030.29, -21.66, -592.36, 1, math.random(5,10))
  24. MovementLoopAddLocation(NPC, 1030.29, -21.66, -592.36, 1, 0)
  25. MovementLoopAddLocation(NPC, 1030.68, -21.71, -597.55, 1, math.random(5,10))
  26. MovementLoopAddLocation(NPC, 1030.68, -21.71, -597.55, 1, 0)
  27. MovementLoopAddLocation(NPC, 1037.06, -21.33, -596.61, 1, math.random(5,10))
  28. MovementLoopAddLocation(NPC, 1037.06, -21.33, -596.61, 1, 0)
  29. MovementLoopAddLocation(NPC, 1034.02, -21.58, -596.64, 1, math.random(5,10))
  30. end