gildas_requests__part_iv.lua 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. --[[
  2. Script Name : Quests/TheElddarGrove/gildas_requests__part_iv.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.08 10:07:14
  5. Script Purpose : Qeynos Cloth Armorquest 4
  6. Zone : TheElddarGrove
  7. Quest Giver: Gildas Cedartree
  8. Preceded by: Gildas' Requests - Part III
  9. Followed by: Gildas' Requests - Part V
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I must recover some bone fragments from the ire minions in the Crypt of Betrayal.", 12, 100, "From what you brought back to me the last time I've pieced some things together but need some more samples. This time though from the Crypt of Betrayal below Qeynos. Bring me some of the bone fragments from the ire minions and I'll see if they match with the torrents. While there I'd appreciate it if you could take care of some of the scarabs, they are starting to get out of control. And for good measure kill any shrillers you find. - Gildas", 92, 2010010,2010027,2010029,2010039)
  14. AddQuestStepKill(Quest, 2, "I must reduce the number of scarabs within the Crypt of Betrayal.", 20, 100, "From what you brought back to me the last time I've pieced some things together but need some more samples. This time though from the Crypt of Betrayal below Qeynos. Bring me some of the bone fragments from the ire minions and I'll see if they match with the torrents. While there I'd appreciate it if you could take care of some of the scarabs, they are starting to get out of control. And for good measure kill any shrillers you find. - Gildas", 1821, 2010002,2010013,2040001 )
  15. AddQuestStepKill(Quest, 3, "I must kill a few of the shrillers within The Crypt of Betrayal.", 12, 100, "From what you brought back to me the last time I've pieced some things together but need some more samples. This time though from the Crypt of Betrayal below Qeynos. Bring me some of the bone fragments from the ire minions and I'll see if they match with the torrents. While there I'd appreciate it if you could take care of some of the scarabs, they are starting to get out of control. And for good measure kill any shrillers you find. - Gildas", 140, 2010003,2010026,2010035)
  16. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  17. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  18. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  19. UpdateQuestZone(Quest,"The Crypt of Betrayal")
  20. end
  21. function Accepted(Quest, QuestGiver, Player)
  22. FaceTarget(QuestGiver, Player)
  23. Dialog.New(QuestGiver, Player)
  24. Dialog.AddDialog( "It seems that some problems don't go away, even after death. I heard reports of a threat that we must take care of immediately. If you weren't as capable as you've already proved, I'd be reluctant to send you on this dangerous mission. As it stands, I need your help. I'll write directions in your journal.")
  25. -- Dialog.AddVoiceover("voiceover/english/selwyn_oakheart/qey_south/quests/selwyn_oakheart/selwyn001.mp3", 390832885, 49061382)
  26. PlayFlavor(QuestGiver,"","","ponder", 0, 0, Player)
  27. Dialog.AddOption( "I will ensure this is taken care of.")
  28. Dialog.Start()
  29. end
  30. function Declined(Quest, QuestGiver, Player)
  31. -- Add dialog here for when the quest is declined
  32. end
  33. function Deleted(Quest, QuestGiver, Player)
  34. -- Remove any quest specific items here when the quest is deleted
  35. end
  36. function Step1Complete(Quest, QuestGiver, Player)
  37. UpdateQuestStepDescription(Quest, 1, "I have recovered some bone fragments from the ire minions in the Crypt of Betrayal.")
  38. CheckProgress(Quest, QuestGiver, Player)
  39. end
  40. function Step2Complete(Quest, QuestGiver, Player)
  41. UpdateQuestStepDescription(Quest, 2, "I have reduced the number of scarabs within the Crypt of Betrayal.")
  42. CheckProgress(Quest, QuestGiver, Player)
  43. end
  44. function Step3Complete(Quest, QuestGiver, Player)
  45. UpdateQuestStepDescription(Quest, 3, "I have killed a few of the shrillers within The Crypt of Betrayal.")
  46. CheckProgress(Quest, QuestGiver, Player)
  47. end
  48. function CheckProgress(Quest, QuestGiver, Player)
  49. if QuestStepIsComplete(Player, 5615, 1) and QuestStepIsComplete(Player, 5615, 2) and QuestStepIsComplete(Player, 5615, 3) then
  50. UpdateQuestTaskGroupDescription(Quest, 1, "I have completed all that Gildas has asked of me. I should return to him.")
  51. UpdateQuestZone(Quest,"The Elddar Grove")
  52. AddQuestStepChat(Quest, 4, "I should return to Gildas in The Elddar Grove.", 1, "I need to speak to Gildas Cedartree in The Elddar Grove.", 11, 2070033)
  53. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  54. end
  55. end
  56. function QuestComplete(Quest, QuestGiver, Player)
  57. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  58. UpdateQuestStepDescription(Quest, 4, " I have returned to Gildas in The Elddar Grove.")
  59. UpdateQuestTaskGroupDescription(Quest, 2, "I have spoken to Gildas Cedartree in The Elddar Grove.")
  60. UpdateQuestDescription(Quest, "Gildas has rewarded me with a silver touched shawl.")
  61. GiveQuestReward(Quest, Player)
  62. end
  63. function Reload(Quest, QuestGiver, Player, Step)
  64. if Step == 1 then
  65. Step1Complete(Quest, QuestGiver, Player)
  66. elseif Step == 2 then
  67. Step2Complete(Quest, QuestGiver, Player)
  68. elseif Step == 3 then
  69. Step3Complete(Quest, QuestGiver, Player)
  70. elseif Step == 4 then
  71. QuestComplete(Quest, QuestGiver, Player)
  72. end
  73. end