the_tunarian_plot.lua 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. --[[
  2. Script Name : Quests/OutpostOverlord/the_tunarian_plot.lua
  3. Script Purpose : Handles the quest, "The Tunarian Plot"
  4. Script Author : premierio015
  5. Script Date : 19.05.2020
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Outpost of the Overlord
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "Search some Tunarian protectors for more of these parchment scraps.", 3, 100, "I need to find the rest of this Tunarian parchment so that I can solve its mystery.", 2474, 2780006)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. -- Add dialog here for when the quest is accepted
  18. end
  19. function Declined(Quest, QuestGiver, Player)
  20. -- Add dialog here for when the quest is declined
  21. end
  22. function Deleted(Quest, QuestGiver, Player)
  23. -- Remove any quest specific items here when the quest is deleted
  24. end
  25. function Step1Complete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I've searched the Tunarian protectors.")
  27. AddQuestStep(Quest, 2, "I must examine the parchment scraps.", 1, 100, "I need to find the rest of this Tunarian parchment so that I can solve its mystery.", 11)
  28. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  29. end
  30. function Step2Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I've examined the parchment.")
  32. AddQuestStepKill(Quest, 3, "Search the Tunarian bearmasters for more of these parchment scraps.", 1, 100, "I need to find the rest of this Tunarian parchment so that I can solve its mystery.", 2475, 2780082)
  33. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  34. end
  35. function Step3Complete(Quest, QuestGiver, Player)
  36. UpdateQuestStepDescription(Quest, 3, "I've searched the Tunarian bearmasters.")
  37. AddQuestStep(Quest, 4, "I must examine the parchment scraps.", 1, 100, "I need to find the rest of this Tunarian parchment so that I can solve its mystery.", 11)
  38. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  39. end
  40. function Step4Complete(Quest, QuestGiver, Player)
  41. UpdateQuestStepDescription(Quest, 4, "I've examined the parchment.")
  42. AddQuestStepChat(Quest, 5, "Charles Arker knows more about this than he's led me to believe. I'll see what he has to say about things now.", 1, "I need to find the rest of this Tunarian parchment so that I can solve its mystery.", 11, 2780075)
  43. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  44. end
  45. function Step5Complete(Quest, QuestGiver, Player)
  46. UpdateQuestStepDescription(Quest, 5, "I've spoken with Charles Arker.")
  47. UpdateQuestTaskGroupDescription(Quest, 1, "I've gathered most of the parchment pieces together.")
  48. AddQuestStepChat(Quest, 6, "Meet Charles Arker at the Nook, east of the center of the Wilderwood.", 1, "Charles Arker said he will explain everything to me, but away from the encampment where we might be overheard.", 11, 2780075)
  49. AddQuestStepCompleteAction(Quest, 6, "Step6Complete")
  50. end
  51. function Step6Complete(Quest, QuestGiver, Player)
  52. UpdateQuestStepDescription(Quest, 6, "I spoke with Charles Arker.")
  53. UpdateQuestTaskGroupDescription(Quest, 2, "I've spoken with Charles Arker and learned his dark secret.")
  54. AddQuestStep(Quest, 7, "I'll get rid of the parchment by burning it in the firepit at Whizratchet's Bank.", 1, 100, "Charles Arker once again needs me to take care of something for him.", 2353)
  55. AddQuestStepCompleteAction(Quest, 7, "QuestComplete")
  56. end
  57. function QuestComplete(Quest, QuestGiver, Player)
  58. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  59. UpdateQuestStepDescription(Quest, 7, "I've destroyed the evidence of Charles Arker's indiscrection.")
  60. UpdateQuestTaskGroupDescription(Quest, 3, "I've disposed of the last bits of that note.")
  61. UpdateQuestDescription(Quest, "The ''Tunarian Plot'' turned out to be nothing more than Charles Arker ineptly arranging a meeting with that Tunarian wood elf, Laena. He confessed to me that he'd only been trying to get back all the pieces of this note before word got back to his family. I helped cover his tracks by destroying all the parchment pieces we gathered.")
  62. GiveQuestReward(Quest, Player)
  63. end
  64. function Reload(Quest, QuestGiver, Player, Step)
  65. if Step == 1 then
  66. Step1Complete(Quest, QuestGiver, Player)
  67. elseif Step == 2 then
  68. Step2Complete(Quest, QuestGiver, Player)
  69. elseif Step == 3 then
  70. Step3Complete(Quest, QuestGiver, Player)
  71. elseif Step == 4 then
  72. Step4Complete(Quest, QuestGiver, Player)
  73. elseif Step == 5 then
  74. Step5Complete(Quest, QuestGiver, Player)
  75. elseif Step == 6 then
  76. Step6Complete(Quest, QuestGiver, Player)
  77. elseif Step == 7 then
  78. QuestComplete(Quest, QuestGiver, Player)
  79. end
  80. end