9
3

arat.lua 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : SpawnScripts/FarJourneyFreeport/arat.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.08.04 12:08:53
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. waypoints(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function waypoints(NPC)
  17. if GetSpawnLocationID(NPC)== 1586106 then
  18. MovementLoopAddLocation(NPC, 2.31, -2.07, -4.95, 1, math.random(6,10))
  19. MovementLoopAddLocation(NPC, 2.11, -2.07, -6.55, 1, math.random(6,10))
  20. MovementLoopAddLocation(NPC, 2.74, -2.07, -6.01, 1, math.random(6,10))
  21. MovementLoopAddLocation(NPC, 0.07, -2.07, -3.85, 1, math.random(6,10))
  22. MovementLoopAddLocation(NPC, 0.72, -2.07, -6.06, 1, math.random(6,10))
  23. MovementLoopAddLocation(NPC, 2.38, -2.07, -5.3, 1, math.random(6,10))
  24. elseif GetSpawnLocationID(NPC)== 1586105 then
  25. MovementLoopAddLocation(NPC, -0.83, -2.07, 3.03, 1, math.random(6,10))
  26. MovementLoopAddLocation(NPC, -1.84, -2.07, 4.51, 1, math.random(6,10))
  27. MovementLoopAddLocation(NPC, 0.4, -2.07, 2.09, 1, math.random(6,10))
  28. MovementLoopAddLocation(NPC, -0.34, -2.07, 3.74, 1, math.random(6,10))
  29. MovementLoopAddLocation(NPC, -1.33, -2.07, 2.02, 1, math.random(6,10))
  30. end
  31. end