9
3

Beggars_Court_Wanderers.lua 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/Beggars_Court_Wanderers.luaBeggars_Court_Wanderers.lua
  3. Script Purpose : Waypoint Path for Beggars_Court_Wanderers.lua
  4. Script Author : Cynnar
  5. Script Date : 7/8/2018 04:07:20 PM
  6. Script Notes : <special-instructions>
  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, 76.51, -7.08, 101.84, 2, 0)
  19. MovementLoopAddLocation(NPC, 72.4, -7.08, 101.96, 2, 0)
  20. path = math.random(0, 1)
  21. if path == 1 then
  22. path_1(NPC)
  23. else
  24. path_2(NPC)
  25. end
  26. MovementLoopAddLocation(NPC, 62.84, -7.08, 94.95, 2, 0)
  27. MovementLoopAddLocation(NPC, 58.33, -7.05, 86.02, 2, 0)
  28. MovementLoopAddLocation(NPC, 57.45, -6.58, 83.55, 2, 0, "ChangeGrid_1")
  29. MovementLoopAddLocation(NPC, 55.85, -6.5, 79.19, 2, 0)
  30. MovementLoopAddLocation(NPC, 52.89, -6.99, 69.56, 2, 0, "ChangeGrid_2")
  31. MovementLoopAddLocation(NPC, 51.17, -6.95, 62.54, 2, 0)
  32. MovementLoopAddLocation(NPC, 45.78, -7, 55.28, 2,0)
  33. MovementLoopAddLocation(NPC, 41.8, -7, 51.68, 2, 3)
  34. path = math.random(0, 1)
  35. if path == 1 then
  36. path_1_A(NPC)
  37. end
  38. MovementLoopAddLocation(NPC, 42.64, -5, 40.87, 2, 3)
  39. MovementLoopAddLocation(NPC, 43.89, -5, 40.21, 2, 3)
  40. MovementLoopAddLocation(NPC, 27.27, -6, 40.12, 2, 3)
  41. MovementLoopAddLocation(NPC, 24.88, -6, 34.74, 2, 3)
  42. MovementLoopAddLocation(NPC, 16.71, -5.75, 34.48, 2, 3)
  43. MovementLoopAddLocation(NPC, 13.11, -6, 36.49, 2, 3)
  44. MovementLoopAddLocation(NPC, 14.42, -6, 40.24, 2, 3)
  45. MovementLoopAddLocation(NPC, 11.33, -6.25, 43.25, 2, 3)
  46. MovementLoopAddLocation(NPC, -6.66, -6, 35.16, 2, 3)
  47. MovementLoopAddLocation(NPC, -7.45, -6, 33.4, 2, 3)
  48. MovementLoopAddLocation(NPC, -7.41, -6, 33.09, 2, 3)
  49. MovementLoopAddLocation(NPC, -11.25, -6, 30.03, 2, 3)
  50. MovementLoopAddLocation(NPC, -13.45, -6, 23.67, 2, 3)
  51. MovementLoopAddLocation(NPC, -11.78, -5.1, 16.14, 2, 3)
  52. MovementLoopAddLocation(NPC, -16.93, -5, 12.21, 2, 3)
  53. MovementLoopAddLocation(NPC, -20.48, -3.96, 9.01, 2, 3)
  54. MovementLoopAddLocation(NPC, -28.12, -0.75, 5.29, 2, 3)
  55. MovementLoopAddLocation(NPC, -26.82, -0.76, 2.13, 2, 3)
  56. MovementLoopAddLocation(NPC, -19.68, 1.82, 4.93, 2, 3)
  57. MovementLoopAddLocation(NPC, -17.61, 2, 0.15, 2, 3)
  58. MovementLoopAddLocation(NPC, -19.44, 2, -2.54, 2, 3)
  59. MovementLoopAddLocation(NPC, -15.69, 2.09, -6.11, 2, 3)
  60. MovementLoopAddLocation(NPC, -15.05, 3.75, -28.85, 2, 3)
  61. MovementLoopAddLocation(NPC, -12.61, 4, -34.72, 2, 3)
  62. MovementLoopAddLocation(NPC, -14.26, 4, -37.55, 2, 3)
  63. MovementLoopAddLocation(NPC, -8.02, 3, -36.51, 2, 3)
  64. MovementLoopAddLocation(NPC, -5.93, 3.75, -37.63, 2, 3)
  65. MovementLoopAddLocation(NPC, -4.4, 4.44, -39.8, 2, 3)
  66. MovementLoopAddLocation(NPC, 0.06, 5, -38.61, 2, 3)
  67. MovementLoopAddLocation(NPC, -0.62, 5, -37.87, 2, 3)
  68. MovementLoopAddLocation(NPC, -1.49, 5, -34.88, 2, 3)
  69. MovementLoopAddLocation(NPC, 5.47, 4.75, -28.55, 2, 3)
  70. MovementLoopAddLocation(NPC, 12.6, 4.75, -27.41, 2, 3)
  71. MovementLoopAddLocation(NPC, 20.15, 5.25, -32.81, 2, 3)
  72. MovementLoopAddLocation(NPC, 21.55, 5.25, -31.33, 2, 3)
  73. MovementLoopAddLocation(NPC, 19.59, 5.03, -28.83, 2, 3)
  74. MovementLoopAddLocation(NPC, 19.96, 5, -23.39, 2, 3)
  75. MovementLoopAddLocation(NPC, 26.94, 5.25, -20.26, 2, 3)
  76. MovementLoopAddLocation(NPC, 23.5, 5.25, -14.64, 2, 3)
  77. MovementLoopAddLocation(NPC, 31.51, 5.25, -11.6, 2, 3)
  78. MovementLoopAddLocation(NPC, 42.69, 5.25, -15.26, 2, 3)
  79. MovementLoopAddLocation(NPC, 52.8, 5, -21.17, 2, 3)
  80. MovementLoopAddLocation(NPC, 58.2, 5.01, -23.22, 2, 3)
  81. MovementLoopAddLocation(NPC, 53.74, 5, -15.59, 2, 3)
  82. MovementLoopAddLocation(NPC, 45.41, 3.67, -8.05, 2, 3)
  83. MovementLoopAddLocation(NPC, 43.38, 3.5, -5.24, 2, 3)
  84. MovementLoopAddLocation(NPC, 30.73, 3.83, -2.81, 2, 3)
  85. MovementLoopAddLocation(NPC, 17.58, 3.5, -3.76, 2, 3)
  86. MovementLoopAddLocation(NPC, 10.47, 3.5, -5.34, 2, 3)
  87. MovementLoopAddLocation(NPC, 10.93, 3.5, -1.67, 2, 3)
  88. MovementLoopAddLocation(NPC, 20.03, 3.5, 6.08, 2, 3)
  89. MovementLoopAddLocation(NPC, 27.67, 2, 15.87, 2, 3)
  90. MovementLoopAddLocation(NPC, 20.5, 2.08, 17.41, 2, 3)
  91. MovementLoopAddLocation(NPC, 20.81, 2.98, 20.05, 2, 3)
  92. MovementLoopAddLocation(NPC, 20.64, 2, 19.12, 2, 3)
  93. MovementLoopAddLocation(NPC, 34, 2, 14.51, 2, 3)
  94. MovementLoopAddLocation(NPC, 43.07, 2, 16.15, 2, 3)
  95. MovementLoopAddLocation(NPC, 48.67, 2, 17.8, 2, 3)
  96. MovementLoopAddLocation(NPC, 49.89, 2, 22.67, 2, 3)
  97. MovementLoopAddLocation(NPC, 49.77, 1.9, 24.77, 2, 3)
  98. MovementLoopAddLocation(NPC, 46.84, 1.27, 25.5, 2, 3)
  99. MovementLoopAddLocation(NPC, 32.56, -5, 23.54, 2, 3)
  100. MovementLoopAddLocation(NPC, 31.55, -5, 27.34, 2, 3)
  101. MovementLoopAddLocation(NPC, 40.3, -5, 36.87, 2, 3)
  102. MovementLoopAddLocation(NPC, 41.7, -6, 45.4, 2, 3)
  103. MovementLoopAddLocation(NPC, 47.45, -7, 56.29, 2, 3)
  104. MovementLoopAddLocation(NPC, 57.56, -6.97, 62.99, 2, 3, "depop")
  105. end
  106. function depop(NPC)
  107. Despawn(NPC)
  108. end
  109. function ChangeGrid_1(NPC)
  110. SetGridID(NPC, 4022248764)
  111. end
  112. function ChangeGrid_2(NPC)
  113. SetGridID(NPC, 2799241780)
  114. end
  115. function path_1(NPC)
  116. MovementLoopAddLocation(NPC, 69.32, -7.08, 108.95, 2, 3)
  117. MovementLoopAddLocation(NPC, 64.66, -7.08, 109.92, 2, 3)
  118. MovementLoopAddLocation(NPC, 62.35, -7.08, 109.55, 2, 0)
  119. MovementLoopAddLocation(NPC, 59.48, -7.08, 109.09, 2, 0)
  120. MovementLoopAddLocation(NPC, 58.84, -7.08, 107.72, 2, 0)
  121. MovementLoopAddLocation(NPC, 57.73, -7.08, 105.35, 2, 0)
  122. MovementLoopAddLocation(NPC, 57.57, -7.08, 101.5, 2, 0)
  123. MovementLoopAddLocation(NPC, 58.9, -7.08, 98.79, 2, 0)
  124. end
  125. function path_2(NPC)
  126. MovementLoopAddLocation(NPC, 68.09, -7.08, 97.75, 2, 0)
  127. end
  128. function path_1_A(NPC)
  129. MovementLoopAddLocation(NPC, 25, -7, 56.25, 2, 0)
  130. MovementLoopAddLocation(NPC, 17.17, -7, 58.82, 2, 0)
  131. MovementLoopAddLocation(NPC, 16.53, -0.75, 72.89, 2, 0)
  132. MovementLoopAddLocation(NPC, 13.47, -0.12, 75.39, 2, 0)
  133. MovementLoopAddLocation(NPC, 10.45, -0.05, 76.46, 2, 0)
  134. MovementLoopAddLocation(NPC, 10.46, 0.01, 77.78, 2, 0)
  135. MovementLoopAddLocation(NPC, 10.55, -0.05, 76.39, 2, 0)
  136. MovementLoopAddLocation(NPC, 6.8, -1.93, 70.46, 2, 0)
  137. MovementLoopAddLocation(NPC, 7.41, -7, 59.23, 2, 0)
  138. MovementLoopAddLocation(NPC, 2.35, -7, 59.67, 2, 0)
  139. MovementLoopAddLocation(NPC, -6.62, -7, 58.65, 2, 0)
  140. MovementLoopAddLocation(NPC, -15.4, -7, 58.49, 2, 0)
  141. MovementLoopAddLocation(NPC, -20.39, -7, 59.96, 2, 0)
  142. MovementLoopAddLocation(NPC, -23.43, -7, 58.81, 2, 0)
  143. MovementLoopAddLocation(NPC, -23.03, -7, 60.95, 2, 0)
  144. MovementLoopAddLocation(NPC, -23.37, -7, 63.33, 2, 0)
  145. MovementLoopAddLocation(NPC, -21.73, -7, 66.38, 2, 0)
  146. MovementLoopAddLocation(NPC, -20.28, -7, 64.77, 2, 0)
  147. MovementLoopAddLocation(NPC, -15.87, -7, 56.06, 2, 0)
  148. MovementLoopAddLocation(NPC, -11.31, -7, 57.61, 2, 0)
  149. MovementLoopAddLocation(NPC, -9.91, -7, 46.9, 2, 0)
  150. MovementLoopAddLocation(NPC, -10.81, -7, 40.38, 2, 0)
  151. MovementLoopAddLocation(NPC, -27.28, -6.5, 30.38, 2, 0)
  152. MovementLoopAddLocation(NPC, -31.12, -5.75, 25.53, 2, 0)
  153. MovementLoopAddLocation(NPC, -34.9, -5.75, 25, 2, 0)
  154. end