the_hidden_riddle.lua 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. --[[
  2. Script Name : Quests/Antonica/the_hidden_riddle.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.07.22 06:07:59
  5. Script Purpose :
  6. Zone : Antonica
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStep(Quest, 1, "Find the secret vault of knowledge in the Ruins of Varsoon.", 1, 100, "I must discover a secret library or vault of secrets inside the Ruins of Varsoon. There I should find the puzzle box.", 11)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. Dialog.New(QuestGiver, Player)
  18. Dialog.AddDialog("Return to me the Riddle of Saryrn, and you will have your fortune. I promise this or may my soul be cursed to walk this land for eternity.")
  19. Dialog.AddVoiceover("voiceover/english/optional1/rikantus/antonica/rikantus015.mp3", 89864911, 2778083584)
  20. Dialog.AddOption("I will return with the puzzle box. ")
  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 found a secret bookcase vault holding the puzzle box.")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I discovered the secret bookcase vault holding the puzzle box. But it is locked and requires two unique keys being held in the Ruins of Varsoon.")
  31. AddQuestStepKill(Quest, 2, "Hunt down Varsoon apprentices in the Ruins of Varsoon.", 1, 30, "I must hunt down the creatures believed to be holding the two keys required to open the secret vault holding the puzzle box. They lurk in the Ruins of Varsoon.", 2169, 2490226, 2560000)
  32. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  33. end
  34. function Step2Complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 2, "I obtained the Skull Key to unlock the bookcase vault.")
  36. AddQuestStepKill(Quest, 3, "Hunt down incomplete guardians in the Ruins of Varsoon.", 1, 30, "I must hunt down the creatures believed to be holding the two keys required to open the secret vault holding the puzzle box. They lurk in the Ruins of Varsoon.", 1007, 2560042)
  37. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  38. end
  39. function Step3Complete(Quest, QuestGiver, Player)
  40. UpdateQuestStepDescription(Quest, 3, "I obtained the Star Key to unlock the bookcase vault.")
  41. UpdateQuestTaskGroupDescription(Quest, 2, "I obtained the two keys required to open the bookcase vault.")
  42. AddQuestStep(Quest, 4, "Unlock the secret bookcase vault.", 1, 100, "I must return to the secret bookcase vault holding the puzzle box and open it with the two keys.", 1212)
  43. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  44. end
  45. function Step4Complete(Quest, QuestGiver, Player)
  46. UpdateQuestStepDescription(Quest, 4, "I retrieved the puzzle box called 'The Riddle of Saryrn.'")
  47. UpdateQuestTaskGroupDescription(Quest, 3, "I opened the secret bookcase vault and retrieved the puzzle box called 'The Riddle of Saryrn'.")
  48. AddQuestStepChat(Quest, 5, "Return to Rikantus in Antonica. ", 1, "I must return to Antonica to deliver the puzzle box to Rikantus in Evernight Cemetery.", 11, 120403)
  49. AddQuestStepCompleteAction(Quest, 5, "QuestComplete")
  50. end
  51. function QuestComplete(Quest, QuestGiver, Player)
  52. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  53. UpdateQuestStepDescription(Quest, 5, "I returned to Rikantus in Antonica. ")
  54. UpdateQuestTaskGroupDescription(Quest, 4, "I returned to Antonica to deliver the puzzle box called 'The Riddle of Saryrn' to Rikantus in Evernight Cemetery.")
  55. UpdateQuestDescription(Quest, "I recovered the puzzle box called 'The Riddle of Saryrn.' I delivered the ancient toy to the rightful owner, Rikantus.")
  56. GiveQuestReward(Quest, Player)
  57. end
  58. function Reload(Quest, QuestGiver, Player, Step)
  59. if Step == 1 then
  60. Step1Complete(Quest, QuestGiver, Player)
  61. elseif Step == 2 then
  62. Step2Complete(Quest, QuestGiver, Player)
  63. elseif Step == 3 then
  64. Step3Complete(Quest, QuestGiver, Player)
  65. elseif Step == 4 then
  66. Step4Complete(Quest, QuestGiver, Player)
  67. elseif Step == 5 then
  68. QuestComplete(Quest, QuestGiver, Player)
  69. end
  70. end