9
3

a_rat_c.lua 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/a_rat_c.lua
  3. Script Author : torsten
  4. Script Date : 2022.07.18 08:07:05
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. waypoints(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function waypoints(NPC)
  18. MovementLoopAddLocation(NPC, 24.12, 5.25, -12.54, 7, math.random(4,12))
  19. MovementLoopAddLocation(NPC, 49.81, 4, -5.33, 7, math.random(4,12))
  20. MovementLoopAddLocation(NPC, 63.12, 5, -18.48, 7, math.random(4,12))
  21. MovementLoopAddLocation(NPC, 50.93, 5, -25.94, 7, math.random(4,12))
  22. MovementLoopAddLocation(NPC, 18.65, 3.5, 10.93, 7, math.random(4,12))
  23. MovementLoopAddLocation(NPC, 1.98, 2.51, 4.91, 7, math.random(4,12))
  24. MovementLoopAddLocation(NPC, -25.18, 2.5, -21.95, 7, math.random(4,12))
  25. MovementLoopAddLocation(NPC, 13.09, 2.5, 14.1, 7, math.random(4,12))
  26. MovementLoopAddLocation(NPC, 36.7, 7, 12.12, 7, math.random(4,12))
  27. MovementLoopAddLocation(NPC, 51.75, 3, 7.41, 7, math.random(4,12))
  28. MovementLoopAddLocation(NPC, 54.65, 5, -17.09, 7, math.random(4,12))
  29. MovementLoopAddLocation(NPC, 45.24, 5.25, -16.41, 7, math.random(4,12))
  30. MovementLoopAddLocation(NPC, 18.18, 3.5, 6.86, 7, math.random(4,12))
  31. MovementLoopAddLocation(NPC, 0.01, 2.86, 2.29, 7, math.random(4,12))
  32. MovementLoopAddLocation(NPC, -17.55, 3, -19.15, 7, math.random(4,12))
  33. MovementLoopAddLocation(NPC, -4.48, 3.85, -30.29, 7, math.random(4,12))
  34. MovementLoopAddLocation(NPC, 11.24, 4.75, -24.55, 7, math.random(4,12))
  35. MovementLoopAddLocation(NPC, 23.98, 5.25, -13.68, 7, math.random(4,12))
  36. end