gildas_requests__part_i.lua 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. --[[
  2. Script Name : Quests/TheElddarGrove/gildas_requests__part_i.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.08 10:07:14
  5. Script Purpose : Qeynos Cloth Armorquest 1
  6. Zone : TheElddarGrove
  7. Quest Giver: Gildas Cedartree
  8. Preceded by: None
  9. Followed by: Gildas' Requests - Part II
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I must destroy the Caltorsis magi within Antonica.", 14, 100, "It seems there are some scarecrows attacking the livestock and on occasion the people out in Antonica. I need you to destroy these animated abominations if you can. It's likely the undead Caltorsis magi are behind the corrupted animations. Destroy as many of them as you can find and hopefully this will relieve or solve the problem for the time being. - Gildas", 91, 120127)
  14. AddQuestStepKill(Quest, 2, "I must destroy the animated rotstuffed scarecrows in Antonica.", 15, 100, "It seems there are some scarecrows attacking the livestock and on occasion the people out in Antonica. I need you to destroy these animated abominations if you can. It's likely the undead Caltorsis magi are behind the corrupted animations. Destroy as many of them as you can find and hopefully this will relieve or solve the problem for the time being. - Gildas", 611, 120156,121300)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  17. UpdateQuestZone(Quest,"Antonica")
  18. end
  19. function Accepted(Quest, QuestGiver, Player)
  20. FaceTarget(QuestGiver, Player)
  21. Dialog.New(QuestGiver, Player)
  22. Dialog.AddDialog( "Then I thank you in advance. I'll speak with my tailoring friend to see what she can make for you. Let me see your journal, and I'll detail the latest threats to Qeynos.")
  23. Dialog.AddVoiceover("voiceover/english/gildas_cedartree/qey_elddar/quests/gildas_cedartree/gildascedartree004.mp3", 1682068639, 1518126773)
  24. PlayFlavor(QuestGiver,"","","thanks", 0, 0, Player)
  25. Dialog.AddOption( "I will. I'll return when the deeds are done.")
  26. Dialog.Start()
  27. end
  28. function Declined(Quest, QuestGiver, Player)
  29. -- Add dialog here for when the quest is declined
  30. end
  31. function Deleted(Quest, QuestGiver, Player)
  32. -- Remove any quest specific items here when the quest is deleted
  33. end
  34. function Step1Complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 1, "I have destroyed many of the Caltorsis magi within Antonica.")
  36. CheckProgress(Quest, QuestGiver, Player)
  37. end
  38. function Step2Complete(Quest, QuestGiver, Player)
  39. UpdateQuestStepDescription(Quest, 2, "I have destroyed many of the animated rotstuffed scarecrows in Antonica.")
  40. CheckProgress(Quest, QuestGiver, Player)
  41. end
  42. function CheckProgress(Quest, QuestGiver, Player)
  43. if QuestStepIsComplete(Player, 5612, 1) and QuestStepIsComplete(Player, 5612, 2) then
  44. UpdateQuestTaskGroupDescription(Quest, 1, "I have completed all that Gildas has asked of me. I should return to him.")
  45. UpdateQuestZone(Quest,"The Elddar Grove")
  46. AddQuestStepChat(Quest, 3, "I should return to Gildas in The Elddar Grove.", 1, "I need to speak to Gildas Cedartree in The Elddar Grove.", 11, 2070033)
  47. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  48. end
  49. end
  50. function QuestComplete(Quest, QuestGiver, Player)
  51. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  52. UpdateQuestStepDescription(Quest, 4, " I have returned to Gildas in The Elddar Grove.")
  53. UpdateQuestTaskGroupDescription(Quest, 2, "I have spoken to Gildas Cedartree in The Elddar Grove.")
  54. UpdateQuestDescription(Quest, "Gildas has rewarded me with a silver touched gloves.")
  55. GiveQuestReward(Quest, Player)
  56. end
  57. function Reload(Quest, QuestGiver, Player, Step)
  58. if Step == 1 then
  59. Step1Complete(Quest, QuestGiver, Player)
  60. elseif Step == 2 then
  61. Step2Complete(Quest, QuestGiver, Player)
  62. elseif Step == 3 then
  63. QuestComplete(Quest, QuestGiver, Player)
  64. end
  65. end