9
3

selwyns_errands__part_vi.lua 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. --[[
  2. Script Name : selwyns_errands_-_part_vi.lua
  3. Script Purpose : Handles the quest, "Selwyn's Errands - Part VI"
  4. Script Author : QuestParser (Replace this)
  5. Script Date : 7/8/2022
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : The City of Qeynos
  8. Quest Giver : Selwyn
  9. Preceded by : Selwyn's Errands - Part V
  10. Followed by : None
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepKill(Quest, 1, "I must recover the blessed leather of Steelhoof mystics in the Thundering Steppes", 12, 100, "I'm sorry to make you travel so far out of your way but I have some things that need doing up in the Thundering Steppes again. Could you get me some of the blessed leather the Steelhoof mystics sometimes have on them? Also I need some griffawn feathers for some new quill pens. Oh, and the highland huntresses are getting a little out of hand up there, could you thin them out a little? And lastly there's Shadowdash. A griffin that I've seen a time or two while visiting relatives out near mirror lake. He's gotten a little too bold and is attacking any passerby to those rocks where he roosts near the lake, you might start there. Be careful, he's an old crafty bird, you might want some friends. - Selwyn", 754, 2490068)
  15. AddQuestStepKill(Quest, 2, "I must recover perfect griffin feathers from the griffawns in Thundering Steppes", 8, 100, "I'm sorry to make you travel so far out of your way but I have some things that need doing up in the Thundering Steppes again. Could you get me some of the blessed leather the Steelhoof mystics sometimes have on them? Also I need some griffawn feathers for some new quill pens. Oh, and the highland huntresses are getting a little out of hand up there, could you thin them out a little? And lastly there's Shadowdash. A griffin that I've seen a time or two while visiting relatives out near mirror lake. He's gotten a little too bold and is attacking any passerby to those rocks where he roosts near the lake, you might start there. Be careful, he's an old crafty bird, you might want some friends. - Selwyn", 150, 2490054)
  16. AddQuestStepKill(Quest, 3, "I must thin the numbers of highland huntresses within the Thundering Steppes.", 10, 100, "I'm sorry to make you travel so far out of your way but I have some things that need doing up in the Thundering Steppes again. Could you get me some of the blessed leather the Steelhoof mystics sometimes have on them? Also I need some griffawn feathers for some new quill pens. Oh, and the highland huntresses are getting a little out of hand up there, could you thin them out a little? And lastly there's Shadowdash. A griffin that I've seen a time or two while visiting relatives out near mirror lake. He's gotten a little too bold and is attacking any passerby to those rocks where he roosts near the lake, you might start there. Be careful, he's an old crafty bird, you might want some friends. - Selwyn", 611, 2490043)
  17. AddQuestStepKill(Quest, 4, "I need to kill an old griffin named Shadowdash. I should look around the rocks where he normally roosts near Mirror Lake in the Thundering Steppes.", 1, 100, "I'm sorry to make you travel so far out of your way but I have some things that need doing up in the Thundering Steppes again. Could you get me some of the blessed leather the Steelhoof mystics sometimes have on them? Also I need some griffawn feathers for some new quill pens. Oh, and the highland huntresses are getting a little out of hand up there, could you thin them out a little? And lastly there's Shadowdash. A griffin that I've seen a time or two while visiting relatives out near mirror lake. He's gotten a little too bold and is attacking any passerby to those rocks where he roosts near the lake, you might start there. Be careful, he's an old crafty bird, you might want some friends. - Selwyn", 11, 2490841)
  18. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  19. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  20. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  21. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  22. UpdateQuestZone(Quest,"Thundering Steppes")
  23. end
  24. function Accepted(Quest, QuestGiver, Player)
  25. FaceTarget(QuestGiver, Player)
  26. Dialog.New(QuestGiver, Player)
  27. Dialog.AddDialog( "I'll be a little sad to see you go, I have to say, when you're done. But younger adventurers such as yourself don't need to spend time doing errands for old druids like me. Hrm... where did I put that list? Oh yes, here we are. I'm almost finished with that last piece. And I added a few of my own touches to it. See you soon. Ta ta!")
  28. -- Dialog.AddVoiceover("voiceover/english/selwyn_oakheart/qey_south/quests/selwyn_oakheart/selwyn001.mp3", 390832885, 49061382)
  29. PlayFlavor(QuestGiver,"","","sad", 0, 0, Player)
  30. Dialog.AddOption( "Have no doubts the materials will be perfect.")
  31. Dialog.Start()
  32. end
  33. function Declined(Quest, QuestGiver, Player)
  34. -- Add dialog here for when the quest is declined
  35. end
  36. function Deleted(Quest, QuestGiver, Player)
  37. -- Remove any quest specific items here when the quest is deleted
  38. end
  39. function Step1Complete(Quest, QuestGiver, Player)
  40. UpdateQuestStepDescription(Quest, 1, "I have recovered the blessed leather of Steelhoof mystics in the Thundering Steppes")
  41. CheckProgress(Quest, QuestGiver, Player)
  42. end
  43. function Step2Complete(Quest, QuestGiver, Player)
  44. UpdateQuestStepDescription(Quest, 2, "I have recovered perfect griffin feathers from the griffawns in Thundering Steppes")
  45. CheckProgress(Quest, QuestGiver, Player)
  46. end
  47. function Step3Complete(Quest, QuestGiver, Player)
  48. UpdateQuestStepDescription(Quest, 3, "I have thined the numbers of highland huntresses within the Thundering Steppes.")
  49. CheckProgress(Quest, QuestGiver, Player)
  50. end
  51. function Step4Complete(Quest, QuestGiver, Player)
  52. UpdateQuestStepDescription(Quest, 4, "I have found and killed Shadowdash.")
  53. CheckProgress(Quest, QuestGiver, Player)
  54. end
  55. function CheckProgress(Quest, QuestGiver, Player)
  56. if QuestStepIsComplete(Player, 5611, 1) and QuestStepIsComplete(Player, 5611, 2) and QuestStepIsComplete(Player, 5611, 3) and QuestStepIsComplete(Player, 5611, 4) then
  57. UpdateQuestTaskGroupDescription(Quest, 1, "I have finished Selwyn's errands I should return to her.")
  58. UpdateQuestZone(Quest,"South Qeynos")
  59. AddQuestStepChat(Quest, 5, "I should return to Selwyn in South Qeynos.", 1, "I need to speak to Selwyn Oakheart in the South Qeynos.", 11, 2310028)
  60. AddQuestStepCompleteAction(Quest, 5, "QuestComplete")
  61. end
  62. end
  63. function QuestComplete(Quest, QuestGiver, Player)
  64. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  65. UpdateQuestStepDescription(Quest, 5, "I have returned to Selwyn in South Qeynos.")
  66. UpdateQuestTaskGroupDescription(Quest, 2, "I have spoken with Selwyn in South Qeynos.")
  67. UpdateQuestDescription(Quest, "Selwyn has paid me with some armor for my chest.")
  68. GiveQuestReward(Quest, Player)
  69. end
  70. function Reload(Quest, QuestGiver, Player, Step)
  71. if Step == 1 then
  72. Step1Complete(Quest, QuestGiver, Player)
  73. elseif Step == 2 then
  74. Step2Complete(Quest, QuestGiver, Player)
  75. elseif Step == 3 then
  76. Step3Complete(Quest, QuestGiver, Player)
  77. elseif Step == 4 then
  78. Step4Complete(Quest, QuestGiver, Player)
  79. elseif Step == 5 then
  80. QuestComplete(Quest, QuestGiver, Player)
  81. end
  82. end