9
3

ContinuingAssistance.lua 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : Quests/Darklight/ContinuingAssistance.lua
  3. Script Purpose : Handles the quest, "Continuing Assistance"
  4. Script Author : Cynnar
  5. Script Date : 8/30/2015
  6. Script Notes :
  7. Zone : Darklight Wood
  8. Quest Giver : Laexyra Y'Barriath
  9. Preceded by : Condemned
  10. Followed by : Alakzaer the Missing, Potential Threats
  11. --]]
  12. local ContinuingAssistance = 154
  13. function Init(Quest)
  14. AddQuestStepChat(Quest, 1, "Deliver a letter to Malyl N'Vazin", 1, "Laexyra Y'Barriath wants me to deliver correspondences to both Malyl N'Vazin and Vornlin B'Vytyl at Wanderlust Fair. I can get there by following the road west from T'Vatar Outpost.", 11, 341004)
  15. AddQuestStepChat(Quest, 2, "Deliver a letter to Vornlin B'Vytyl", 1, "Laexyra Y'Barriath wants me to deliver correspondences to both Malyl N'Vazin and Vornlin B'Vytyl at Wanderlust Fair. I can get there by following the road west from T'Vatar Outpost.", 11, 340145)
  16. AddQuestStepCompleteAction(Quest, 1, "Malyl")
  17. AddQuestStepCompleteAction(Quest, 2, "Vornlin")
  18. end
  19. function CheckProgress(Quest, QuestGiver, Player)
  20. if QuestStepIsComplete(Player, ContinuingAssistance, 1) and QuestStepIsComplete(Player, ContinuingAssistance, 2) then
  21. UpdateQuestTaskGroupDescription(Quest, 1, "I delivered the correspondences to both Malyl N'Vazin and Vornlin B'Vytyl at Wanderlust Fair.")
  22. QuestComplete(Quest, QuestGiver, Player)
  23. end
  24. end
  25. function QuestComplete(Quest, QuestGiver, Player)
  26. SetCompleteFlag(Quest)
  27. GiveQuestReward(Quest, Player)
  28. end
  29. function Malyl(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 1, "I have spoken with Malyl.")
  31. CheckProgress(Quest, QuestGiver, Player)
  32. end
  33. function Vornlin(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "I have spoken with Vornlin.")
  35. CheckProgress(Quest, QuestGiver, Player)
  36. end
  37. function Reload(Quest, QuestGiver, Player, Step)
  38. if QuestStepIsComplete(Player, ContinuingAssistance, 1) then
  39. Malyl(Quest, QuestGiver, Player)
  40. end
  41. if QuestStepIsComplete(Player, ContinuingAssistance, 2) then
  42. Vornlin(Quest, QuestGiver, Player)
  43. end
  44. end
  45. function Accepted(Quest, QuestGiver, Player)
  46. -- Add dialog here for when the quest is accepted
  47. end
  48. function Declined(Quest, QuestGiver, Player)
  49. -- Add dialog here for when the quest is declined
  50. end