fire_and_ice.lua 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --[[
  2. Script Name : Quests/MultipleZones/fire_and_ice.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.08.08 07:08:22
  5. Script Purpose :
  6. Zone : MultipleZones
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to speak to the Sage of Ages.", 1, "I should speak to the Sage of Ages at the Tower of the Coldwind Oracles in Antonica and let him know what Nagafen said.", 11, 120218)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. -- Add dialog here for when the quest is accepted
  17. end
  18. function Declined(Quest, QuestGiver, Player)
  19. -- Add dialog here for when the quest is declined
  20. end
  21. function Deleted(Quest, QuestGiver, Player)
  22. -- Remove any quest specific items here when the quest is deleted
  23. end
  24. function Step1Complete(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I spoke to the Sage of Ages.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I spoke to the Sage of Ages. He believes Nagafen is lying, but reluctantly agrees that for now we should follow Nagafen's plan of resurrecting Lady Vox.")
  27. AddQuestStepChat(Quest, 2, "We need to resurrect Lady Vox within her crypt at Permafrost and speak with her.", 1, "We need to resurrect the Lady Vox by recovering her essence shards from the Drakota assassins that hold them and perform the ritual within her crypt.", 11, 1940001)
  28. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  29. end
  30. function Step2Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I spoke to Lady Vox.")
  32. UpdateQuestTaskGroupDescription(Quest, 2, "We were only able to temporarily bring Lady Vox back to life. She was able to sense that the orb, her egg, is being held by the Ice Giant king.")
  33. AddQuestStepObtainItem(Quest, 3, "We need to recover the egg from the Ice Giant King.", 1, 100, "We need to rescue the egg from the clutches of the Ice Giant king.", 1159, 3180002)
  34. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  35. end
  36. function QuestComplete(Quest, QuestGiver, Player)
  37. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  38. UpdateQuestStepDescription(Quest, 3, "We defeated the King Drayek!")
  39. UpdateQuestTaskGroupDescription(Quest, 3, "We defeated the Ice Giant king, Drayek!")
  40. UpdateQuestDescription(Quest, "The dragon Darathar was the Sage of Ages all along! After temporarily resurrecting Lady Vox from the dead, she was able to sense that the Ice Giants held her long lost egg. We defeated the traitorous King Drayek to recover the egg for Nagafen but the Darathar double crossed us and took it! ")
  41. GiveQuestReward(Quest, Player)
  42. end
  43. function Reload(Quest, QuestGiver, Player, Step)
  44. if Step == 1 then
  45. Step1Complete(Quest, QuestGiver, Player)
  46. elseif Step == 2 then
  47. Step2Complete(Quest, QuestGiver, Player)
  48. elseif Step == 3 then
  49. QuestComplete(Quest, QuestGiver, Player)
  50. end
  51. end