9
3

ruins_of_varsoon_revealing_the_entrance.lua 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. --[[
  2. Script Name : ruins_of_varsoon_revealing_the_entrance.lua
  3. Script Purpose : Handles the quest, "Ruins of Varsoon: Revealing the Entrance"
  4. Script Author : premierio015
  5. Script Date : 17.05.2020
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Vermin's Snye
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepZoneLoc(Quest, 1, "I need to find the hidden entrance to Varsoon's lair.", 10, "I must find the location of the hidden entrance to Varsoon's new lair in the Thundering Steppes.", 11, -493, 0, 1032, 249)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. -- Add dialog here for when the quest is accepted
  18. end
  19. function Declined(Quest, QuestGiver, Player)
  20. -- Add dialog here for when the quest is declined
  21. end
  22. function Deleted(Quest, QuestGiver, Player)
  23. -- Remove any quest specific items here when the quest is deleted
  24. end
  25. function Step1Complete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I've found the hidden entrance to Varsoon's lair.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I've found the location of the hidden entrance to Varsoon's new lair in the Thundering Steppes.")
  28. AddQuestStepChat(Quest, 2, "I need to speak with Zaen again.", 1, "I must return to Zaen Kalystir in the catacombs to inform him of the lair's location.", 11, 2000015)
  29. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  30. end
  31. function Step2Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 2, "I've spoken to Zaen again.")
  33. UpdateQuestTaskGroupDescription(Quest, 2, "I've returned with the location and informed Zaen of it.")
  34. AddQuestStepKill(Quest, 3, "I need to retrieve the key to the Keep of Immortality.", 1, 100, "I must find the key to Varsoon's lair on the skeletal druid in the Crypt of Betrayal.", 2171, 2010046) -- An Archaic Fury
  35. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  36. end
  37. function Step3Complete(Quest, QuestGiver, Player)
  38. UpdateQuestStepDescription(Quest, 3, "I've retrieved the key from the undead druid.")
  39. UpdateQuestTaskGroupDescription(Quest, 3, "I've found the key to Varsoon's hidden lair in the Crypt of Betrayal.")
  40. AddQuestStepChat(Quest, 4, "I need to speak with Zaen once more.", 1, "I must return to Zaen with the key from the druid.", 11, 2000015)
  41. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  42. end
  43. function QuestComplete(Quest, QuestGiver, Player)
  44. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  45. UpdateQuestStepDescription(Quest, 4, "I've spoken with Zaen once again.")
  46. UpdateQuestTaskGroupDescription(Quest, 4, "I've returned with the key to Zaen Kalystir.")
  47. UpdateQuestDescription(Quest, "Zaen has discharged me to go investigate Varsoon's lair and interrupt the lich's plans. I'm not certain how well this fits with the babbling of the undead I heard in Varsoon's old tomb. I am curious as to whether Zaen may possess an ulterior motive. I will just have to explore the former Keep of Immortality in depth and discern the truth for myself.")
  48. GiveQuestReward(Quest, Player)
  49. end
  50. function Reload(Quest, QuestGiver, Player, Step)
  51. if Step == 1 then
  52. Step1Complete(Quest, QuestGiver, Player)
  53. elseif Step == 2 then
  54. Step2Complete(Quest, QuestGiver, Player)
  55. elseif Step == 3 then
  56. Step3Complete(Quest, QuestGiver, Player)
  57. elseif Step == 4 then
  58. QuestComplete(Quest, QuestGiver, Player)
  59. end
  60. end