priest_training_pt_i.lua 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. --[[
  2. Script Name : Quests/Hallmark/priest_training_pt_i.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.11.19 04:11:58
  5. Script Purpose :
  6. Zone : Hallmark
  7. Quest Giver: Heirophant Aldalad
  8. Preceded by: None
  9. Followed by: Priest Training, pt II
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to heal the fletcher, Nightbow, in the Elddar Grove.", 1, "Aldalad has suggested that I pray for divine healing to heal some people that have injuries.", 11, 2070011)
  14. AddQuestStepChat(Quest, 2, "I need to heal the carpenter in Graystone.", 1, "Aldalad has suggested that I pray for divine healing to heal some people that have injuries.", 11, 2350030)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  17. end
  18. function Accepted(Quest, QuestGiver, Player)
  19. FaceTarget(QuestGiver, Player)
  20. Dialog.New(QuestGiver, Player)
  21. Dialog.AddDialog("Such devotion would make me glad indeed! Take your special healing gifts to the people and restore their faith! People are suffering right here in Qeynos. To begin your work, seek out a fletcher named Armsdealer Nightbow in the Elddar, and the carpenter Jorgie Icearmor down by the harbor. One is wounded; the other is ill. Heal them, and return to me.")
  22. Dialog.AddVoiceover("voiceover/english/hierophant_aldalad/qey_north/hierophant_aldalad005.mp3", 257418287, 4158083367)
  23. PlayFlavor(QuestGiver, "", "", "thanks", 0, 0, Player)
  24. Dialog.AddOption("A fletcher is someone who makes bows and arrows, right? I'll find Nightbow and Jorgie, and heal them right away.")
  25. Dialog.Start()
  26. if GetQuestStep(Player,5879)==1 then
  27. SetStepComplete(Player,5879,1)
  28. end
  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 healed Nightbow.")
  38. QuestCheck(Quest, QuestGiver, Player)
  39. end
  40. function Step2Complete(Quest, QuestGiver, Player)
  41. UpdateQuestStepDescription(Quest, 2, "I have healed Jorgie.")
  42. QuestCheck(Quest, QuestGiver, Player)
  43. end
  44. function QuestCheck(Quest, QuestGiver, Player)
  45. if QuestStepIsComplete(Player,5772,1) and QuestStepIsComplete(Player,5772,2) then
  46. UpdateQuestTaskGroupDescription(Quest, 1, "I've healed both of Nightbow and Jorgie of their ailments.")
  47. AddQuestStepChat(Quest, 3, "I need to speak with Aldalad in North Qeynos.", 1, "I should let Aldalad know that through divine intervention, they will be fine now.", 11, 2220484)
  48. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  49. end
  50. end
  51. function Step3Complete(Quest, QuestGiver, Player)
  52. UpdateQuestStepDescription(Quest, 3, "I've spoken with Aldalad.")
  53. UpdateQuestTaskGroupDescription(Quest, 2, "Aldalad was impressed at the divine potency that I wield.")
  54. AddQuestStepKill(Quest, 4, "I must kill five Oakmyst fairies.", 5, 100, "Aldalad has directed me to the Oakmyst Forest to put five Oakmyst fairies to rest.", 110, 8300048,8300049,8300050,8300014,8300015,8300016)
  55. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  56. end
  57. function Step4Complete(Quest, QuestGiver, Player)
  58. UpdateQuestStepDescription(Quest, 4, "I have killed some Oakmyst fairies")
  59. UpdateQuestTaskGroupDescription(Quest, 3, "I've sent the Oakmyst spirits back to the Gray Fields.")
  60. AddQuestStepChat(Quest, 5, "I need to speak with Aldalad in North Qeynos.", 1, "I should let Aldalad know that the spirits will no longer bother the living", 11, 2220484)
  61. AddQuestStepCompleteAction(Quest, 5, "QuestComplete")
  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've spoken with Aldalad.")
  66. UpdateQuestTaskGroupDescription(Quest, 4, "I've let Aldalad know that the spirits are no longer haunting the forest.")
  67. UpdateQuestDescription(Quest, "Hierophant Aldalad has shown me the difference between a cleric and a shaman. I have learned that faith comes from many different avenues. He has hinted at the fact there are even more paths to learn of, but wishes for me to learn from my experiences before I continue seeing more.")
  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