9
3

ashiningnibbler.lua 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. --[[
  2. Script Name : SpawnScripts/Baubbleshire/ashiningnibbler.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.08.24 02:08:19
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 = 1
  11. local level2 = 2
  12. local level3 = 3
  13. local difficulty1 = 6
  14. local hp1 = 30
  15. local power1 = 25
  16. local difficulty2 = 6
  17. local hp2 = 45
  18. local power2 = 35
  19. local difficulty3 =6
  20. local hp3 = 75
  21. local power3 = 45
  22. if Level == level1 then
  23. SpawnSet(NPC, "difficulty", difficulty1)
  24. SpawnSet(NPC, "hp", hp1)
  25. SpawnSet(NPC, "power", power1)
  26. elseif Level == level2
  27. then
  28. SpawnSet(NPC, "difficulty", difficulty2)
  29. SpawnSet(NPC, "hp", hp2)
  30. SpawnSet(NPC, "power", power2)
  31. elseif Level == level3
  32. then
  33. SpawnSet(NPC, "difficulty", difficulty3)
  34. SpawnSet(NPC, "hp", hp3)
  35. SpawnSet(NPC, "power", power3)
  36. end
  37. waypoints(NPC)
  38. end
  39. function hailed(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. end
  42. function respawn(NPC)
  43. spawn(NPC)
  44. end
  45. function waypoints(NPC)
  46. if GetSpawnLocationID(NPC)== 133774181 then
  47. MovementLoopAddLocation(NPC, 853.12, -23.19, -412.03, 5, math.random(0,8))
  48. MovementLoopAddLocation(NPC, 848.99, -23.32, -413.88, 5, math.random(0,8))
  49. MovementLoopAddLocation(NPC, 850.68, -23.49, -414.74, 5, math.random(0,2))
  50. MovementLoopAddLocation(NPC, 854.22, -23.85, -412.96, 5, math.random(0,2))
  51. MovementLoopAddLocation(NPC, 852.93, -23.48, -411.9, 5, math.random(0,2))
  52. MovementLoopAddLocation(NPC, 850.92, -23.31, -414.11, 5, math.random(0,2))
  53. MovementLoopAddLocation(NPC, 851.2, -22.78, -419.48, 5, math.random(0,2))
  54. MovementLoopAddLocation(NPC, 851.94, -23.42, -429.68, 5, math.random(0,2))
  55. MovementLoopAddLocation(NPC, 846.72, -23.23, -424.32, 5, math.random(0,2))
  56. MovementLoopAddLocation(NPC, 854.63, -23, -425.02, 5, math.random(0,2))
  57. MovementLoopAddLocation(NPC, 855.31, -21.73, -426.17, 5, math.random(0,2))
  58. MovementLoopAddLocation(NPC, 851.14, -22.14, -436.13, 5, math.random(0,2))
  59. MovementLoopAddLocation(NPC, 853.22, -21.68, -439.45, 5, math.random(0,2))
  60. MovementLoopAddLocation(NPC, 860.29, -22.72, -453.75, 5, math.random(0,2))
  61. MovementLoopAddLocation(NPC, 870.02, -22.47, -454.39, 5, math.random(0,2))
  62. MovementLoopAddLocation(NPC, 877.04, -22.47, -459.49, 5, math.random(0,2))
  63. MovementLoopAddLocation(NPC, 874.56, -21.81, -462.99, 5, math.random(0,2))
  64. MovementLoopAddLocation(NPC, 875.77, -22.33, -473.52, 5, math.random(0,2))
  65. MovementLoopAddLocation(NPC, 879.59, -21.83, -490.45, 5, math.random(0,2))
  66. MovementLoopAddLocation(NPC, 887.26, -21.99, -497.44, 5, math.random(0,2))
  67. MovementLoopAddLocation(NPC, 882.33, -21.81, -495.84, 5, math.random(0,2))
  68. MovementLoopAddLocation(NPC, 875.08, -21.78, -501.64, 5, math.random(0,2))
  69. MovementLoopAddLocation(NPC, 867.19, -21.6, -500.51, 5, math.random(0,2))
  70. MovementLoopAddLocation(NPC, 861.61, -22.53, -496.42, 5, math.random(0,2))
  71. MovementLoopAddLocation(NPC, 846.37, -21.61, -495.26, 5, math.random(0,2))
  72. MovementLoopAddLocation(NPC, 845.09, -21.7, -487.92, 5, math.random(0,2))
  73. MovementLoopAddLocation(NPC, 853.14, -21.73, -475.87, 5, math.random(0,2))
  74. MovementLoopAddLocation(NPC, 863.22, -21.76, -473.06, 5, math.random(0,2))
  75. MovementLoopAddLocation(NPC, 873.75, -22.89, -467.31, 5, math.random(0,2))
  76. MovementLoopAddLocation(NPC, 877.3, -22.89, -462.12, 5, math.random(0,2))
  77. MovementLoopAddLocation(NPC, 873.12, -22.89, -457.15, 5, math.random(0,2))
  78. MovementLoopAddLocation(NPC, 862.92, -22.88, -455.3, 5, math.random(0,2))
  79. MovementLoopAddLocation(NPC, 856.37, -22.88, -453.65, 5, math.random(0,2))
  80. MovementLoopAddLocation(NPC, 851.96, -22.88, -444.63, 5, math.random(0,2))
  81. MovementLoopAddLocation(NPC, 855.8, -22.88, -436.81, 5, math.random(0,2))
  82. MovementLoopAddLocation(NPC, 857.25, -22.88, -435.91, 5, math.random(0,2))
  83. MovementLoopAddLocation(NPC, 859.98, -22.88, -434.13, 5, math.random(0,2))
  84. MovementLoopAddLocation(NPC, 859.97, -22.73, -431.94, 5, math.random(0,2))
  85. MovementLoopAddLocation(NPC, 853.96, -22.57, -424.14, 5, math.random(0,2))
  86. MovementLoopAddLocation(NPC, 847.34, -22.57, -425.74, 5, math.random(0,2))
  87. MovementLoopAddLocation(NPC, 844.82, -22.44, -421.74, 5, math.random(0,2))
  88. MovementLoopAddLocation(NPC, 847.02, -22.83, -416.42, 5, math.random(0,2))
  89. MovementLoopAddLocation(NPC, 853.57, -22.83, -415.02, 5, math.random(0,2))
  90. elseif GetSpawnLocationID(NPC)== 133774182 then
  91. MovementLoopAddLocation(NPC, 860.84, -21.92, -502.59, 5, math.random(0,2))
  92. MovementLoopAddLocation(NPC, 858.95, -21.57, -502.19, 5, math.random(0,2))
  93. MovementLoopAddLocation(NPC, 860.96, -21.53, -497.35, 5, math.random(0,2))
  94. MovementLoopAddLocation(NPC, 864.73, -22.53, -498.84, 5, math.random(0,2))
  95. MovementLoopAddLocation(NPC, 865.86, -21.94, -501.89, 5, math.random(0,2))
  96. MovementLoopAddLocation(NPC, 864.72, -21.64, -504, 5, math.random(0,2))
  97. MovementLoopAddLocation(NPC, 867.44, -21.66, -502.1, 5, math.random(0,2))
  98. MovementLoopAddLocation(NPC, 872.46, -21.81, -503.02, 5, math.random(0,2))
  99. MovementLoopAddLocation(NPC, 882.63, -23.04, -500.2, 5, math.random(0,2))
  100. MovementLoopAddLocation(NPC, 883.54, -22.94, -495.03, 5, math.random(0,2))
  101. MovementLoopAddLocation(NPC, 878.91, -22.58, -492.55, 5, math.random(0,2))
  102. MovementLoopAddLocation(NPC, 878.32, -21.78, -486.6, 5, math.random(0,2))
  103. MovementLoopAddLocation(NPC, 876.56, -22.59, -476.09, 5, math.random(0,2))
  104. MovementLoopAddLocation(NPC, 872.23, -23.4, -470.75, 5, math.random(0,2))
  105. MovementLoopAddLocation(NPC, 876.53, -23.17, -469.08, 5, math.random(0,2))
  106. MovementLoopAddLocation(NPC, 880.16, -23.82, -461.72, 5, math.random(0,2))
  107. MovementLoopAddLocation(NPC, 878.19, -23.21, -456.22, 5, math.random(0,2))
  108. MovementLoopAddLocation(NPC, 870.74, -22.72, -454.9, 5, math.random(0,2))
  109. MovementLoopAddLocation(NPC, 859.88, -22.66, -454.41, 5, math.random(0,2))
  110. MovementLoopAddLocation(NPC, 854.04, -22.66, -444.01, 5, math.random(0,2))
  111. MovementLoopAddLocation(NPC, 854.02, -22.66, -438.35, 5, math.random(0,2))
  112. MovementLoopAddLocation(NPC, 852.5, -22.66, -428.4, 5, math.random(0,2))
  113. MovementLoopAddLocation(NPC, 855.64, -22.66, -424.87, 5, math.random(0,2))
  114. MovementLoopAddLocation(NPC, 850.32, -22.66, -427.29, 5, math.random(0,2))
  115. MovementLoopAddLocation(NPC, 854.83, -22.66, -427.48, 5, math.random(0,2))
  116. MovementLoopAddLocation(NPC, 851.64, -22.25, -418.45, 5, math.random(0,2))
  117. MovementLoopAddLocation(NPC, 849.46, -23.47, -414.11, 5, math.random(0,2))
  118. MovementLoopAddLocation(NPC, 849.46, -23.47, -414.11, 5, math.random(0,2))
  119. MovementLoopAddLocation(NPC, 854.64, -23.27, -412.25, 5, math.random(0,2))
  120. MovementLoopAddLocation(NPC, 849.86, -22.33, -415.34, 5, math.random(0,2))
  121. MovementLoopAddLocation(NPC, 845.2, -22.76, -418.16, 5, math.random(0,2))
  122. MovementLoopAddLocation(NPC, 846.52, -22.69, -424.49, 5, math.random(0,2))
  123. MovementLoopAddLocation(NPC, 850.63, -23.93, -433.77, 5, math.random(0,2))
  124. MovementLoopAddLocation(NPC, 852.17, -23.17, -445.88, 5, math.random(0,2))
  125. MovementLoopAddLocation(NPC, 862.32, -23.12, -455.07, 5, math.random(0,2))
  126. MovementLoopAddLocation(NPC, 871.03, -22.89, -455.07, 5, math.random(0,2))
  127. MovementLoopAddLocation(NPC, 873.42, -22.82, -462.42, 5, math.random(0,2))
  128. MovementLoopAddLocation(NPC, 872.03, -22.82, -470.25, 5, math.random(0,2))
  129. MovementLoopAddLocation(NPC, 867.03, -22.47, -469.84, 5, math.random(0,2))
  130. MovementLoopAddLocation(NPC, 863.1, -22.46, -474.19, 5, math.random(0,2))
  131. MovementLoopAddLocation(NPC, 853.1, -21.87, -473.29, 5, math.random(0,2))
  132. MovementLoopAddLocation(NPC, 849.61, -21.84, -478.81, 5, math.random(0,2))
  133. MovementLoopAddLocation(NPC, 847.68, -21.67, -482.89, 5, math.random(0,2))
  134. MovementLoopAddLocation(NPC, 840.04, -21.84, -491.99, 5, math.random(0,2))
  135. MovementLoopAddLocation(NPC, 843.37, -21.84, -496.23, 5, math.random(0,2))
  136. MovementLoopAddLocation(NPC, 844.21, -21.96, -491.5, 5, math.random(0,2))
  137. MovementLoopAddLocation(NPC, 850.66, -21.8, -497.16, 5, math.random(0,2))
  138. MovementLoopAddLocation(NPC, 857.54, -21.88, -500.74, 5, math.random(0,2))
  139. MovementLoopAddLocation(NPC, 861.02, -21.81, -503.77, 5, math.random(0,2))
  140. MovementLoopAddLocation(NPC, 863.37, -21.82, -505.28, 5, math.random(0,2))
  141. MovementLoopAddLocation(NPC, 861.6, -22.17, -500.51, 5, math.random(0,2))
  142. MovementLoopAddLocation(NPC, 862.22, -21.93, -503.26, 5, math.random(0,8))
  143. MovementLoopAddLocation(NPC, 865.07, -22.16, -503.57, 5, math.random(0,8))
  144. end
  145. end