Kith.lua 983 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/Kith.lua
  3. Script Author : Cynnar
  4. Script Date : 2018.07.08 10:07:36
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. waypoints(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function waypoints(NPC)local X = GetX(NPC)
  15. local X = GetX(NPC)
  16. local Y = GetY(NPC)
  17. local Z = GetZ(NPC)
  18. MoveToLocation(NPC, 24.70, 3.50, 1.07)
  19. MovementLoopAddLocation(NPC, X + math.random(3,10), Y, Z + math.random(3,10), 2, math.random(20,45))
  20. MovementLoopAddLocation(NPC, 24.70, 3.50, 1.07, 2, 0)
  21. MovementLoopAddLocation(NPC, X - math.random(3,10), Y, Z - math.random(3,10), 2, math.random(20,45))
  22. MovementLoopAddLocation(NPC, 24.70, 3.50, 1.07, 2, 0)
  23. MovementLoopAddLocation(NPC, X + math.random(3,10), Y, Z + math.random(3,10), 2, math.random(20,45))
  24. MovementLoopAddLocation(NPC, 24.70, 3.50, 1.07, 2, 0)
  25. MovementLoopAddLocation(NPC, X - math.random(3,10), Y, Z - math.random(3,10), 2, math.random(20,45))
  26. end