breaking_the_seal_to_the_inner_sanctum.lua 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  1. --[[
  2. Script Name : Quests/TheVaultoftheFallen/breaking_the_seal_to_the_inner_sanctum.lua
  3. Script Purpose : Handles the quest, "Breaking the Seal to the Inner Sanctum"
  4. Script Author : premierio015
  5. Script Date : 17.07.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Prestige
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. SetQuestFeatherColor(Quest, 3)
  14. SetQuestRepeatable(Quest)
  15. Choice(Quest)
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. -- Add dialog here for when the quest is accepted
  19. end
  20. function Declined(Quest, QuestGiver, Player)
  21. -- Add dialog here for when the quest is declined
  22. end
  23. function Deleted(Quest, QuestGiver, Player)
  24. -- Remove any quest specific items here when the quest is deleted
  25. end
  26. function Choice(Quest)
  27. local choice = MakeRandomInt(1, 10)
  28. if choice == 1 then
  29. Step0Complete(Quest, QuestGiver, Player)
  30. elseif choice == 2 then
  31. Step3Complete(Quest, QuestGiver, Player)
  32. elseif choice == 3 then
  33. Step6Complete(Quest, QuestGiver, Player)
  34. elseif choice == 4 then
  35. Step9Complete(Quest, QuestGiver, Player)
  36. elseif choice == 5 then
  37. Step12Complete(Quest, QuestGiver, Player)
  38. elseif choice == 6 then
  39. Step15Complete(Quest, QuestGiver, Player)
  40. elseif choice == 7 then
  41. Step18Complete(Quest, QuestGiver, Player)
  42. elseif choice == 8 then
  43. Step21Complete(Quest, QuestGiver, Player)
  44. elseif choice == 9 then
  45. Step24Complete(Quest, QuestGiver, Player)
  46. elseif choice == 10 then
  47. Step27Complete(Quest, QuestGiver, Player)
  48. end
  49. end
  50. -- 1
  51. function Step0Complete(Quest, QuestGiver, Player)
  52. AddQuestStepKill(Quest, 1, "The ancient dragoon Z'Talis holds the first seal.", 1, 100, "The first seal is held by the power of an ancient dragoon.", 498, 6420006)
  53. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  54. end
  55. function Step1Complete(Quest, QuestGiver, Player)
  56. UpdateQuestStepDescription(Quest, 1, "I have recovered the seal from the ancient dragoon.")
  57. AddQuestStepKill(Quest, 2, "The ancient dragoon N'Malas holds the first seal.", 1, 100, "The first seal is held by the power of an ancient dragoon.", 498, 6420005)
  58. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  59. end
  60. function Step2Complete(Quest, QuestGiver, Player)
  61. UpdateQuestStepDescription(Quest, 2, "I have recovered the seal from the ancient dragoon.")
  62. AddQuestStepKill(Quest, 3, "The ancient dragoon L'Pazn holds the first seal.", 1, 100, "The first seal is held by the power of an ancient dragoon.", 498, 6420004)
  63. AddQuestStepCompleteAction(Quest, 3, "Step30Complete")
  64. end
  65. -- 2
  66. function Step3Complete(Quest, QuestGiver, Player)
  67. UpdateQuestStepDescription(Quest, 3, "I have recovered the seal from the ancient dragoon.")
  68. AddQuestStepKill(Quest, 4, "The ancient dragoon Vyth holds the first seal.", 1, 100, "The first seal is held by the power of an ancient dragoon.", 498, 6420049)
  69. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  70. end
  71. function Step4Complete(Quest, QuestGiver, Player)
  72. UpdateQuestStepDescription(Quest, 4, "I have recovered the seal from the ancient dragoon.")
  73. AddQuestStepKill(Quest, 5, "The ancient dragoon K'Narik holds the first seal.", 1, 100, "The first seal is held by the power of an ancient dragoon.", 498, 6420011)
  74. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  75. end
  76. function Step5Complete(Quest, QuestGiver, Player)
  77. UpdateQuestStepDescription(Quest, 5, "I have recovered the seal from the ancient dragoon.")
  78. AddQuestStepKill(Quest, 6, "The ancient dragoon S'Vol holds the first seal.", 1, 100, "The first seal is held by the power of an ancient dragoon.", 498, 6420050)
  79. AddQuestStepCompleteAction(Quest, 6, "Step30Complete")
  80. end
  81. -- 3
  82. function Step6Complete(Quest, QuestGiver, Player)
  83. UpdateQuestStepDescription(Quest, 6, "I have recovered the seal from the ancient dragoon.")
  84. AddQuestStepKill(Quest, 7, "The ancient dragoon V'Ghen holds the first seal.", 1, 100, "The first seal is held by the power of an ancient dragoon.", 498, 6420009)
  85. AddQuestStepCompleteAction(Quest, 7, "Step7Complete")
  86. end
  87. function Step7Complete(Quest, QuestGiver, Player)
  88. UpdateQuestStepDescription(Quest, 7, "I have recovered the seal from the ancient dragoon.")
  89. AddQuestStepKill(Quest, 8, "The ancient dragoon L'Abril holds the first seal.", 1, 100, "The first seal is held by the power of an ancient dragoon.", 498, 6420010)
  90. AddQuestStepCompleteAction(Quest, 8, "Step8Complete")
  91. end
  92. function Step8Complete(Quest, QuestGiver, Player)
  93. UpdateQuestStepDescription(Quest, 8, "I have recovered the seal from the ancient dragoon.")
  94. AddQuestStepKill(Quest, 9, "The ancient dragoon G'Zel holds the first seal.", 1, 100, "The first seal is held by the power of an ancient dragoon.", 498, 6420008)
  95. AddQuestStepCompleteAction(Quest, 9, "Step30Complete")
  96. end
  97. -- 4
  98. function Step9Complete(Quest, QuestGiver, Player)
  99. UpdateQuestStepDescription(Quest, 9, "I have recovered the seal from the ancient dragoon.")
  100. AddQuestStepKill(Quest, 10, "The ancient dragoon L'Na holds the first seal.", 1, 100, "The first seal is held by the power of an ancient dragoon.", 498, 6420007)
  101. AddQuestStepCompleteAction(Quest, 10, "Step10Complete")
  102. end
  103. function Step10Complete(Quest, QuestGiver, Player)
  104. UpdateQuestStepDescription(Quest, 10, "I have recovered the seal from the ancient dragoon.")
  105. UpdateQuestTaskGroupDescription(Quest, 1, "I have found and taken the seal from the ancient dragoon.")
  106. AddQuestStepKill(Quest, 11, "The old dragoon T'Vex holds the second seal.", 1, 100, "The second seal is held by an old dragoon.", 546, 6420051)
  107. AddQuestStepCompleteAction(Quest, 11, "Step11Complete")
  108. end
  109. function Step11Complete(Quest, QuestGiver, Player)
  110. UpdateQuestStepDescription(Quest, 11, "I have recovered the seal from the old dragoon.")
  111. AddQuestStepKill(Quest, 12, "The old dragoon T'Vem holds the second seal.", 1, 100, "The second seal is held by an old dragoon.", 546, 6420052)
  112. AddQuestStepCompleteAction(Quest, 12, "Step30Complete")
  113. end
  114. -- 5
  115. function Step12Complete(Quest, QuestGiver, Player)
  116. UpdateQuestStepDescription(Quest, 12, "I have recovered the seal from the old dragoon.")
  117. AddQuestStepKill(Quest, 13, "The old dragoon V'Lask holds the second seal.", 1, 100, "The second seal is held by an old dragoon.", 546, 6420053)
  118. AddQuestStepCompleteAction(Quest, 13, "Step13Complete")
  119. end
  120. function Step13Complete(Quest, QuestGiver, Player)
  121. UpdateQuestStepDescription(Quest, 13, "I have recovered the seal from the old dragoon.")
  122. AddQuestStepKill(Quest, 14, "The old dragoon V'Resh holds the second seal.", 1, 100, "The second seal is held by an old dragoon.", 546, 6420054)
  123. AddQuestStepCompleteAction(Quest, 14, "Step14Complete")
  124. end
  125. function Step14Complete(Quest, QuestGiver, Player)
  126. UpdateQuestStepDescription(Quest, 14, "I have recovered the seal from the old dragoon.")
  127. AddQuestStepKill(Quest, 15, "The old dragoon T'Kix holds the second seal.", 1, 100, "The second seal is held by an old dragoon.", 546, 6420055)
  128. AddQuestStepCompleteAction(Quest, 15, "Step30Complete")
  129. end
  130. -- 6
  131. function Step15Complete(Quest, QuestGiver, Player)
  132. UpdateQuestStepDescription(Quest, 15, "I have recovered the seal from the old dragoon.")
  133. AddQuestStepKill(Quest, 16, "The old dragoon C'Luss holds the second seal.", 1, 100, "The second seal is held by an old dragoon.", 546, 6420056)
  134. AddQuestStepCompleteAction(Quest, 16, "Step16Complete")
  135. end
  136. function Step16Complete(Quest, QuestGiver, Player)
  137. UpdateQuestStepDescription(Quest, 16, "I have recovered the seal from the old dragoon.")
  138. AddQuestStepKill(Quest, 17, "The old dragoon K'Szan holds the second seal.", 1, 100, "The second seal is held by an old dragoon.", 546, 6420012)
  139. AddQuestStepCompleteAction(Quest, 17, "Step17Complete")
  140. end
  141. function Step17Complete(Quest, QuestGiver, Player)
  142. UpdateQuestStepDescription(Quest, 17, "I have recovered the seal from the old dragoon.")
  143. AddQuestStepKill(Quest, 18, "The old dragoon K'Ixl holds the second seal.", 1, 100, "The second seal is held by an old dragoon.", 546, 6420013)
  144. AddQuestStepCompleteAction(Quest, 18, "Step30Complete")
  145. end
  146. -- 7
  147. function Step18Complete(Quest, QuestGiver, Player)
  148. UpdateQuestStepDescription(Quest, 18, "I have recovered the seal from the old dragoon.")
  149. AddQuestStepKill(Quest, 19, "The old dragoon Nezzka holds the second seal.", 1, 100, "The second seal is held by an old dragoon.", 546, 6420057)
  150. AddQuestStepCompleteAction(Quest, 19, "Step19Complete")
  151. end
  152. function Step19Complete(Quest, QuestGiver, Player)
  153. UpdateQuestStepDescription(Quest, 19, "I have recovered the seal from the old dragoon.")
  154. AddQuestStepKill(Quest, 20, "The old dragoon Din'a holds the second seal.", 1, 100, "The second seal is held by an old dragoon.", 546, 6420058)
  155. AddQuestStepCompleteAction(Quest, 20, "Step20Complete")
  156. end
  157. function Step20Complete(Quest, QuestGiver, Player)
  158. UpdateQuestStepDescription(Quest, 20, "I have recovered the seal from the old dragoon.")
  159. UpdateQuestTaskGroupDescription(Quest, 2, "I have found and taken the seal from the old dragoon.")
  160. AddQuestStepKill(Quest, 21, "The legendary dragoon S'Lon holds the third seal.", 1, 100, "The third seal is held by a legendary dragoon.", 474, 6420059)
  161. AddQuestStepCompleteAction(Quest, 21, "Step30Complete")
  162. end
  163. -- 8
  164. function Step21Complete(Quest, QuestGiver, Player)
  165. UpdateQuestStepDescription(Quest, 21, "I have recovered the seal from the legendary dragoon.")
  166. AddQuestStepKill(Quest, 22, "The legendary dragoon S'Nez holds the third seal.", 1, 100, "The third seal is held by a legendary dragoon.", 474, 6420060)
  167. AddQuestStepCompleteAction(Quest, 22, "Step22Complete")
  168. end
  169. -- 8
  170. function Step22Complete(Quest, QuestGiver, Player)
  171. UpdateQuestStepDescription(Quest, 22, "I have recovered the seal from the legendary dragoon.")
  172. AddQuestStepKill(Quest, 23, "The legendary dragoon B'Lavin holds the third seal.", 1, 100, "The third seal is held by a legendary dragoon.", 474, 6420061)
  173. AddQuestStepCompleteAction(Quest, 23, "Step23Complete")
  174. end
  175. function Step23Complete(Quest, QuestGiver, Player)
  176. UpdateQuestStepDescription(Quest, 23, "I have recovered the seal from the legendary dragoon.")
  177. AddQuestStepKill(Quest, 24, "The legendary dragoon E'Tru holds the third seal.", 1, 100, "The third seal is held by a legendary dragoon.", 474, 1)
  178. AddQuestStepCompleteAction(Quest, 24, "Step30Complete")
  179. end
  180. -- 9
  181. function Step24Complete(Quest, QuestGiver, Player)
  182. UpdateQuestStepDescription(Quest, 24, "I have recovered the seal from the legendary dragoon.")
  183. AddQuestStepKill(Quest, 25, "The legendary dragoon Z'Den holds the third seal.", 1, 100, "The third seal is held by a legendary dragoon.", 474, 6420066)
  184. AddQuestStepCompleteAction(Quest, 25, "Step25Complete")
  185. end
  186. function Step25Complete(Quest, QuestGiver, Player)
  187. UpdateQuestStepDescription(Quest, 25, "I have recovered the seal from the legendary dragoon.")
  188. AddQuestStepKill(Quest, 26, "The legendary dragoon J'Len holds the third seal.", 1, 100, "The third seal is held by a legendary dragoon.", 474, 6420065)
  189. AddQuestStepCompleteAction(Quest, 26, "Step26Complete")
  190. end
  191. function Step26Complete(Quest, QuestGiver, Player)
  192. UpdateQuestStepDescription(Quest, 26, "I have recovered the seal from the legendary dragoon.")
  193. AddQuestStepKill(Quest, 27, "The legendary dragoon N'Xry holds the third seal.", 1, 100, "The third seal is held by a legendary dragoon.", 474, 6420064)
  194. AddQuestStepCompleteAction(Quest, 27, "Step30Complete")
  195. end
  196. -- 10
  197. function Step27Complete(Quest, QuestGiver, Player)
  198. UpdateQuestStepDescription(Quest, 27, "I have recovered the seal from the legendary dragoon.")
  199. AddQuestStepKill(Quest, 28, "The legendary dragoon K'Gex holds the third seal.", 1, 100, "The third seal is held by a legendary dragoon.", 474, 6420062)
  200. AddQuestStepCompleteAction(Quest, 28, "Step28Complete")
  201. end
  202. function Step28Complete(Quest, QuestGiver, Player)
  203. UpdateQuestStepDescription(Quest, 28, "I have recovered the seal from the legendary dragoon.")
  204. AddQuestStepKill(Quest, 29, "The legendary dragoon V'Kar holds the third seal.", 1, 100, "The third seal is held by a legendary dragoon.", 474, 6420063)
  205. AddQuestStepCompleteAction(Quest, 29, "Step29Complete")
  206. end
  207. function Step29Complete(Quest, QuestGiver, Player)
  208. UpdateQuestStepDescription(Quest, 29, "I have recovered the seal from the legendary dragoon.")
  209. AddQuestStepKill(Quest, 30, "The legendary dragoon S'Zjin holds the third seal.", 1, 100, "The third seal is held by a legendary dragoon.", 474, 6420014)
  210. AddQuestStepCompleteAction(Quest, 30, "Step30Complete")
  211. end
  212. ------------------------------------------------------------------------------
  213. function Step30Complete(Quest, QuestGiver, Player)
  214. UpdateQuestStepDescription(Quest, 30, "I have recovered the seal from the legendary dragoon.")
  215. UpdateQuestTaskGroupDescription(Quest, 3, "I have found and taken the third seal from the legendary dragoon.")
  216. AddQuestStepChat(Quest, 31, "The keeper will unlock the doorway to the inner sanctum if I return the 3 seals to it.", 1, "The keeper will unlock the inner sanctum if I return the seals to it.", 879, 6420003)
  217. AddQuestStepCompleteAction(Quest, 31, "QuestComplete")
  218. end
  219. function QuestComplete(Quest, QuestGiver, Player)
  220. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  221. UpdateQuestStepDescription(Quest, 31, "I have returned the seals to the keeper")
  222. UpdateQuestTaskGroupDescription(Quest, 4, "I have returned the seals to the keeper.")
  223. UpdateQuestDescription(Quest, "I have found the seals to unlock the doorway into the Inner Sanctum of Bone.")
  224. GiveQuestReward(Quest, Player)
  225. end
  226. function Reload(Quest, QuestGiver, Player, Step)
  227. if Step == 1 then
  228. Step0Complete(Quest, QuestGiver, Player)
  229. elseif Step == 2 then
  230. Step1Complete(Quest, QuestGiver, Player)
  231. elseif Step == 3 then
  232. Step2Complete(Quest, QuestGiver, Player)
  233. elseif Step == 4 then
  234. Step3Complete(Quest, QuestGiver, Player)
  235. elseif Step == 5 then
  236. Step4Complete(Quest, QuestGiver, Player)
  237. elseif Step == 6 then
  238. Step5Complete(Quest, QuestGiver, Player)
  239. elseif Step == 7 then
  240. Step6Complete(Quest, QuestGiver, Player)
  241. elseif Step == 8 then
  242. Step7Complete(Quest, QuestGiver, Player)
  243. elseif Step == 9 then
  244. Step8Complete(Quest, QuestGiver, Player)
  245. elseif Step == 10 then
  246. Step9Complete(Quest, QuestGiver, Player)
  247. elseif Step == 11 then
  248. Step10Complete(Quest, QuestGiver, Player)
  249. elseif Step == 12 then
  250. Step11Complete(Quest, QuestGiver, Player)
  251. elseif Step == 13 then
  252. Step12Complete(Quest, QuestGiver, Player)
  253. elseif Step == 14 then
  254. Step13Complete(Quest, QuestGiver, Player)
  255. elseif Step == 15 then
  256. Step14Complete(Quest, QuestGiver, Player)
  257. elseif Step == 16 then
  258. Step15Complete(Quest, QuestGiver, Player)
  259. elseif Step == 17 then
  260. Step16Complete(Quest, QuestGiver, Player)
  261. elseif Step == 18 then
  262. Step17Complete(Quest, QuestGiver, Player)
  263. elseif Step == 19 then
  264. Step18Complete(Quest, QuestGiver, Player)
  265. elseif Step == 20 then
  266. Step19Complete(Quest, QuestGiver, Player)
  267. elseif Step == 21 then
  268. Step20Complete(Quest, QuestGiver, Player)
  269. elseif Step == 22 then
  270. Step21Complete(Quest, QuestGiver, Player)
  271. elseif Step == 23 then
  272. Step22Complete(Quest, QuestGiver, Player)
  273. elseif Step == 24 then
  274. Step23Complete(Quest, QuestGiver, Player)
  275. elseif Step == 25 then
  276. Step24Complete(Quest, QuestGiver, Player)
  277. elseif Step == 26 then
  278. Step25Complete(Quest, QuestGiver, Player)
  279. elseif Step == 27 then
  280. Step26Complete(Quest, QuestGiver, Player)
  281. elseif Step == 28 then
  282. Step27Complete(Quest, QuestGiver, Player)
  283. elseif Step == 29 then
  284. Step28Complete(Quest, QuestGiver, Player)
  285. elseif Step == 30 then
  286. Step29Complete(Quest, QuestGiver, Player)
  287. elseif Step == 31 then
  288. QuestComplete(Quest, QuestGiver, Player)
  289. end
  290. end