ascrawnyrat.lua 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. --[[
  2. Script Name : SpawnScripts/Starcrest/ascrawnyrat.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.01 03:07:39
  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)==419849 then
  18. MovementLoopAddLocation(NPC, 821.93, -20.28, 268.92, 2, math.random(0,3))
  19. MovementLoopAddLocation(NPC, 822.98, -20.17, 273.08, 2, math.random(0,3))
  20. MovementLoopAddLocation(NPC, 823.25, -20.26, 276.55, 2, math.random(0,3))
  21. MovementLoopAddLocation(NPC, 824.58, -20.11, 272.89, 2, math.random(0,3))
  22. MovementLoopAddLocation(NPC, 818.8, -20.28, 277.25, 2, math.random(0,3))
  23. MovementLoopAddLocation(NPC, 824.18, -20.25, 276.6, 2, math.random(0,3))
  24. MovementLoopAddLocation(NPC, 824.92, -20.12, 271.2, 2, math.random(0,3))
  25. MovementLoopAddLocation(NPC, 821.8, -20.28, 277.36, 2, math.random(0,3))
  26. MovementLoopAddLocation(NPC, 823.04, -20.26, 271.3, 2, math.random(0,3))
  27. elseif GetSpawnLocationID(NPC)==419844 then
  28. MovementLoopAddLocation(NPC, 780.3, -20.42, 245.33, 2, math.random(0,3))
  29. MovementLoopAddLocation(NPC, 783.82, -20.33, 242.65, 2, math.random(0,3))
  30. MovementLoopAddLocation(NPC, 779.18, -20.42, 241.3, 2, math.random(0,3))
  31. MovementLoopAddLocation(NPC, 770.68, -20.35, 242.67, 2, math.random(0,3))
  32. MovementLoopAddLocation(NPC, 768.99, -20.33, 243.28, 2, math.random(0,3))
  33. MovementLoopAddLocation(NPC, 771.47, -20.36, 241.29, 2, math.random(0,3))
  34. MovementLoopAddLocation(NPC, 774.87, -20.34, 245.51, 2, math.random(0,3))
  35. MovementLoopAddLocation(NPC, 777.19, -20.42, 242.57, 2, math.random(0,3))
  36. MovementLoopAddLocation(NPC, 774.35, -20.39, 244.08, 2, math.random(0,3))
  37. MovementLoopAddLocation(NPC, 776.23, -20.33, 240.27, 2, math.random(0,3))
  38. MovementLoopAddLocation(NPC, 785.63, -20.34, 243.36, 2, math.random(0,3))
  39. MovementLoopAddLocation(NPC, 784.09, -20.41, 246.14, 2, math.random(0,3))
  40. MovementLoopAddLocation(NPC, 780.91, -20.42, 244.21, 2, math.random(0,3))
  41. elseif GetSpawnLocationID(NPC)==133773443 then
  42. MovementLoopAddLocation(NPC, 761.11, -20.04, 240.32, 2, math.random(0,3))
  43. MovementLoopAddLocation(NPC, 764.48, -20.32, 247.27, 2, math.random(0,3))
  44. MovementLoopAddLocation(NPC, 762.09, -20.3, 246.01, 2, math.random(0,3))
  45. MovementLoopAddLocation(NPC, 759.13, -20.1, 241.13, 2, math.random(0,3))
  46. MovementLoopAddLocation(NPC, 752.36, -20.31, 247.01, 2, math.random(0,3))
  47. MovementLoopAddLocation(NPC, 765.13, -20.34, 242.04, 2, math.random(0,3))
  48. MovementLoopAddLocation(NPC, 773.17, -20.11, 238.68, 2, math.random(0,3))
  49. MovementLoopAddLocation(NPC, 783.66, -20.37, 248.86, 2, math.random(0,3))
  50. MovementLoopAddLocation(NPC, 792.58, -20.01, 246.01, 2, math.random(0,3))
  51. MovementLoopAddLocation(NPC, 772.47, -20.11, 238.95, 2, math.random(0,3))
  52. MovementLoopAddLocation(NPC, 763.28, -20.39, 244.69, 2, math.random(0,3))
  53. MovementLoopAddLocation(NPC, 762.51, -20.05, 240.01, 2, math.random(0,3))
  54. MovementLoopAddLocation(NPC, 765.02, -20.36, 245.58, 2, math.random(0,3))
  55. elseif GetSpawnLocationID(NPC)==133773444 then
  56. MovementLoopAddLocation(NPC, 763.48, -20.27, 247.34, 2, math.random(0,3))
  57. MovementLoopAddLocation(NPC, 761.07, -20.25, 245.97, 2, math.random(0,3))
  58. MovementLoopAddLocation(NPC, 768.44, -20.06, 238.02, 2, math.random(0,3))
  59. MovementLoopAddLocation(NPC, 773.12, -20.39, 241.86, 2, math.random(0,3))
  60. MovementLoopAddLocation(NPC, 757.89, -20.32, 245.12, 2, math.random(0,3))
  61. MovementLoopAddLocation(NPC, 748.91, -20.19, 243.12, 2, math.random(0,3))
  62. MovementLoopAddLocation(NPC, 751.56, -20.32, 247.15, 2, math.random(0,3))
  63. MovementLoopAddLocation(NPC, 769.89, -19.97, 238.26, 2, math.random(0,3))
  64. elseif GetSpawnLocationID(NPC)==133773445 then
  65. MovementLoopAddLocation(NPC, 796.47, -20.03, 248.69, 2, math.random(0,3))
  66. MovementLoopAddLocation(NPC, 791.66, -20.32, 250.04, 2, math.random(0,3))
  67. MovementLoopAddLocation(NPC, 804.41, -20.24, 253.63, 2, math.random(0,3))
  68. MovementLoopAddLocation(NPC, 802.08, -20.28, 261.05, 2, math.random(0,3))
  69. MovementLoopAddLocation(NPC, 805.71, -20.23, 262.82, 2, math.random(0,3))
  70. MovementLoopAddLocation(NPC, 802.29, -20.05, 250.49, 2, math.random(0,3))
  71. MovementLoopAddLocation(NPC, 786.88, -20.38, 247.19, 2, math.random(0,3))
  72. MovementLoopAddLocation(NPC, 780.52, -20.37, 248.69, 2, math.random(0,3))
  73. MovementLoopAddLocation(NPC, 788.47, -20.32, 243.92, 2, 0)
  74. MovementLoopAddLocation(NPC, 793.06, -19.95, 245.49, 2, 0)
  75. elseif GetSpawnLocationID(NPC)==419846 then
  76. MovementLoopAddLocation(NPC, 799.17, -25.64, 311.55, 2, math.random(3,8))
  77. MovementLoopAddLocation(NPC, 799.6, -25.74, 306.74, 2, math.random(3,8))
  78. MovementLoopAddLocation(NPC, 802.3, -25.82, 306.67, 2, math.random(3,8))
  79. MovementLoopAddLocation(NPC, 800.1, -25.73, 308.46, 2, math.random(3,8))
  80. MovementLoopAddLocation(NPC, 801.4, -25.77, 311.65, 2, math.random(3,8))
  81. MovementLoopAddLocation(NPC, 798.51, -25.52, 315.21, 2, math.random(3,8))
  82. MovementLoopAddLocation(NPC, 799.67, -25.68, 310.77, 2, math.random(3,8))
  83. end
  84. end