a_rat_d.lua 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/a_rat_d.lua
  3. Script Author : torsten
  4. Script Date : 2022.07.18 08:07:16
  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, -31.88, -5.75, 24.54, 5, math.random(8,12))
  19. MovementLoopAddLocation(NPC, -9.57, -6.75, 39.16, 5, math.random(8,12))
  20. MovementLoopAddLocation(NPC, -0.71, -7, 69.58, 5, math.random(8,12))
  21. MovementLoopAddLocation(NPC, -2.16, -7, 44.94, 5, math.random(8,12))
  22. MovementLoopAddLocation(NPC, 4.95, -5.5, 28.71, 5, math.random(8,12))
  23. MovementLoopAddLocation(NPC, -9.21, -5.25, 19.38, 5, math.random(8,12))
  24. MovementLoopAddLocation(NPC, -16, -7, 33.57, 5, math.random(8,12))
  25. MovementLoopAddLocation(NPC, 22.21, -6.51, 48.29, 5, math.random(8,12))
  26. MovementLoopAddLocation(NPC, 48.73, -5.5, 45.24, 5, math.random(8,12))
  27. MovementLoopAddLocation(NPC, 49.86, -6.93, 63.93, 5, math.random(8,12))
  28. MovementLoopAddLocation(NPC, 39.29, -5, 30.89, 5, math.random(8,12))
  29. MovementLoopAddLocation(NPC, 31.78, -5, 30.06, 5, math.random(8,12))
  30. MovementLoopAddLocation(NPC, 34.48, -6, 44.59, 5, math.random(8,12))
  31. MovementLoopAddLocation(NPC, 50.49, -6.93, 65.33, 5, math.random(8,12))
  32. MovementLoopAddLocation(NPC, 61.86, -7.08, 96.79, 5, math.random(8,12))
  33. MovementLoopAddLocation(NPC, 51.07, -6.94, 64.87, 5, math.random(8,12))
  34. MovementLoopAddLocation(NPC, 39.06, -6.5, 47.88, 5, math.random(8,12))
  35. MovementLoopAddLocation(NPC, 15.05, -7, 57.08, 5, math.random(8,12))
  36. MovementLoopAddLocation(NPC, 10.2, -7, 49.77, 5, math.random(8,12))
  37. MovementLoopAddLocation(NPC, -8.22, -6.5, 37.34, 5, math.random(8,12))
  38. MovementLoopAddLocation(NPC, -31.25, -5.75, 25.61, 5, math.random(8,12))
  39. end