priest_training.lua 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. --[[
  2. Script Name : Quests/Hallmark/priest_training.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.09.29 04:09:33
  5. Script Purpose :
  6. Zone : Hallmark
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "Kill Diseased Ratonga", 5, 100, "Priest Kelian has suggested that I free the Diseased Ratonga in the Thieves' Way from their pain. I can reach the Thieves' Way by using the sewer entrances in and around the City of Freeport.", 611, 8430010, 8430009, 8430011, 1540002, 1540073, 1540072, 1540028, 1540024, 1540022, 1540021)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. UpdateQuestZone(Quest,"Thieves' Way")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. Dialog.New(QuestGiver, Player)
  20. Dialog.AddDialog("Three paths lead down the road to enlightenment, child. Let me explain: The first path is that of the cleric, a healer and comforter. As we speak, ratonga inflicted with a vile disease fill the sewers beneath our feet. You must ease their pain. Venture below and put some of these creatures out of their misery.")
  21. Dialog.AddVoiceover("voiceover/english/priest_kelian/fprt_north/priestkelian002.mp3", 4221398277, 318277158)
  22. PlayFlavor(QuestGiver, "", "", "agree", 0, 0, Player)
  23. Dialog.AddOption("As you say. I will return soon.")
  24. Dialog.Start()
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. -- Add dialog here for when the quest is declined
  28. end
  29. function Deleted(Quest, QuestGiver, Player)
  30. -- Remove any quest specific items here when the quest is deleted
  31. end
  32. function Step1Complete(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 1, "I laid to rest five Diseased Ratonga.")
  34. UpdateQuestTaskGroupDescription(Quest, 1, "I have stopped the suffering of five Diseased Ratonga by sending them to the sweet embrace of death.")
  35. UpdateQuestZone(Quest,"Multiple Zones")
  36. AddQuestStepChat(Quest, 2, "Speak with Priest Kelian", 1, "I should return to Kelian in the City of Freeport for continued guidance.", 11, 1440466)
  37. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  38. end
  39. function Step2Complete(Quest, QuestGiver, Player)
  40. UpdateQuestStepDescription(Quest, 2, "I have spoken with Priest Kelian.")
  41. UpdateQuestTaskGroupDescription(Quest, 2, "Priest Kelian was pleased with my compassion towards those Ratonga. He has explained that Clerics heal people in many different ways.")
  42. UpdateQuestZone(Quest,"South Freeport")
  43. AddQuestStepLocation(Quest, 3, "Find out if foreign plants are being sold in Freeport", 1, "The Priest wishes me to track down any foreign plants. I should speak with the following people in the City of Freeport to see if they have any foreign plants: Torlig the Alchemist, Alypia Damian at the Trader's Holiday, and Annia Kaeso down by the docks.", 340,1660026,1280043,1440007)
  44. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  45. end
  46. function Step3Complete(Quest, QuestGiver, Player)
  47. UpdateQuestStepDescription(Quest, 3, "I have found a purple flower that has traveled from across the ocean.")
  48. UpdateQuestTaskGroupDescription(Quest, 3, "The only foreign plant I was able to find was a purple flower given to me by Annia Kaeso.")
  49. UpdateQuestZone(Quest,"North Freeport")
  50. AddQuestStepChat(Quest, 4, "Speak with Priest Kelian", 1, "I should bring this flower back to Priest Kelian in the City of Freeport so that he can see what I have found.", 11, 1440466)
  51. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  52. end
  53. function Step4Complete(Quest, QuestGiver, Player)
  54. UpdateQuestStepDescription(Quest, 4, "I have spoken with Priest Kelian")
  55. UpdateQuestTaskGroupDescription(Quest, 4, "I have given Priest Kelian the flower, but he claims this wasn't the source of the disease.")
  56. UpdateQuestZone(Quest,"The Sprawl")
  57. AddQuestStepKill(Quest, 5, "Collect gravel viper poison sacs", 5, 70, "The Priest has told me to trust in my guiding spirits to direct me to the gravel vipers that contains the most lethal poison in the Sprawl. I can reach the Sprawl by using any of the bells in and around the City of Freeport.", 113, 8400009, 1260006)
  58. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  59. end
  60. function Step5Complete(Quest, QuestGiver, Player)
  61. UpdateQuestStepDescription(Quest, 5, "I found and five gravel viper poison sacs.")
  62. UpdateQuestTaskGroupDescription(Quest, 5, "The spirits have guided me to the deadliest of the gravel viper. I've collected their poison sacs for the Priest.")
  63. UpdateQuestZone(Quest,"North Freeport")
  64. AddQuestStepChat(Quest, 6, "I should talk to Priest Kelian.", 1, "I should bring these poison sacs back to Priest Kelian in the City of Freeport.", 11, 1440466)
  65. AddQuestStepCompleteAction(Quest, 6, "QuestComplete")
  66. end
  67. function QuestComplete(Quest, QuestGiver, Player)
  68. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  69. UpdateQuestStepDescription(Quest, 6, "I have spoken with Priest Kelian.")
  70. UpdateQuestTaskGroupDescription(Quest, 6, "Kelian has taken the poison sacs and plans on using them to cure the city of this disease.")
  71. UpdateQuestDescription(Quest, "I have told Proctor Fergus the choice I have made towards my spiritual enlightenment. He has given me his blessing and told me to go forth and spread the word. Soon enough, I shall introduce my new-found faith to the heathens of this world.")
  72. GiveQuestReward(Quest, Player)
  73. end
  74. function Reload(Quest, QuestGiver, Player, Step)
  75. if Step == 1 then
  76. Step1Complete(Quest, QuestGiver, Player)
  77. elseif Step == 2 then
  78. Step2Complete(Quest, QuestGiver, Player)
  79. elseif Step == 3 then
  80. Step3Complete(Quest, QuestGiver, Player)
  81. elseif Step == 4 then
  82. Step4Complete(Quest, QuestGiver, Player)
  83. elseif Step == 5 then
  84. Step5Complete(Quest, QuestGiver, Player)
  85. elseif Step == 6 then
  86. QuestComplete(Quest, QuestGiver, Player)
  87. end
  88. end