a_journey_outside_the_city.lua 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : a_journey_outside_the_city.lua
  3. Script Purpose : Handles the quest, "A Journey Outside the City"
  4. Script Author : torsten
  5. Script Date : 16.07.2022
  6. Script Notes :
  7. Zone : The Ruins
  8. Quest Giver : Captain Arellius
  9. Preceded by : File a Final Report
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to find Mooshga outside the gates to the City of Freeport in the Commonlands.", 1, "Captain Arellius in the Ruins has advised that I seek out adventures in the Commonlands. I should leave the gates of the City of Freeport and seek loyal subjects of the Overlord.", 11, 330015)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I found Mooshga and spoke to her.")
  18. AddQuestStepChat(Quest, 2, "I should speak to Gerun Pontian outside the gates of the City of Freeport.", 1, "Captain Arellius in the Ruins has advised that I seek out adventures in the Commonlands. I should leave the gates of the City of Freeport and seek loyal subjects of the Overlord.", 11, 330014)
  19. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  20. end
  21. function QuestComplete(Quest, QuestGiver, Player)
  22. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  23. UpdateQuestStepDescription(Quest, 2, "I have spoken to Gerun Pontian.")
  24. UpdateQuestTaskGroupDescription(Quest, 1, "I ventured outside the gates of the City of Freeport and spoke to Mooshga and Gerun Pontian.")
  25. UpdateQuestDescription(Quest, "I traveled outside the city gates and found Mooshga, an ogre who needs my help, as well as Gerun Pontian of the Freeport Militia. After completing some tasks for them, I should remember to journey back to the Ruins and finish my work there.")
  26. GiveQuestReward(Quest, Player)
  27. end
  28. function Accepted(Quest, QuestGiver, Player)
  29. -- Add dialog here for when the quest is accepted
  30. end
  31. function Declined(Quest, QuestGiver, Player)
  32. -- Add dialog here for when the quest is declined
  33. end
  34. function Deleted(Quest, QuestGiver, Player)
  35. -- Remove any quest specific items here when the quest is deleted
  36. end
  37. function Reload(Quest, QuestGiver, Player, Step)
  38. if Step == 1 then
  39. Step1Complete(Quest, QuestGiver, Player)
  40. elseif Step == 2 then
  41. QuestComplete(Quest, QuestGiver, Player)
  42. end
  43. end