ignatia_cellus_history_of_antonica.lua 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. --[[
  2. Script Name : Quests/Antonica/ignatia_cellus_history_of_antonica.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.05.30 02:05:23
  5. Script Purpose :
  6. Zone : Antonica
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to search Sabertooth battlers.", 6, 100, "I want to find the pages to the book.", 611, 120184)
  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 searched Sabertooth battlers and found the page!")
  26. AddQuestStep(Quest, 2, "I want to read the page I found.", 1, 100, "I want to find the pages to the book.", 185)
  27. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  28. end
  29. function Step2Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 2, "I believe the Sabertooth rune casters of Antonica will have more of these pages.")
  31. AddQuestStepKill(Quest, 3, "I need to search for Sabertooth rune casters.", 4, 100, "I want to find the pages to the book.", 611, 120300)
  32. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  33. end
  34. function Step3Complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 3, "I have searched Sabertooth rune casters and found the page!")
  36. AddQuestStep(Quest, 4, "I want to read the page I found.", 1, 100, "I want to find the pages to the book.", 185)
  37. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  38. end
  39. function Step4Complete(Quest, QuestGiver, Player)
  40. UpdateQuestStepDescription(Quest, 4, "I believe the Sabertooth battlers of Antonica will have more of these pages.")
  41. AddQuestStepKill(Quest, 5, "I need to search more Sabertooth battlers.", 8, 100, "I want to find the pages to the book.", 611, 120184)
  42. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  43. end
  44. function Step5Complete(Quest, QuestGiver, Player)
  45. UpdateQuestStepDescription(Quest, 5, "I have searched more Sabertooth battlers and found the page!")
  46. AddQuestStep(Quest, 6, "I want to read the page I found.", 1, 100, "I want to find the pages to the book.", 185)
  47. AddQuestStepCompleteAction(Quest, 6, "Step6Complete")
  48. end
  49. function Step6Complete(Quest, QuestGiver, Player)
  50. UpdateQuestStepDescription(Quest, 6, "I believe the Sabertooth warlocks of Antonica will have more of these pages.")
  51. AddQuestStepKill(Quest, 7, "I need to search more Sabertooth warlocks.", 3, 100, "I want to find the pages to the book.", 611, 120300)
  52. AddQuestStepCompleteAction(Quest, 7, "Step7Complete")
  53. end
  54. function Step7Complete(Quest, QuestGiver, Player)
  55. UpdateQuestStepDescription(Quest, 7, "I have searched more Sabertooth warlocks and found the page!")
  56. AddQuestStep(Quest, 8, "I want to read the page I found.", 1, 100, "I want to find the pages to the book.", 185)
  57. AddQuestStepCompleteAction(Quest, 8, "Step8Complete")
  58. end
  59. function Step8Complete(Quest, QuestGiver, Player)
  60. UpdateQuestStepDescription(Quest, 8, "I believe the Sabertooth battlers of Antonica will have more of these pages.")
  61. AddQuestStepKill(Quest, 9, "I need to search the last of the Sabertooth battlers.", 8, 100, "I want to find the pages to the book.", 611, 120184)
  62. AddQuestStepCompleteAction(Quest, 9, "Step9Complete")
  63. end
  64. function Step9Complete(Quest, QuestGiver, Player)
  65. UpdateQuestStepDescription(Quest, 9, "I have found the final battler page!")
  66. AddQuestStep(Quest, 10, "I want to read the page I found.", 1, 100, "I want to find the pages to the book.", 185)
  67. AddQuestStepCompleteAction(Quest, 10, "Step10Complete")
  68. end
  69. function Step10Complete(Quest, QuestGiver, Player)
  70. UpdateQuestStepDescription(Quest, 10, "I believe the Sabertooth tormentors of Antonica will have more of these pages.")
  71. AddQuestStepKill(Quest, 11, "I need to search Sabertooth tormentors.", 1, 100, "I want to find the pages to the book.", 611, 120380)
  72. AddQuestStepCompleteAction(Quest, 11, "Step11Complete")
  73. end
  74. function Step11Complete(Quest, QuestGiver, Player)
  75. UpdateQuestStepDescription(Quest, 11, "I have searched Sabertooth tormentors and found the page!")
  76. AddQuestStep(Quest, 12, "I want to read the page I found.", 1, 100, "I want to find the pages to the book.", 185)
  77. AddQuestStepCompleteAction(Quest, 12, "Step12Complete")
  78. end
  79. function Step12Complete(Quest, QuestGiver, Player)
  80. UpdateQuestStepDescription(Quest, 12, "I believe the Sabertooth battlers of Antonica will have more of these pages.")
  81. AddQuestStepKill(Quest, 13, "I need to search Sabertooth battlers.", 1, 100, "I want to find the pages to the book.", 611, 120184)
  82. AddQuestStepCompleteAction(Quest, 13, "Step13Complete")
  83. end
  84. function Step13Complete(Quest, QuestGiver, Player)
  85. UpdateQuestStepDescription(Quest, 13, "I have searched the Sabertooth camp guards and found the final page!")
  86. AddQuestStep(Quest, 14, "I want to read the last page of the book.", 1, 100, "I want to find the pages to the book.", 185)
  87. AddQuestStepCompleteAction(Quest, 14, "QuestComplete")
  88. end
  89. function QuestComplete(Quest, QuestGiver, Player)
  90. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  91. UpdateQuestStepDescription(Quest, 14, "I read the page I found.")
  92. UpdateQuestTaskGroupDescription(Quest, 1, "I've found all the missing pages.")
  93. UpdateQuestDescription(Quest, "I've gathered many scattered pages of Ignatia Cellus' book. I wonder whether any of her descendants also wrote any histories? I shall keep my eyes open. Perhaps, someday, I'll find other tomes such as this throughout Norrath.")
  94. GiveQuestReward(Quest, Player)
  95. end
  96. function Reload(Quest, QuestGiver, Player, Step)
  97. if Step == 1 then
  98. Step1Complete(Quest, QuestGiver, Player)
  99. elseif Step == 2 then
  100. Step2Complete(Quest, QuestGiver, Player)
  101. elseif Step == 3 then
  102. Step3Complete(Quest, QuestGiver, Player)
  103. elseif Step == 4 then
  104. Step4Complete(Quest, QuestGiver, Player)
  105. elseif Step == 5 then
  106. Step5Complete(Quest, QuestGiver, Player)
  107. elseif Step == 6 then
  108. Step6Complete(Quest, QuestGiver, Player)
  109. elseif Step == 7 then
  110. Step7Complete(Quest, QuestGiver, Player)
  111. elseif Step == 8 then
  112. Step8Complete(Quest, QuestGiver, Player)
  113. elseif Step == 9 then
  114. Step9Complete(Quest, QuestGiver, Player)
  115. elseif Step == 10 then
  116. Step10Complete(Quest, QuestGiver, Player)
  117. elseif Step == 11 then
  118. Step11Complete(Quest, QuestGiver, Player)
  119. elseif Step == 12 then
  120. Step12Complete(Quest, QuestGiver, Player)
  121. elseif Step == 13 then
  122. Step13Complete(Quest, QuestGiver, Player)
  123. elseif Step == 14 then
  124. QuestComplete(Quest, QuestGiver, Player)
  125. end
  126. end