incantation_oration.lua 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : Quests/Stonestair/incantation_oration.lua
  3. Script Purpose : Handles the quest, "Incantation Oration"
  4. Script Author : QuestParser (Replace this)
  5. Script Date : 6/22/2018
  6. Script Notes :
  7. Zone : Stonestair Byway
  8. Quest Giver :
  9. Preceded by : tweezing_kerra.lua
  10. Followed by : abolishing_curiosity.lua
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "Return to Vess at the dock and speak with him as Sevri asked.", 1, "Speak with Vess at the dock again.", 11, 1350010)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. -- Add dialog here for when the quest is accepted
  18. FaceTarget(QuestGiver, Player)
  19. conversation = CreateConversation()
  20. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/sevri_il_bethod/fprt_hood02/sevri_ilbethod011.mp3", "", "", 1345707092, 3707746556, Player)
  21. AddConversationOption(conversation, "Alright, I'll do that. Good luck with what you're making.", "dlg_30_4")
  22. StartConversation(conversation, QuestGiver, Player, "Wonderful. I'll look into adding this as a component. In the meantime, why don't you head back and talk to Vess? I'm sure he'd like to explain a bit more about what we've gone through here.")
  23. end
  24. function Declined(Quest, QuestGiver, Player)
  25. -- Add dialog here for when the quest is declined
  26. end
  27. function Deleted(Quest, QuestGiver, Player)
  28. -- Remove any quest specific items here when the quest is deleted
  29. end
  30. function Step1Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 1, "I've spoken to Vess.")
  32. AddQuestStepChat(Quest, 2, "I must learn the from Vess.", 1, "Speak with Vess at the dock again.", 11, 1350010)
  33. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  34. end
  35. function QuestComplete(Quest, QuestGiver, Player)
  36. UpdateQuestStepDescription(Quest, 2, "I've learned the incantation from Vess.")
  37. UpdateQuestTaskGroupDescription(Quest, 1, "I've spoken with Vess Al'Ishni again.")
  38. UpdateQuestDescription(Quest, "Vess has taught me an incantation I'll need to use to seal the entrance.")
  39. GiveQuestReward(Quest, Player)
  40. end
  41. function Reload(Quest, QuestGiver, Player, Step)
  42. if Step == 1 then
  43. Step1Complete(Quest, QuestGiver, Player)
  44. end
  45. end