9
3

the_fallen_retriever.lua 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. --[[
  2. Script Name : Quests/TheSerpentSewer/the_fallen_retriever.lua
  3. Script Purpose : Handles the quest, "The Fallen Retriever"
  4. Script Author : premierio015
  5. Script Date : 02.07.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Serpent Sewer
  8. Quest Giver : A Tattered Note(Item)
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "Speak to Azroth.", 1, "I should go to seek out a person in Freeport that has the name Azroth. ", 185, 1660040, 5590524)
  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 spoke to Azroth.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I found and spoke to Azroth.")
  28. AddQuestStepChat(Quest, 2, "I have to go find Qalantir.", 1, "After speaking to Alexandria Tal'Azroth, she directed me towards Qalantir", 11, 1440027, 5590255)
  29. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  30. end
  31. function Step2Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 2, "I have found Qalantir.")
  33. UpdateQuestTaskGroupDescription(Quest, 2, "I have spoken to Qalantir.")
  34. AddQuestStepKill(Quest, 3, "I must kill some diseased ratongas.", 5, 100, "I need to fill the vials for Qalantir.", 179, 1540002, 1540021, 1540022, 1540024, 1540028, 1540072, 1540073)
  35. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  36. end
  37. function Step3Complete(Quest, QuestGiver, Player)
  38. UpdateQuestStepDescription(Quest, 3, "I have killed some diseased ratongas.")
  39. UpdateQuestTaskGroupDescription(Quest, 3, "I have filled the vials for Qalantir.")
  40. AddQuestStepChat(Quest, 4, "Speak to Qalantir.", 1, "I need to deliver the vials to Qalantir.", 179, 1440027, 5590255)
  41. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  42. end
  43. function QuestComplete(Quest, QuestGiver, Player)
  44. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  45. UpdateQuestStepDescription(Quest, 4, "I spoke to Qalantir.")
  46. UpdateQuestTaskGroupDescription(Quest, 4, "I delivered the vials to Qalantir.")
  47. if HasItem(Player, 2976) then
  48. RemoveItem(Player, 2976)
  49. end
  50. UpdateQuestDescription(Quest, "I have found Alexandria Tal`Azroth and learned that her brother was the original keeper of this tattered note. I visited Qalantir to discover that Horatio was dead and then collected blood vials for the Academy of Arcane Science. I was rewarded with coin for my services.")
  51. GiveQuestReward(Quest, Player)
  52. end
  53. function Reload(Quest, QuestGiver, Player, Step)
  54. if Step == 1 then
  55. Step1Complete(Quest, QuestGiver, Player)
  56. elseif Step == 2 then
  57. Step2Complete(Quest, QuestGiver, Player)
  58. elseif Step == 3 then
  59. Step3Complete(Quest, QuestGiver, Player)
  60. elseif Step == 4 then
  61. QuestComplete(Quest, QuestGiver, Player)
  62. end
  63. end