gildas_requests__part_vi.lua 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. --[[
  2. Script Name : Quests/TheElddarGrove/gildas_requests__part_vi.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.08 10:07:14
  5. Script Purpose :
  6. Zone : TheElddarGrove
  7. Quest Giver: Gildas Cedartree
  8. Preceded by: Gildas' Requests - Part V
  9. Followed by: None
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I must help drive back some of the Steelhoof invaders.", 12, 100, "I'm afraid more things threaten our exploration parties within the Steppes. You can help by driving back some of the Steelhoof invaders. The Sabertooth chanters are also appearing to be a driving force behind the raids those gnolls have been making as of late. And it appears some undead apprentices of the mage Varsoon have appeared near some ruins within the Steppes. They need to be dealt with accordingly. And finally, an old apprentice of mine Celeg Ixuri seems to have returned from the dead after searching for the secrets of Varsoon. He needs to be destroyed in his undead state he's very dangerous. Please be careful he was one of my most talented students, you might take friends with you for this. - Gildas", 611, 2490066)
  14. AddQuestStepKill(Quest, 2, "I should find and kill all the Sabertooth chanters I can.", 8, 100, "I'm afraid more things threaten our exploration parties within the Steppes. You can help by driving back some of the Steelhoof invaders. The Sabertooth chanters are also appearing to be a driving force behind the raids those gnolls have been making as of late. And it appears some undead apprentices of the mage Varsoon have appeared near some ruins within the Steppes. They need to be dealt with accordingly. And finally, an old apprentice of mine Celeg Ixuri seems to have returned from the dead after searching for the secrets of Varsoon. He needs to be destroyed in his undead state he's very dangerous. Please be careful he was one of my most talented students, you might take friends with you for this. - Gildas", 611, 170026,2490315)
  15. AddQuestStepKill(Quest, 3, "I should find and destroy several of Varsoon's undead apprentices.", 10, 100, "I'm afraid more things threaten our exploration parties within the Steppes. You can help by driving back some of the Steelhoof invaders. The Sabertooth chanters are also appearing to be a driving force behind the raids those gnolls have been making as of late. And it appears some undead apprentices of the mage Varsoon have appeared near some ruins within the Steppes. They need to be dealt with accordingly. And finally, an old apprentice of mine Celeg Ixuri seems to have returned from the dead after searching for the secrets of Varsoon. He needs to be destroyed in his undead state he's very dangerous. Please be careful he was one of my most talented students, you might take friends with you for this. - Gildas", 91, 2490226, 2560000)
  16. AddQuestStepKill(Quest, 4, "I must find and destroy Celeg Ixuri near the ruins where I can find the Varsoon apprentices", 1, 100, "I'm afraid more things threaten our exploration parties within the Steppes. You can help by driving back some of the Steelhoof invaders. The Sabertooth chanters are also appearing to be a driving force behind the raids those gnolls have been making as of late. And it appears some undead apprentices of the mage Varsoon have appeared near some ruins within the Steppes. They need to be dealt with accordingly. And finally, an old apprentice of mine Celeg Ixuri seems to have returned from the dead after searching for the secrets of Varsoon. He needs to be destroyed in his undead state he's very dangerous. Please be careful he was one of my most talented students, you might take friends with you for this. - Gildas", 11, 2490842)
  17. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  18. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  19. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  20. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  21. UpdateQuestZone(Quest,"Thundering Steppes")
  22. end
  23. function Accepted(Quest, QuestGiver, Player)
  24. FaceTarget(QuestGiver, Player)
  25. Dialog.New(QuestGiver, Player)
  26. Dialog.AddDialog( "This is your final task. I cannot thank you enough for your help. I will see if my friend can finish your robe in time for your return. Please take this note; it explains what I need.")
  27. -- Dialog.AddVoiceover("voiceover/english/selwyn_oakheart/qey_south/quests/selwyn_oakheart/selwyn001.mp3", 390832885, 49061382)
  28. PlayFlavor(QuestGiver,"","","thanks", 0, 0, Player)
  29. Dialog.AddOption( "Thank you Gildas. I will return.")
  30. Dialog.Start()
  31. end
  32. function Declined(Quest, QuestGiver, Player)
  33. -- Add dialog here for when the quest is declined
  34. end
  35. function Deleted(Quest, QuestGiver, Player)
  36. -- Remove any quest specific items here when the quest is deleted
  37. end
  38. function Step1Complete(Quest, QuestGiver, Player)
  39. UpdateQuestStepDescription(Quest, 1, "I have helped drive back some of the Steelhoof invaders.")
  40. CheckProgress(Quest, QuestGiver, Player)
  41. end
  42. function Step2Complete(Quest, QuestGiver, Player)
  43. UpdateQuestStepDescription(Quest, 2, "I have found and killed several Sabertooth chanters.")
  44. CheckProgress(Quest, QuestGiver, Player)
  45. end
  46. function Step3Complete(Quest, QuestGiver, Player)
  47. UpdateQuestStepDescription(Quest, 3, "I have found and destroyed several of Varsoon's undead apprentices.")
  48. CheckProgress(Quest, QuestGiver, Player)
  49. end
  50. function Step4Complete(Quest, QuestGiver, Player)
  51. UpdateQuestStepDescription(Quest, 4, "I have destroyed Celeg Ixuri.")
  52. CheckProgress(Quest, QuestGiver, Player)
  53. end
  54. function CheckProgress(Quest, QuestGiver, Player)
  55. if QuestStepIsComplete(Player, 5617, 1) and QuestStepIsComplete(Player, 5617, 2) and QuestStepIsComplete(Player, 5617, 3) and QuestStepIsComplete(Player, 5617, 4) then
  56. UpdateQuestTaskGroupDescription(Quest, 1, "I have completed all that Gildas has asked of me. I should return to him.")
  57. UpdateQuestZone(Quest,"The Elddar Grove")
  58. AddQuestStepChat(Quest, 5, "I should return to Gildas in The Elddar Grove.", 1, "I need to speak to Gildas Cedartree in The Elddar Grove.", 11, 2070033)
  59. AddQuestStepCompleteAction(Quest, 5, "QuestComplete")
  60. end
  61. end
  62. function QuestComplete(Quest, QuestGiver, Player)
  63. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  64. UpdateQuestStepDescription(Quest, 5, " I have returned to Gildas in The Elddar Grove.")
  65. UpdateQuestTaskGroupDescription(Quest, 2, "I have spoken to Gildas Cedartree in The Elddar Grove.")
  66. UpdateQuestDescription(Quest, "Gildas has rewarded me with a silver touched robe.")
  67. GiveQuestReward(Quest, Player)
  68. end
  69. function Reload(Quest, QuestGiver, Player, Step)
  70. if Step == 1 then
  71. Step1Complete(Quest, QuestGiver, Player)
  72. elseif Step == 2 then
  73. Step2Complete(Quest, QuestGiver, Player)
  74. elseif Step == 3 then
  75. Step3Complete(Quest, QuestGiver, Player)
  76. elseif Step == 4 then
  77. Step4Complete(Quest, QuestGiver, Player)
  78. elseif Step == 5 then
  79. QuestComplete(Quest, QuestGiver, Player)
  80. end
  81. end