qeynos_to_freeport__exile.lua 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. --[[
  2. Script Name : Quests/Hallmark/qeynos_to_freeport__exile.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.09.28 11:09:02
  5. Script Purpose :
  6. Zone : Hallmark
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "Speak with Yuri in Antonica... he may have information to aid you.", 1, "After my brief encounter with the Jailer knocking me out, I awoke to find myself in Antonica.", 11, 120418)
  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've spoken with Yuri.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I've spoken with Yuri. His recommendation for me was to find a man named Matthias Siegemaker in the Commonlands.")
  27. AddQuestStepChat(Quest, 2, "I need to find Matthias Siegemaker in the Commonlands.", 1, "Yuri instructed me to flee to the Commonlands and seek out Matthias. It seems he can offer me a new home. I am told he can be found slaughtering the "cutthroats". If I have any hope of finding a new home, it will be with him.", 11,331144)
  28. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  29. end
  30. function Step2Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I have found Matthias Siegemaker")
  32. UpdateQuestTaskGroupDescription(Quest, 2, "I have found Matthias Siegemaker, but I was turned away.")
  33. AddQuestStepKill(Quest, 3, "Feed your hatred by annihilating all orcs you encounter in the Commonlands.", 500, 100, "Matthias refuses to speak with me again until I truly know what true vengeance and hatred means. Until that time, I will suffer endlessly in this gods-forsaken world. Meanwhile, I will slake my thirst for vengeance with the blood of those who slight me. I should check back with him regularly as I learn from my experiences.", 2488, 1)
  34. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  35. end
  36. function Step3Complete(Quest, QuestGiver, Player)
  37. UpdateQuestStepDescription(Quest, 3, "I have sated my thirst for vengeance for the moment.")
  38. AddQuestStepKill(Quest, 4, "Seek vengeance on Dinas Drefelin in the Commonlands.", 1, 100, "Matthias refuses to speak with me again until I truly know what true vengeance and hatred means. Until that time, I will suffer endlessly in this gods-forsaken world. Meanwhile, I will slake my thirst for vengeance with the blood of those who slight me. I should check back with him regularly as I learn from my experiences.", 611, 1)
  39. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  40. end
  41. function Step4Complete(Quest, QuestGiver, Player)
  42. UpdateQuestStepDescription(Quest, 4, "I have turned the knife in Dinas' side.")
  43. AddQuestStepKill(Quest, 5, "Destroy Garreg Stonecrusher, an orc that has been sighted in the Wailing Caves.", 1, 100, "Matthias refuses to speak with me again until I truly know what true vengeance and hatred means. Until that time, I will suffer endlessly in this gods-forsaken world. Meanwhile, I will slake my thirst for vengeance with the blood of those who slight me. I should check back with him regularly as I learn from my experiences.", 611, 1)
  44. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  45. end
  46. function Step5Complete(Quest, QuestGiver, Player)
  47. UpdateQuestStepDescription(Quest, 5, "Garreg has been brought low.")
  48. AddQuestStepKill(Quest, 6, "Remove Dolfor Mochdre from the world of the living. Seek him out in the Commonlands.", 1, 100, "Matthias refuses to speak with me again until I truly know what true vengeance and hatred means. Until that time, I will suffer endlessly in this gods-forsaken world. Meanwhile, I will slake my thirst for vengeance with the blood of those who slight me. I should check back with him regularly as I learn from my experiences.", 611,1)
  49. AddQuestStepCompleteAction(Quest, 6, "Step6Complete")
  50. end
  51. function Step6Complete(Quest, QuestGiver, Player)
  52. UpdateQuestStepDescription(Quest, 6, "Dolfor Mochdre has been removed.")
  53. AddQuestStepKill(Quest, 7, "Find Glan Mostyn in the Commonlands and tear the breath from his lungs.", 1, 100, "Matthias refuses to speak with me again until I truly know what true vengeance and hatred means. Until that time, I will suffer endlessly in this gods-forsaken world. Meanwhile, I will slake my thirst for vengeance with the blood of those who slight me. I should check back with him regularly as I learn from my experiences.", 611, 1)
  54. AddQuestStepCompleteAction(Quest, 7, "Step7Complete")
  55. end
  56. function Step7Complete(Quest, QuestGiver, Player)
  57. UpdateQuestStepDescription(Quest, 7, "Glan Mostyn breathes no longer.")
  58. AddQuestStepKill(Quest, 8, "Grug Geifr's offensive presence in the Commonlands can be tolerated no longer.", 1, 100, "Matthias refuses to speak with me again until I truly know what true vengeance and hatred means. Until that time, I will suffer endlessly in this gods-forsaken world. Meanwhile, I will slake my thirst for vengeance with the blood of those who slight me. I should check back with him regularly as I learn from my experiences.", 611, 1)
  59. AddQuestStepCompleteAction(Quest, 8, "Step8Complete")
  60. end
  61. function Step8Complete(Quest, QuestGiver, Player)
  62. UpdateQuestStepDescription(Quest, 8, "You have removed Grug Geifr from the Commonlands.")
  63. UpdateQuestTaskGroupDescription(Quest, 3, "I have spent a long time wandering the world and have learned to hate unlike no other.")
  64. AddQuestStepChat(Quest, 9, "Return to Matthias Siegemaker in the Commonlands.", 1, "Every creature that died by my hands wore the face of those who betrayed me. I now know that vengeance can never be satisifed. In turn, I will always have something to look forward to. It is time I speak with Matthias again.", 11, 331144)
  65. AddQuestStepCompleteAction(Quest, 9, "Step9Complete")
  66. end
  67. function Step9Complete(Quest, QuestGiver, Player)
  68. UpdateQuestStepDescription(Quest, 9, "I have spoken with Matthias.")
  69. UpdateQuestTaskGroupDescription(Quest, 4, "I have spoken with Matthias and shown him my new understanding.")
  70. AddQuestStepChat(Quest, 10, "Stop the message runner in the Commonlands.", 1, "I must kill the Message Runner and take his codes.", 11, 1)
  71. AddQuestStepCompleteAction(Quest, 10, "Step10Complete")
  72. end
  73. function Step10Complete(Quest, QuestGiver, Player)
  74. UpdateQuestStepDescription(Quest, 10, "I've killed the message runner.")
  75. UpdateQuestTaskGroupDescription(Quest, 5, "I slew the message runner and took what I needed.")
  76. AddQuestStepKill(Quest, 11, "Kill Libertius in the Commonlands, use the codes from the messenger to gain his trust.", 1, 100, "Kill Libertius, but do not alert him to the fact that you have been sent to kill him... at least not until he's already dead.", 11, 1)
  77. AddQuestStepCompleteAction(Quest, 11, "Step11Complete")
  78. end
  79. function Step11Complete(Quest, QuestGiver, Player)
  80. UpdateQuestStepDescription(Quest, 11, "I have slain Libertius.")
  81. UpdateQuestTaskGroupDescription(Quest, 6, "I poisoned Libertius and prevented him from smuggling more to Qeynos.")
  82. AddQuestStepChat(Quest, 12, "Return to Matthias Siegemaker in the Commonlands.", 1, "I have done as Matthias asked and now I must return to speak with him again.", 11, 331144)
  83. AddQuestStepCompleteAction(Quest, 12, "Step12Complete")
  84. end
  85. function Step12Complete(Quest, QuestGiver, Player)
  86. UpdateQuestStepDescription(Quest, 12, "I have spoken with Matthias.")
  87. UpdateQuestTaskGroupDescription(Quest, 7, "I have spoken with Matthias once more and he has given me further enlightenment.")
  88. AddQuestStepChat(Quest, 13, "Take the Aethus Kasyu's engagement ring.", 1, "Matthias has bid me take items from people who... no longer have a use for them... the first on the list is a ring from Aethus Kasyu.", 595, 1)
  89. AddQuestStepCompleteAction(Quest, 13, "Step13Complete")
  90. end
  91. function Step13Complete(Quest, QuestGiver, Player)
  92. UpdateQuestStepDescription(Quest, 13, "I've taken the ring from Aethus.")
  93. UpdateQuestTaskGroupDescription(Quest, 8, "I have taken the items Matthias wanted.")
  94. AddQuestStepChat(Quest, 14, "Seek out Twirlwhizzer and take the medal from her.", 1, "Now that the ring is dealt with, I'm to take the medal of service from a gnome named Twirlwhizzer.", 1303, 1)
  95. AddQuestStepCompleteAction(Quest, 14, "Step14Complete")
  96. end
  97. function Step14Complete(Quest, QuestGiver, Player)
  98. UpdateQuestStepDescription(Quest, 14, "I've taken the medal from Grandma Twirlwhizzer.")
  99. UpdateQuestTaskGroupDescription(Quest, 9, "The medal is mine!")
  100. AddQuestStepChat(Quest, 15, "Seek out Stalker Granis and take his lucky shard.", 1, "Stalker Granis has a nice shard that he keeps as a childhood reminder. Take it from him.", 183, 1)
  101. AddQuestStepCompleteAction(Quest, 15, "Step15Complete")
  102. end
  103. function Step15Complete(Quest, QuestGiver, Player)
  104. UpdateQuestStepDescription(Quest, 15, "I've taken the last thing Granis holds dear.")
  105. UpdateQuestTaskGroupDescription(Quest, 10, "I've taken the last thing Granis has to remember his childhood by.")
  106. AddQuestStepChat(Quest, 16, "Return to Matthias Siegemaker in the Commonlands.", 1, "I have done as Matthias asked and now I must return to speak with him again.", 11, 331144)
  107. AddQuestStepCompleteAction(Quest, 16, "Step16Complete")
  108. end
  109. function Step16Complete(Quest, QuestGiver, Player)
  110. UpdateQuestStepDescription(Quest, 16, "I have spoken with Matthias.")
  111. UpdateQuestTaskGroupDescription(Quest, 11, "I have yet another task laid before me now that I have spoken with Matthias.")
  112. AddQuestStepKill(Quest, 17, "Kill Gesarius before he can escape to Qeynos.", 1, 100, "Matthias is pleased with my progress... and has asked me to make certain War Duke Gesarius doesn't escape.", 11, 1)
  113. AddQuestStepCompleteAction(Quest, 17, "Step17Complete")
  114. end
  115. function Step17Complete(Quest, QuestGiver, Player)
  116. UpdateQuestStepDescription(Quest, 17, "I've killed the War Duke and prevented his escape.")
  117. UpdateQuestTaskGroupDescription(Quest, 12, "I'm positive that Gesarius won't be escaping anytime soon...")
  118. AddQuestStepChat(Quest, 18, "Return to Matthias Siegemaker in the Commonlands.", 1, "I have done as Matthias asked and now I must return to speak with him again.", 11, 331144)
  119. AddQuestStepCompleteAction(Quest, 18, "QuestComplete")
  120. end
  121. function QuestComplete(Quest, QuestGiver, Player)
  122. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  123. UpdateQuestStepDescription(Quest, 18, "I have spoken with Matthias.")
  124. UpdateQuestTaskGroupDescription(Quest, 13, "I have earned my place within Freeport now.")
  125. UpdateQuestDescription(Quest, "During my time in exile, I spent day and night cultivating my vengeance towards those who spurned me and betrayed my trust. I can now see my own soul, and find it to be black and twisted. This comforts me. ")
  126. GiveQuestReward(Quest, Player)
  127. end
  128. function Reload(Quest, QuestGiver, Player, Step)
  129. if Step == 1 then
  130. Step1Complete(Quest, QuestGiver, Player)
  131. elseif Step == 2 then
  132. Step2Complete(Quest, QuestGiver, Player)
  133. elseif Step == 3 then
  134. Step3Complete(Quest, QuestGiver, Player)
  135. elseif Step == 4 then
  136. Step4Complete(Quest, QuestGiver, Player)
  137. elseif Step == 5 then
  138. Step5Complete(Quest, QuestGiver, Player)
  139. elseif Step == 6 then
  140. Step6Complete(Quest, QuestGiver, Player)
  141. elseif Step == 7 then
  142. Step7Complete(Quest, QuestGiver, Player)
  143. elseif Step == 8 then
  144. Step8Complete(Quest, QuestGiver, Player)
  145. elseif Step == 9 then
  146. Step9Complete(Quest, QuestGiver, Player)
  147. elseif Step == 10 then
  148. Step10Complete(Quest, QuestGiver, Player)
  149. elseif Step == 11 then
  150. Step11Complete(Quest, QuestGiver, Player)
  151. elseif Step == 12 then
  152. Step12Complete(Quest, QuestGiver, Player)
  153. elseif Step == 13 then
  154. Step13Complete(Quest, QuestGiver, Player)
  155. elseif Step == 14 then
  156. Step14Complete(Quest, QuestGiver, Player)
  157. elseif Step == 15 then
  158. Step15Complete(Quest, QuestGiver, Player)
  159. elseif Step == 16 then
  160. Step16Complete(Quest, QuestGiver, Player)
  161. elseif Step == 17 then
  162. Step17Complete(Quest, QuestGiver, Player)
  163. elseif Step == 18 then
  164. QuestComplete(Quest, QuestGiver, Player)
  165. end
  166. end