9
3

ZarvonnsLegacy.lua 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. --[[
  2. Script Name : Quests/Commonlands/ZarvonnsLegacy.lua
  3. Script Purpose : Handles the quest, "Zarvonn's Legacy"
  4. Script Author : premierio015
  5. Script Date : 23.02.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Commonlands
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to speak with the old nomad, Gierasa", 1, "Impellia Abettus, an ill woman at the Crossroads has suggested that the nomads of the Commonlands may know more about Zarvonn.", 11, 330139)
  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 spoken with Gierasa Kulnovich")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "The nomad mother has directed me to Zarvonn's old tower. She claims I will find out more there.")
  28. AddQuestStepChat(Quest, 2, "I need to speak with the woman in Zarvonn's tower.", 1, "I need to find a woman in Zarvonn's old tower in the northern part of the Commonlands.", 11, 330115)
  29. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  30. end
  31. function Step2Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 2, "I've spoken with Assistant D'Verin.")
  33. UpdateQuestTaskGroupDescription(Quest, 2, "D'Verin, assistant to the necromancer living in Zarvonn's tower, has agreed to involve me in her research.")
  34. AddQuestStepKill(Quest, 3, "I need to gather the skulls from the orc skeletons that appear to be leading the other undead.", 4, 100, "I need to seek the ruins of the last siege attempt near Freeport. Within the haunted site, I need to look for some undead that are more powerful than the others. Once I have killed them, I need to gather four skulls for D'Verin.", 91, 330228)
  35. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  36. end
  37. function Step3Complete(Quest, QuestGiver, Player)
  38. UpdateQuestStepDescription(Quest, 3, "I have collected four skulls from the fallen orc lieutenants.")
  39. UpdateQuestTaskGroupDescription(Quest, 3, "I've collected the skulls for D'Verin.")
  40. AddQuestStepChat(Quest, 4, "I need to speak with D'Verin", 1, "I need to bring these skulls back to D'Verin in the Mad Mage's Tower", 11, 330115)
  41. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  42. end
  43. function Step4Complete(Quest, QuestGiver, Player)
  44. UpdateQuestStepDescription(Quest, 4, "I've spoken with D'Verin")
  45. UpdateQuestTaskGroupDescription(Quest, 4, "I've given D'Verin the skulls of the greater undead that she needed for her research")
  46. AddQuestStepChat(Quest, 5, "I need to speak with D'Verin's Mistress", 1, "D'Verin has offered to let me speak with her Mistress. Apparently she'll speak with me now.", 11, 330114)
  47. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  48. end
  49. function Step5Complete(Quest, QuestGiver, Player)
  50. UpdateQuestStepDescription(Quest, 5, "I've spoken with Overseer Melicinn")
  51. UpdateQuestTaskGroupDescription(Quest, 5, "Overseer Melicinn has agreed to work with me to find where Zarvonn disappeared to.")
  52. AddQuestStepKill(Quest, 6, "I must find the lost soul and recover ectoplasmic goo from its remains", 1, 100, "I need to seek a lost soul in the graveyard. Melicinn claims this ghost is one of the oldest within the commonlands. I only hope that it has not grown stronger over the years.", 168, 330236)
  53. AddQuestStepCompleteAction(Quest, 6, "Step6Complete")
  54. end
  55. function Step6Complete(Quest, QuestGiver, Player)
  56. UpdateQuestStepDescription(Quest, 6, "I have recovered the ectoplasmic goo")
  57. UpdateQuestTaskGroupDescription(Quest, 6, "I've collected the ectoplasmic residue of the ancient lost soul in the old graveyard.")
  58. AddQuestStepChat(Quest, 7, "I need to speak with Melicinn", 1, "I need to bring this residue to Melicinn in Zarvonn's Tower.", 11, 330114)
  59. AddQuestStepCompleteAction(Quest, 7, "QuestComplete")
  60. end
  61. function QuestComplete(Quest, QuestGiver, Player)
  62. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  63. UpdateQuestStepDescription(Quest, 7, "I've spoken with Melicinn")
  64. UpdateQuestTaskGroupDescription(Quest, 7, "I've given the magic-laced residue to Melicinn, and she has completed her ritual.")
  65. UpdateQuestDescription(Quest, "Though it has taken a while, my determination to locate the whereabouts of Zarvonn the Mad Mage has paid off. I have a mark that will allow me to journey to where Zarvonn may have fled centuries ago. All I need to do is to look closely into the stone at the top of his former tower.")
  66. GiveQuestReward(Quest, Player)
  67. end
  68. function Reload(Quest, QuestGiver, Player, Step)
  69. if Step == 1 then
  70. Step1Complete(Quest, QuestGiver, Player)
  71. elseif Step == 2 then
  72. Step2Complete(Quest, QuestGiver, Player)
  73. elseif Step == 3 then
  74. Step3Complete(Quest, QuestGiver, Player)
  75. elseif Step == 4 then
  76. Step4Complete(Quest, QuestGiver, Player)
  77. elseif Step == 5 then
  78. Step5Complete(Quest, QuestGiver, Player)
  79. elseif Step == 6 then
  80. Step6Complete(Quest, QuestGiver, Player)
  81. elseif Step == 7 then
  82. QuestComplete(Quest, QuestGiver, Player)
  83. end
  84. end