inside_the_edgewater_drains.lua 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. --[[
  2. Script Name : Quests/EdgewaterDrains/inside_the_edgewater_drains.lua
  3. Script Purpose : Handles the quest, "Inside the Edgewater Drains"
  4. Script Author : premierio015
  5. Script Date : 06.07.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Access Quests
  8. Quest Giver : Bendik Jonkers(1560021)
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStep(Quest, 1, "I need to obtain five different components in the Edgewater Drains and bring them to Bendik Jonkers.", 1, 100, "I need to obtain five different components in the Edgewater Drains and bring them to Bendik Jonkers.", 1073)
  14. AddQuestStep(Quest, 2, "I need to obtain five different components in the Edgewater Drains and bring them to Bendik Jonkers.", 1, 100, "I need to obtain five different components in the Edgewater Drains and bring them to Bendik Jonkers.", 781)
  15. AddQuestStep(Quest, 3, "I need to obtain five different components in the Edgewater Drains and bring them to Bendik Jonkers.", 1, 100, "I need to obtain five different components in the Edgewater Drains and bring them to Bendik Jonkers.", 736)
  16. AddQuestStep(Quest, 4, "I need to obtain five different components in the Edgewater Drains and bring them to Bendik Jonkers.", 1, 100, "I need to obtain five different components in the Edgewater Drains and bring them to Bendik Jonkers.", 985)
  17. AddQuestStep(Quest, 5, "I need to obtain five different components in the Edgewater Drains and bring them to Bendik Jonkers.", 1, 100, "I need to obtain five different components in the Edgewater Drains and bring them to Bendik Jonkers.", 1041)
  18. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  19. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  20. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  21. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  22. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  23. end
  24. function Accepted(Quest, QuestGiver, Player)
  25. FaceTarget(QuestGiver, Player)
  26. local conversation = CreateConversation()
  27. PlayFlavor(QuestGiver, "voiceover/english/bendik_jonkers/fprt_sewer03/bendik_jonkers007.mp3", "", "", 1715120582, 1582963526, Player)
  28. AddConversationOption(conversation, "Certainly. I'll get right on it.", "DLG1")
  29. AddConversationOption(conversation, "No, I can't")
  30. StartConversation(conversation, QuestGiver, Player, "Now, now, I can't be telling you my secrets. Can you help me out?")
  31. end
  32. function DLG1(Quest, QuestGiver, Player)
  33. FaceTarget(QuestGiver, Player)
  34. local conversation = CreateConversation()
  35. PlayFlavor(QuestGiver, "voiceover/english/bendik_jonkers/fprt_sewer03/bendik_jonkers008.mp3", "", "scheme", 1830925554, 1902649976, Player)
  36. AddConversationOption(conversation, "I'll be back.")
  37. StartConversation(conversation, QuestGiver, Player, "Wonderful! My sources say these items are most likely still in the Edgewater Drains, submerged, or even caught on other debris. There's a reward in this for you, if you bring all five items to me.")
  38. end
  39. function Declined(Quest, QuestGiver, Player)
  40. -- Add dialog here for when the quest is declined
  41. end
  42. function Deleted(Quest, QuestGiver, Player)
  43. -- Remove any quest specific items here when the quest is deleted
  44. end
  45. function Step1Complete(Quest, QuestGiver, Player)
  46. UpdateQuestStepDescription(Quest, 1, "I found the ancient sieve.")
  47. CheckProgress(Quest, QuestGiver, Player)
  48. end
  49. function Step2Complete(Quest, QuestGiver, Player)
  50. UpdateQuestStepDescription(Quest, 2, "I found some copper wire.")
  51. CheckProgress(Quest, QuestGiver, Player)
  52. end
  53. function Step3Complete(Quest, QuestGiver, Player)
  54. UpdateQuestStepDescription(Quest, 3, "I found a rusted iron bracket.")
  55. CheckProgress(Quest, QuestGiver, Player)
  56. end
  57. function Step4Complete(Quest, QuestGiver, Player)
  58. UpdateQuestStepDescription(Quest, 4, "I found a length of corroded chain.")
  59. CheckProgress(Quest, QuestGiver, Player)
  60. end
  61. function Step5Complete(Quest, QuestGiver, Player)
  62. UpdateQuestStepDescription(Quest, 5, "I found a set of nesting cogwheels.")
  63. CheckProgress(Quest, QuestGiver, Player)
  64. end
  65. function CheckProgress(Quest, QuestGiver, Player)
  66. if QuestStepIsComplete(Player, 5303, 1) and QuestStepIsComplete(Player, 5303, 2) and QuestStepIsComplete(Player, 5303, 3) and QuestStepIsComplete(Player, 5303, 4) and QuestStepIsComplete(Player, 5303, 5) then
  67. UpdateQuestTaskGroupDescription(Quest, 1, "I've located the various components Bendik Jonkers requested. Now to claim my reward.")
  68. AddQuestStepChat(Quest, 6, "I need to return to Bendik Jonkers with the five parts he needs.", 1, "Bendik Jonkers will want these components.", 11, 1560021)
  69. AddQuestStepCompleteAction(Quest, 6, "Step6Complete")
  70. end
  71. end
  72. function Step6Complete(Quest, QuestGiver, Player)
  73. UpdateQuestStepDescription(Quest, 6, "I have returned the five items to Bendik Jonkers.")
  74. UpdateQuestTaskGroupDescription(Quest, 2, "I must obtaine a key to the Murkwater's hideout to get back my reward.")
  75. AddQuestStepKill(Quest, 7, "I need to obtain a key to the Murkwater hideout from one of the Murkwater henchmen in the Edgewater Drains.", 1, 10, "I must find a key to the Murkwater's hideout.", 1009, 1560004, 1560012)
  76. AddQuestStepCompleteAction(Quest, 7, "Step7Complete")
  77. end
  78. function Step7Complete(Quest, QuestGiver, Player)
  79. UpdateQuestStepDescription(Quest, 7, "I have obtained a key to the Murkwater hideout. Now I must confront Madame Kisa.")
  80. UpdateQuestTaskGroupDescription(Quest, 3, "I must slay Madame Kisa, leader of the Murkwater gang.")
  81. AddQuestStepKill(Quest, 8, "I will use my key to enter the Murkwater hideout in the Edgewater Drains and confront the Murkwater leader, Madame Kisa.", 1, 100, "I will use my key to enter the Murkwater hideout in the Edgewater Drains and confront the Murkwater leader, Madame Kisa.", 11, 4750003)
  82. AddQuestStepCompleteAction(Quest, 8, "QuestComplete")
  83. end
  84. function QuestComplete(Quest, QuestGiver, Player)
  85. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  86. UpdateQuestStepDescription(Quest, 8, "I have slain Madame Kisa, leader of the Murkwater gang.")
  87. UpdateQuestTaskGroupDescription(Quest, 4, "I have slain Madame Kisa, leader of the Murkwater gang.")
  88. UpdateQuestDescription(Quest, "After finding all five of the discarded parts for Bendik Jonkers, I learned that the Murkwater henchmen stole my reward. After slaying several Murkwater Henchmen, I obtained a key to their hideout, where I confronted and brought down their leader, Madame Kisa.")
  89. GiveQuestReward(Quest, Player)
  90. end
  91. function Reload(Quest, QuestGiver, Player, Step)
  92. if Step == 1 then
  93. Step1Complete(Quest, QuestGiver, Player)
  94. elseif Step == 2 then
  95. Step2Complete(Quest, QuestGiver, Player)
  96. elseif Step == 3 then
  97. Step3Complete(Quest, QuestGiver, Player)
  98. elseif Step == 4 then
  99. Step4Complete(Quest, QuestGiver, Player)
  100. elseif Step == 5 then
  101. Step5Complete(Quest, QuestGiver, Player)
  102. elseif Step == 6 then
  103. Step6Complete(Quest, QuestGiver, Player)
  104. elseif Step == 7 then
  105. Step7Complete(Quest, QuestGiver, Player)
  106. elseif Step == 8 then
  107. QuestComplete(Quest, QuestGiver, Player)
  108. end
  109. end