arat.lua 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. --[[
  2. Script Name : SpawnScripts/Starcrest/arat.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.30 08:06:31
  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. if GetSpawnLocationID(NPC)== 419680 then
  19. MovementLoopAddLocation(NPC, 806.45, -20.25, 261.9, 4, math.random(0,3))
  20. MovementLoopAddLocation(NPC, 797.59, -20.33, 253.13, 4, math.random(0,3))
  21. MovementLoopAddLocation(NPC, 788.87, -20.29, 245.16, 4, math.random(0,3))
  22. MovementLoopAddLocation(NPC, 767.91, -20.12, 239.77, 4, math.random(0,3))
  23. MovementLoopAddLocation(NPC, 762.24, -20.28, 246.32, 4, math.random(4,6))
  24. MovementLoopAddLocation(NPC, 773.48, -20.32, 240.07, 4, math.random(0,3))
  25. MovementLoopAddLocation(NPC, 786.38, -20.37, 248.33, 4, math.random(0,3))
  26. MovementLoopAddLocation(NPC, 798.76, -20.34, 252.81, 4, math.random(0,3))
  27. MovementLoopAddLocation(NPC, 806.34, -20.22, 264.66, 4, math.random(0,3))
  28. MovementLoopAddLocation(NPC, 804.18, -20.1, 251.04, 4, math.random(0,3))
  29. MovementLoopAddLocation(NPC, 780.33, -20.37, 249.25, 4, math.random(0,3))
  30. MovementLoopAddLocation(NPC, 786.81, -20.38, 247.53, 4, math.random(0,3))
  31. MovementLoopAddLocation(NPC, 789.89, -20.27, 246.72, 4, math.random(0,3))
  32. MovementLoopAddLocation(NPC, 793.61, -20.28, 251.38, 4, math.random(0,3))
  33. MovementLoopAddLocation(NPC, 807.79, -20.26, 254.38, 4, math.random(0,3))
  34. MovementLoopAddLocation(NPC, 800.02, -20.3, 259.63, 4, math.random(0,3))
  35. MovementLoopAddLocation(NPC, 803.51, -20.26, 261.66, 4, math.random(0,3))
  36. elseif GetSpawnLocationID(NPC)== 419699 then
  37. MovementLoopAddLocation(NPC, 815.86, -20.34, 271.7, 4, math.random(0,3))
  38. MovementLoopAddLocation(NPC, 818.23, -20.27, 277.37, 4, math.random(0,3))
  39. MovementLoopAddLocation(NPC, 824.06, -20.21, 271.17, 4, math.random(0,3))
  40. MovementLoopAddLocation(NPC, 820.8, -20.06, 266.11, 4, math.random(0,3))
  41. MovementLoopAddLocation(NPC, 816.77, -20.1, 260.98, 4, math.random(0,3))
  42. MovementLoopAddLocation(NPC, 808.19, -20.51, 259.54, 4, math.random(0,3))
  43. MovementLoopAddLocation(NPC, 799.68, -19.94, 248.91, 4, math.random(0,3))
  44. MovementLoopAddLocation(NPC, 786.53, -20.35, 243.66, 4, math.random(0,3))
  45. MovementLoopAddLocation(NPC, 775.35, -20.34, 246.2, 4, math.random(0,3))
  46. MovementLoopAddLocation(NPC, 769.47, -19.98, 237.71, 4, math.random(0,3))
  47. MovementLoopAddLocation(NPC, 747.15, -20.38, 245.71, 4, math.random(0,3))
  48. MovementLoopAddLocation(NPC, 725.68, -20.19, 249.99, 4, math.random(4,6))
  49. MovementLoopAddLocation(NPC, 731.72, -20.28, 250.51, 4, math.random(0,3))
  50. MovementLoopAddLocation(NPC, 745.34, -20.37, 245.99, 4, math.random(0,3))
  51. MovementLoopAddLocation(NPC, 754.86, -20.28, 247.35, 4, math.random(0,3))
  52. MovementLoopAddLocation(NPC, 762.21, -19.87, 238.95, 4, math.random(0,3))
  53. MovementLoopAddLocation(NPC, 775.86, -20.39, 244.7, 4, math.random(0,3))
  54. MovementLoopAddLocation(NPC, 784.07, -20.41, 245.02, 4, math.random(0,3))
  55. MovementLoopAddLocation(NPC, 786.66, -20.34, 249.29, 4, math.random(0,3))
  56. MovementLoopAddLocation(NPC, 794.58, -20.34, 250.79, 4, math.random(0,3))
  57. MovementLoopAddLocation(NPC, 803.26, -20.43, 256.96, 4, math.random(0,3))
  58. MovementLoopAddLocation(NPC, 810.95, -20.51, 262.17, 4, math.random(0,3))
  59. MovementLoopAddLocation(NPC, 815.21, -20.34, 272.68, 4, math.random(0,3))
  60. MovementLoopAddLocation(NPC, 808.87, -20.31, 279.96, 4, math.random(0,3))
  61. MovementLoopAddLocation(NPC, 812.05, -20.33, 281.06, 4, math.random(0,3))
  62. MovementLoopAddLocation(NPC, 812.61, -20.26, 273.38, 4, math.random(0,3))
  63. MovementLoopAddLocation(NPC, 825.19, -20.27, 276.23, 4, math.random(0,3))
  64. end
  65. end