the_lost_religion_of_fallen_gate.lua 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Script Name : Quests/CityofFreeport/the_lost_religion_of_fallen_gate.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.07.13 09:07:58
  5. Script Purpose :
  6. Zone : CityofFreeport, Fallen Gate
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. local QuestItemID = 5487 -- copied glyphs item
  12. function Init(Quest)
  13. AddQuestStep(Quest, 1, "I must find the Gong of Uglan in Fallen Gate.", 1, 100, "I must find the Gong of Uglan in Fallen Gate.", 11)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. local conversation = CreateConversation()
  19. PlayFlavor(QuestGiver, "voiceover/english/optional1/mordgraahl_skullsprain/fprt_north/quests/mordgraahlskullsprain/mordgraahlskullsprain_x1_accept.mp3", "", "", 43853459, 3083967033, Player)
  20. AddConversationOption(conversation, "Very well! Prepare your expeditionary force. I shall return.")
  21. StartConversation(conversation, QuestGiver, Player, "Take this quill and papyrus. Should you find this gong, copy the runes written upon it. If these runes match those I found in ancient texts, then that shall warrant an expedition.")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. -- Add dialog here for when the quest is declined
  25. end
  26. function Deleted(Quest, QuestGiver, Player)
  27. -- Remove any quest specific items here when the quest is deleted
  28. end
  29. function Step1Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 1, "I have found the Gong of Uglan and copied the glyphs.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I have found the Gong of Uglan and copied the glyphs.")
  32. GiveQuestItem(Quest, Player, "I have found the Gong of Uglan and copied the glyphs.", QuestItemID)
  33. AddQuestStepChat(Quest, 2, "I must return the parchment of glyphs to Drund Mordgraahl Skullsprain in the Temple of War.", 1, "I must return the parchment of glyphs to Drund Mordgraahl Skullsprain in the Temple of War.", 11, 5590243)
  34. AddQuestStepCompleteAction(Quest, 2, "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, 2, "I have given the glyph of the Gong of Uglan to the Drund, Skullsprain, in the Temple of War.")
  39. UpdateQuestTaskGroupDescription(Quest, 2, "I have given the glyph of the Gong of Uglan to the Drund, Skullsprain, in the Temple of War.")
  40. UpdateQuestDescription(Quest, "I offered to help Drund Mordgraahl Skullsprain in Freeport find relics of a lost religion in the depths of Fallen Gate. I found the Gong of Uglan and copied the glyphs written upon it. This will provide the Drunds with enough proof to request that the Dismal Rage organizes an expedition into Fallen Gate. ")
  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. QuestComplete(Quest, QuestGiver, Player)
  48. end
  49. end