ruins_of_varsoon_investigation_of_the_mausoleum.lua 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : ruins_of_varsoon_investigation_of_the_mausoleum.lua
  3. Script Purpose : Handles the quest, "Ruins of Varsoon: Investigation of the Mausoleum"
  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. AddQuestStepLocation(Quest, 1, "I need to investigate Varsoon's old tomb.", 1, "I must go to the tomb that once held the lich Varsoon just north of Qeynos.", 11, 362, -19, -662)
  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 investigated Varsoon's old tomb.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I've listened to the wailings of the dead in Varsoon's old tomb and have information to relay.")
  28. AddQuestStepChat(Quest, 2, "I need to speak with Zaen Kalystir.", 1, "I must return to the Vermin's Snye beneath the streets of Qeynos to speak with Zaen.", 11, 2000015)
  29. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  30. end
  31. function QuestComplete(Quest, QuestGiver, Player)
  32. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  33. UpdateQuestStepDescription(Quest, 2, "I've spoken with Zaen Kalystir.")
  34. UpdateQuestTaskGroupDescription(Quest, 2, "I've relayed the information I have from the tomb to Zaen Kalystir.")
  35. UpdateQuestDescription(Quest, "I managed to return safely to Zaen Kalystir, despite being accosted by the undead inside the tomb. The dead spoke of Varsoon, but strangely, they mentioned he might be trapped again. This does bear further investigation.")
  36. GiveQuestReward(Quest, Player)
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. Step1Complete(Quest, QuestGiver, Player)
  41. elseif Step == 2 then
  42. QuestComplete(Quest, QuestGiver, Player)
  43. end
  44. end