9
3

delving_into_fallen_gate.lua 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : Quests/TheCommonlands/delving_into_fallen_gate.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.07.20 07:07:50
  5. Script Purpose :
  6. Zone : TheCommonlands
  7. Quest Giver: Tundis N'oxyle
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I must find a Teir'Dal journal", 1, 50, "I'm looking for the journal of one of the inhabitants of the old Neriak Foreign Quarter, an area that is now known as the Fallen Gate. The battlemages of ages past have been known to keep journals accounting all that transpires.", 75, 1190052)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. local conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/tundis_n_oxyle/commonlands/quests/tundisnoxyle/qst_tundisnoxyle_x1_accept.mp3", "", "", 1593263968, 323559058, Player)
  19. AddConversationOption(conversation, "I will return then, and triumph where others have failed.")
  20. StartConversation(conversation, QuestGiver, Player, "Return to me when you have found something of note. I am particularly interested in pieces of lore, not trinkets. Many Teir'dal of that time kept journals, perhaps you can find one that may be of use to me.")
  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 have found a Teir'Dal journal.")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I've successfully recovered a journal from the remains of an undead inhabitant of the Fallen Gate.")
  31. AddQuestStepChat(Quest, 2, "I should return to Tundis N'oxyle", 1, "I've found a Teir'dal journal in the ruins, I should return to Tundis with my find.", 11, 330394)
  32. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  33. end
  34. function QuestComplete(Quest, QuestGiver, Player)
  35. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  36. UpdateQuestStepDescription(Quest, 2, "I've spoken with Tundis N'oxyle")
  37. UpdateQuestTaskGroupDescription(Quest, 2, "I've returned the journal I found in the Fallen Gate to Tundis.")
  38. UpdateQuestDescription(Quest, "I uncovered one of the journals of the inhabitants of Neriak, and returned with it to Tundis N'oxyle. I anticipated his reaction to such valuable information would under-play the significance of the find. There was the vaguest hint of surprise and lack of comprehension as he leafed through the book.")
  39. GiveQuestReward(Quest, Player)
  40. end
  41. function Reload(Quest, QuestGiver, Player, Step)
  42. if Step == 1 then
  43. Step1Complete(Quest, QuestGiver, Player)
  44. elseif Step == 2 then
  45. QuestComplete(Quest, QuestGiver, Player)
  46. end
  47. end