9
3

prayer_journal_retrieval.lua 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. --[[
  2. Script Name : Quests/NektulosForest/prayer_journal_retrieval.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.07.20 09:07:26
  5. Script Purpose :
  6. Zone : NektulosForest
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I must find a priestly journal carried by the Priest of Byzola", 1, 100, "I'm still searching for information as to the priestly temple located in the Fallen Gate.", 195, 1190129)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. local conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/jhos_t_sein/nektulos/quests/jhostsein/qst_jhostsein_x1_accept.mp3", "", "", 3412708536, 2681464640, Player)
  19. AddConversationOption(conversation, "There'd better be a substantial reward involved.")
  20. StartConversation(conversation, QuestGiver, Player, "You will return to the Fallen Gate and retrieve the information I demand. I shall finance your trip of course, though I expect all haste to be made to complete this. I don't tolerate failure or delay.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function Step1Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I've found a priestly journal")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I've successfully recovered a priestly manual from a former cleric in the Fallen Gate.")
  31. AddQuestStepChat(Quest, 2, "I still need to return the priest's manual to Jhos T'sein", 1, "I must return to Jhos T'sein to give him the writings he requested.", 195, 1790190)
  32. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  33. end
  34. function Step2Complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 2, "I've returned the priest's manual to Jhos T'sein")
  36. UpdateQuestTaskGroupDescription(Quest, 2, "I've spoken with Jhos T'sein regarding the manual.")
  37. AddQuestStepChat(Quest, 3, "I still need to return the journal to Tundis N'oxyle", 1, "I need to speak with Tundis N'oxyle and return his journal.", 195, 330394)
  38. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  39. end
  40. function QuestComplete(Quest, QuestGiver, Player)
  41. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  42. UpdateQuestStepDescription(Quest, 3, "I've returned the journal to Tundis N'oxyle")
  43. UpdateQuestTaskGroupDescription(Quest, 3, "I've returned the journal to Tundis N'oxyle.")
  44. UpdateQuestDescription(Quest, "The unspeakable horror that lies within the foul dungeon claws at my very soul. Even I, such as I am, tremble at the thought of again returning there. Though I proved once again successful, recovering the tome of a long-dead priest for Jhos T'sein, I have determined that a good rest may be in order.")
  45. GiveQuestReward(Quest, Player)
  46. end
  47. function Reload(Quest, QuestGiver, Player, Step)
  48. if Step == 1 then
  49. Step1Complete(Quest, QuestGiver, Player)
  50. elseif Step == 2 then
  51. Step2Complete(Quest, QuestGiver, Player)
  52. elseif Step == 3 then
  53. QuestComplete(Quest, QuestGiver, Player)
  54. end
  55. end