the_hidden_riddle.lua 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. function Init(Quest)
  12. 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)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. end
  17. function Declined(Quest, QuestGiver, Player)
  18. -- Add dialog here for when the quest is declined
  19. end
  20. function Deleted(Quest, QuestGiver, Player)
  21. -- Remove any quest specific items here when the quest is deleted
  22. end
  23. function Step1Complete(Quest, QuestGiver, Player)
  24. UpdateQuestStepDescription(Quest, 1, "I found a secret bookcase vault holding the puzzle box.")
  25. 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.")
  26. 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)
  27. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  28. end
  29. function Step2Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 2, "I obtained the Skull Key to unlock the bookcase vault.")
  31. 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)
  32. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  33. end
  34. function Step3Complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 3, "I obtained the Star Key to unlock the bookcase vault.")
  36. UpdateQuestTaskGroupDescription(Quest, 2, "I obtained the two keys required to open the bookcase vault.")
  37. 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)
  38. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  39. end
  40. function Step4Complete(Quest, QuestGiver, Player)
  41. UpdateQuestStepDescription(Quest, 4, "I retrieved the puzzle box called 'The Riddle of Saryrn.'")
  42. UpdateQuestTaskGroupDescription(Quest, 3, "I opened the secret bookcase vault and retrieved the puzzle box called 'The Riddle of Saryrn'.")
  43. 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)
  44. AddQuestStepCompleteAction(Quest, 5, "QuestComplete")
  45. end
  46. function QuestComplete(Quest, QuestGiver, Player)
  47. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  48. UpdateQuestStepDescription(Quest, 5, "I returned to Rikantus in Antonica. ")
  49. UpdateQuestTaskGroupDescription(Quest, 4, "I returned to Antonica to deliver the puzzle box called 'The Riddle of Saryrn' to Rikantus in Evernight Cemetery.")
  50. UpdateQuestDescription(Quest, "I recovered the puzzle box called 'The Riddle of Saryrn.' I delivered the ancient toy to the rightful owner, Rikantus.")
  51. GiveQuestReward(Quest, Player)
  52. end
  53. function Reload(Quest, QuestGiver, Player, Step)
  54. if Step == 1 then
  55. Step1Complete(Quest, QuestGiver, Player)
  56. elseif Step == 2 then
  57. Step2Complete(Quest, QuestGiver, Player)
  58. elseif Step == 3 then
  59. Step3Complete(Quest, QuestGiver, Player)
  60. elseif Step == 4 then
  61. Step4Complete(Quest, QuestGiver, Player)
  62. elseif Step == 5 then
  63. QuestComplete(Quest, QuestGiver, Player)
  64. end
  65. end