the_sabertooth_miners_guide_part_two.lua 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. --[[
  2. Script Name : Quests/Blackburrow/the_sabertooth_miners_guide_part_two.lua
  3. Script Author : Premierio015
  4. Script Date : 2022.07.27 05:07:48
  5. Script Purpose :
  6. Zone : Blackburrow
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to kill 6 Sabertooth excavators.", 6, 100, "I will find more pages of this book in Blackburrow.", 611, 170029)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. -- Add dialog here for when the quest is accepted
  17. end
  18. function Declined(Quest, QuestGiver, Player)
  19. -- Add dialog here for when the quest is declined
  20. end
  21. function Deleted(Quest, QuestGiver, Player)
  22. -- Remove any quest specific items here when the quest is deleted
  23. end
  24. function Step1Complete(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I have killed 6 Sabertooth excavators.")
  26. AddQuestStep(Quest, 2, "I need to read the next page of the book.", 1, 100, "I will find more pages of this book in Blackburrow.", 185)
  27. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  28. end
  29. function Step2Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 2, "I have read the old book.")
  31. AddQuestStepKill(Quest, 3, "I need to kill 10 Sabertooth excavators.", 10, 100, "I will find more pages of this book in Blackburrow.", 611, 170029)
  32. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  33. end
  34. function Step3Complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 3, "I have killed 10 Sabertooth excavators.")
  36. AddQuestStep(Quest, 4, "I need to read the next page of the book.", 1, 100, "I will find more pages of this book in Blackburrow.", 185)
  37. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  38. end
  39. function Step4Complete(Quest, QuestGiver, Player)
  40. UpdateQuestStepDescription(Quest, 4, "I have read the old book.")
  41. AddQuestStepKill(Quest, 5, "I need to kill 7 Sabertooth miners.", 7, 100, "I will find more pages of this book in Blackburrow.", 611, 170010)
  42. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  43. end
  44. function Step5Complete(Quest, QuestGiver, Player)
  45. UpdateQuestStepDescription(Quest, 5, "I have killed 7 Sabertooth miners.")
  46. AddQuestStep(Quest, 6, "I need to read the next page of the book.", 1, 100, "I will find more pages of this book in Blackburrow.", 185)
  47. AddQuestStepCompleteAction(Quest, 6, "Step6Complete")
  48. end
  49. function Step6Complete(Quest, QuestGiver, Player)
  50. UpdateQuestStepDescription(Quest, 6, "I have read the old book.")
  51. AddQuestStepKill(Quest, 7, "I need to kill 5 Sabertooth guards.", 5, 100, "I will find more pages of this book in Blackburrow.", 611, 170022)
  52. AddQuestStepCompleteAction(Quest, 7, "Step7Complete")
  53. end
  54. function Step7Complete(Quest, QuestGiver, Player)
  55. UpdateQuestStepDescription(Quest, 7, "I have killed 5 Sabertooth guards.")
  56. AddQuestStep(Quest, 8, "I need to read the next page of the book.", 1, 100, "I will find more pages of this book in Blackburrow.", 185)
  57. AddQuestStepCompleteAction(Quest, 8, "Step8Complete")
  58. end
  59. function Step8Complete(Quest, QuestGiver, Player)
  60. UpdateQuestStepDescription(Quest, 8, "I have read the old book.")
  61. AddQuestStepKill(Quest, 9, "I need to kill 6 snakes in Blackburrow.", 6, 100, "I will find more pages of this book in Blackburrow.", 611, 170025, 170034)
  62. AddQuestStepCompleteAction(Quest, 9, "Step9Complete")
  63. end
  64. function Step9Complete(Quest, QuestGiver, Player)
  65. UpdateQuestStepDescription(Quest, 9, "I have killed 6 snakes.")
  66. AddQuestStep(Quest, 10, "I need to read the next page of the book.", 1, 100, "I will find more pages of this book in Blackburrow.", 185)
  67. AddQuestStepCompleteAction(Quest, 10, "Step10Complete")
  68. end
  69. function Step10Complete(Quest, QuestGiver, Player)
  70. UpdateQuestStepDescription(Quest, 10, "I have read the old book.")
  71. AddQuestStepKill(Quest, 11, "I need to kill 8 Sabertooth guards.", 8, 100, "I will find more pages of this book in Blackburrow.", 611, 170022)
  72. AddQuestStepCompleteAction(Quest, 11, "Step11Complete")
  73. end
  74. function Step11Complete(Quest, QuestGiver, Player)
  75. UpdateQuestStepDescription(Quest, 11, "I have killed 8 Sabertooth guards.")
  76. AddQuestStep(Quest, 12, "I need to read the next page of the book.", 1, 100, "I will find more pages of this book in Blackburrow.", 11)
  77. AddQuestStepCompleteAction(Quest, 12, "Step12Complete")
  78. end
  79. function Step12Complete(Quest, QuestGiver, Player)
  80. UpdateQuestStepDescription(Quest, 12, "I have read the old book.")
  81. AddQuestStepKill(Quest, 13, "I need to kill 5 Sabertooth guards.", 5, 100, "I will find more pages of this book in Blackburrow.", 611, 170022)
  82. AddQuestStepCompleteAction(Quest, 13, "Step13Complete")
  83. end
  84. function Step13Complete(Quest, QuestGiver, Player)
  85. UpdateQuestStepDescription(Quest, 13, "I have killed 5 Sabertooth guards.")
  86. AddQuestStep(Quest, 14, "I need to read the next page of the book.", 1, 100, "I will find more pages of this book in Blackburrow.", 185)
  87. AddQuestStepCompleteAction(Quest, 14, "Step14Complete")
  88. end
  89. function Step14Complete(Quest, QuestGiver, Player)
  90. UpdateQuestStepDescription(Quest, 14, "I have read the old book.")
  91. AddQuestStepKill(Quest, 15, "I need to kill 5 Sabertooth oracles.", 5, 100, "I will find more pages of this book in Blackburrow.", 611, 170042)
  92. AddQuestStepCompleteAction(Quest, 15, "Step15Complete")
  93. end
  94. function Step15Complete(Quest, QuestGiver, Player)
  95. UpdateQuestStepDescription(Quest, 15, "I have killed 5 Sabertooth oracles.")
  96. AddQuestStep(Quest, 16, "I need to read the next page of the book.", 1, 100, "I will find more pages of this book in Blackburrow.", 185)
  97. AddQuestStepCompleteAction(Quest, 16, "Step16Complete")
  98. end
  99. function Step16Complete(Quest, QuestGiver, Player)
  100. UpdateQuestStepDescription(Quest, 16, "I have read the old book.")
  101. AddQuestStepKill(Quest, 17, "I need to kill 4 stockpile protectors.", 4, 100, "I will find more pages of this book in Blackburrow.", 611, 170039)
  102. AddQuestStepCompleteAction(Quest, 17, "Step17Complete")
  103. end
  104. function Step17Complete(Quest, QuestGiver, Player)
  105. UpdateQuestStepDescription(Quest, 17, "I have killed 4 stockpile protectors.")
  106. AddQuestStep(Quest, 18, "I need to read the last page of the book.", 1, 100, "I will find more pages of this book in Blackburrow.", 185)
  107. AddQuestStepCompleteAction(Quest, 18, "QuestComplete")
  108. end
  109. function QuestComplete(Quest, QuestGiver, Player)
  110. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  111. UpdateQuestStepDescription(Quest, 18, "I have read the old book.")
  112. UpdateQuestTaskGroupDescription(Quest, 1, "I've found the missing pages of the book.")
  113. if HasItem(Player, 4147) then
  114. RemoveItem(Player, 4147)
  115. end
  116. UpdateQuestDescription(Quest, "Until I read this book, I had no notion of the Sabertooth gnolls' history in Blackburrow. I'm still not entirely sure, but it was a interesting to see how the changing of our world changed the gnolls. Evidently, not much.")
  117. GiveQuestReward(Quest, Player)
  118. end
  119. function Reload(Quest, QuestGiver, Player, Step)
  120. if Step == 1 then
  121. Step1Complete(Quest, QuestGiver, Player)
  122. elseif Step == 2 then
  123. Step2Complete(Quest, QuestGiver, Player)
  124. elseif Step == 3 then
  125. Step3Complete(Quest, QuestGiver, Player)
  126. elseif Step == 4 then
  127. Step4Complete(Quest, QuestGiver, Player)
  128. elseif Step == 5 then
  129. Step5Complete(Quest, QuestGiver, Player)
  130. elseif Step == 6 then
  131. Step6Complete(Quest, QuestGiver, Player)
  132. elseif Step == 7 then
  133. Step7Complete(Quest, QuestGiver, Player)
  134. elseif Step == 8 then
  135. Step8Complete(Quest, QuestGiver, Player)
  136. elseif Step == 9 then
  137. Step9Complete(Quest, QuestGiver, Player)
  138. elseif Step == 10 then
  139. Step10Complete(Quest, QuestGiver, Player)
  140. elseif Step == 11 then
  141. Step11Complete(Quest, QuestGiver, Player)
  142. elseif Step == 12 then
  143. Step12Complete(Quest, QuestGiver, Player)
  144. elseif Step == 13 then
  145. Step13Complete(Quest, QuestGiver, Player)
  146. elseif Step == 14 then
  147. Step14Complete(Quest, QuestGiver, Player)
  148. elseif Step == 15 then
  149. Step15Complete(Quest, QuestGiver, Player)
  150. elseif Step == 16 then
  151. Step16Complete(Quest, QuestGiver, Player)
  152. elseif Step == 17 then
  153. Step17Complete(Quest, QuestGiver, Player)
  154. elseif Step == 18 then
  155. QuestComplete(Quest, QuestGiver, Player)
  156. end
  157. end