9
3

GearBot.lua 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. --[[
  2. Script Name : SpawnScripts/Generic/GearBot.lua
  3. Script Purpose : gear bot for testers
  4. Script Author : theFoof
  5. Script Date : 2013.5.23
  6. Script Notes :
  7. --]]
  8. function hailed(NPC, Spawn)
  9. FaceTarget(NPC, Spawn)
  10. local class = GetClass(Spawn)
  11. local choice = math.random(1,3)
  12. if choice == 1 then
  13. PlayFlavor(NPC, "voiceover/english/overlord_lucan_d_lere/fprt_west/lucan_isle_speech_6.mp3", "Go now, and begin the trials that I have set for you.", "", 1244918730, 586509135, Spawn)
  14. elseif choice == 2 then
  15. PlayFlavor(NPC, "voiceover/english/overlord_lucan_d_lere/fprt_west/lucan_isle_speech_4.mp3", "You show potential, but there are many who seek the auspices of Lucan, and I only have time for champions.", "", 2060818628, 3998142234, Spawn)
  16. elseif choice == 3 then
  17. PlayFlavor(NPC, "voiceover/english/overlord_lucan_d_lere/fprt_west/lucan_isle_speech_9.mp3", "With my guidance, you shall gain power and glory as you have never imagined, but should you turn against me, you will find that my wrath is a terrible thing ... Now go!", "", 3855854568, 2247480313, Spawn)
  18. end
  19. if class >= 1 and class <=10 and class ~= 6 and class ~= 7 then
  20. if HasItem(Spawn, 137284) == false then
  21. SendPopUpMessage(Spawn, "Check your bags", 0, 255, 255)
  22. SummonItem(Spawn, 137284)
  23. SummonItem(Spawn, 137285)
  24. SummonItem(Spawn, 137286)
  25. SummonItem(Spawn, 137287)
  26. SummonItem(Spawn, 137288)
  27. SummonItem(Spawn, 137289)
  28. SummonItem(Spawn, 137290)
  29. if class == 1 or class == 2 then
  30. SummonItem(Spawn, 72716)
  31. SummonItem(Spawn, 72716)
  32. SummonItem(Spawn, 72682)
  33. SummonItem(Spawn, 40049)
  34. SummonItem(Spawn, 50659)
  35. else
  36. SummonItem(Spawn, 72712)
  37. SummonItem(Spawn, 50659)
  38. SummonItem(Spawn, 70283)
  39. SummonItem(Spawn, 40049)
  40. SummonItem(Spawn, 72682)
  41. end
  42. end
  43. elseif class == 6 or class == 7 then
  44. if HasItem(Spawn, 72707) == false then
  45. SendPopUpMessage(Spawn, "Check your bags", 0, 255, 255)
  46. SummonItem(Spawn, 72707)
  47. SummonItem(Spawn, 72707)
  48. SummonItem(Spawn, 70283)
  49. SummonItem(Spawn, 190164)
  50. SummonItem(Spawn, 190165)
  51. SummonItem(Spawn, 190166)
  52. SummonItem(Spawn, 190167)
  53. SummonItem(Spawn, 190168)
  54. SummonItem(Spawn, 190169)
  55. SummonItem(Spawn, 190170)
  56. end
  57. elseif class == 13 or class == 14 then
  58. if HasItem(Spawn, 137284) == false then
  59. SendPopUpMessage(Spawn, "Check your bags", 0, 255, 255)
  60. SummonItem(Spawn, 137284)
  61. SummonItem(Spawn, 137285)
  62. SummonItem(Spawn, 137286)
  63. SummonItem(Spawn, 137287)
  64. SummonItem(Spawn, 137288)
  65. SummonItem(Spawn, 137289)
  66. SummonItem(Spawn, 137290)
  67. SummonItem(Spawn, 50119)
  68. SummonItem(Spawn, 72734)
  69. SummonItem(Spawn, 72713)
  70. end
  71. elseif class == 16 or class == 17 then
  72. if HasItem(Spawn, 190164) == false then
  73. SendPopUpMessage(Spawn, "Check your bags", 0, 255, 255)
  74. SummonItem(Spawn, 190164)
  75. SummonItem(Spawn, 190165)
  76. SummonItem(Spawn, 190166)
  77. SummonItem(Spawn, 190167)
  78. SummonItem(Spawn, 190168)
  79. SummonItem(Spawn, 190169)
  80. SummonItem(Spawn, 190170)
  81. SummonItem(Spawn, 50119)
  82. SummonItem(Spawn, 72734)
  83. SummonItem(Spawn, 72713)
  84. end
  85. elseif class == 19 or class == 20 then
  86. if HasItem(Spawn, 137271) == false then
  87. SendPopUpMessage(Spawn, "Check your bags", 0, 255, 255)
  88. SummonItem(Spawn, 137271)
  89. SummonItem(Spawn, 137272)
  90. SummonItem(Spawn, 137273)
  91. SummonItem(Spawn, 137274)
  92. SummonItem(Spawn, 137275)
  93. SummonItem(Spawn, 137276)
  94. SummonItem(Spawn, 137277)
  95. SummonItem(Spawn, 72716)
  96. SummonItem(Spawn, 72716)
  97. SummonItem(Spawn, 50119)
  98. SummonItem(Spawn, 72734)
  99. SummonItem(Spawn, 72713)
  100. end
  101. elseif class >= 22 and class <= 30 then
  102. if HasItem(Spawn, 175094) == false then
  103. SendPopUpMessage(Spawn, "Check your bags", 0, 255, 255)
  104. SummonItem(Spawn, 175094)
  105. SummonItem(Spawn, 175096)
  106. SummonItem(Spawn, 175097)
  107. SummonItem(Spawn, 175100)
  108. SummonItem(Spawn, 175101)
  109. SummonItem(Spawn, 175105)
  110. SummonItem(Spawn, 175107)
  111. SummonItem(Spawn, 175108)
  112. SummonItem(Spawn, 70287)
  113. end
  114. elseif class >= 31 then
  115. if HasItem(Spawn, 137271) == false then
  116. SendPopUpMessage(Spawn, "Check your bags", 0, 255, 255)
  117. SummonItem(Spawn, 137271)
  118. SummonItem(Spawn, 137272)
  119. SummonItem(Spawn, 137273)
  120. SummonItem(Spawn, 137274)
  121. SummonItem(Spawn, 137275)
  122. SummonItem(Spawn, 137276)
  123. SummonItem(Spawn, 137277)
  124. SummonItem(Spawn, 40050)
  125. SummonItem(Spawn, 72716)
  126. SummonItem(Spawn, 72716)
  127. end
  128. end
  129. end