1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- --[[
- Script Name : Quests/Castleview/faeadaens_dinner_message.lua
- Script Author : Dorbin
- Script Date : 2022.01.24
- Script Purpose :
- Zone : Castleview
- Quest Giver: Entertainer Faeadaen
- Preceded by: None
- Followed by: None
- --]]
- require "SpawnScripts/Generic/DialogModule"
- function Init(Quest)
- AddQuestStepChat(Quest, 1, "I must speak with Innkeeper Valean.", 1, "I need to deliver Faeadaen's message to Innkeeper Valean.", 11, 2360024)
- AddQuestStepCompleteAction(Quest, 1, "ValeanTold")
-
- end
- function Accepted(Quest, QuestGiver, Player)
- FaceTarget(QuestGiver, Player)
- Dialog.New(QuestGiver, Player)
- Dialog.AddDialog("Customers love my magic tricks! Actually, a little too much. Bulurg asked me to work late tonight. Could you ask Valean at the inn and let me know I can't dine with him tonight? I appreciate your help.")
- Dialog.AddVoiceover("voiceover/english/entertainer_faeadaen/qey_village04/entertainerfaeadaen000.mp3", 3630263809, 612433831)
- PlayFlavor(QuestGiver, "", "", "agree", 0,0 , Player)
- Dialog.AddOption( "I will let Valean know that you can't make it.")
- Dialog.Start()
- end
- function Declined(Quest, QuestGiver, Player)
- end
- function ValeanTold(Quest, QuestGiver, Player)
- UpdateQuestStepDescription(Quest, 1, "I gave Innkeeper Valean the message.")
- UpdateQuestTaskGroupDescription(Quest, 1, "I gave Innkeeper Valean the message that Faeadaen won't be able to join him for dinner tonight.")
- AddQuestStepChat(Quest, 2, "I need to return to Faeadaen.", 1, "I should tell Faeadaen I delievered the message.", 0, 2360022)
- AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
- end
-
- function QuestComplete(Quest, QuestGiver, Player)
- UpdateQuestStepDescription(Quest, 2, "I returned to Faeadaen.")
- UpdateQuestTaskGroupDescription(Quest, 2, "I told Faeadaen I delivered her message.")
- UpdateQuestDescription(Quest, "I told Innkeeper Valean that Faeadaen could not make the dinner appointment. He understood that she had to work late.")
- GiveQuestReward(Quest, Player)
- end
- function Reload(Quest, QuestGiver, Player, Step)
- if Step == 1 then
- QuestComplete(Quest, QuestGiver, Player)
- end
- end
|