abolishing_curiosity.lua 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : Quests/Stonestair/abolishing_curiosity.lua
  3. Script Purpose : Handles the quest, "Abolishing Curiosity"
  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 : incantation_oration.lua
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "Speak with Sevri and pick up the herbal mixture from her.", 1, "Speak with Sevri and pick up the mixture she's created.", 11, 1350011)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/vess_al_ishni/fprt_hood02/vesh_alishni045.mp3", "", "", 1857671823, 602774054, Player)
  20. AddConversationOption(conversation, "I wish you well, Vess.")
  21. StartConversation(conversation, QuestGiver, Player, "That is correct. I know we can count on you. Good luck, " .. GetName(Player) .. ".")
  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've picked up the herbal mixutre from Sevri.")
  31. AddQuestStepLocation(Quest, 2, "Enact the barrier.", 5, "Speak with Sevri and pick up the mixture she's created.", 0, 40, -4, -59)
  32. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  33. end
  34. function Step2Complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 1, "I've completed the incantation.")
  36. AddQuestStepChat(Quest, 3, "I need to return to Vess to let him know it is done.", 1, "Speak with Sevri and pick up the mixture she's created.", 11, 1350010)
  37. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  38. end
  39. function QuestComplete(Quest, QuestGiver, Player)
  40. UpdateQuestDescription(Quest, "I've completed the incantation and the barrier looks to be intact. Vess, Sevri, and the others affiliated with the Abbatoirs should now have some privacy, away from the prying eyes of the Stonestair inhabitants.")
  41. GiveQuestReward(Quest, Player)
  42. end
  43. function Reload(Quest, QuestGiver, Player, Step)
  44. if Step == 1 then
  45. QuestComplete(Quest, QuestGiver, Player)
  46. end
  47. end