faeadaens_dinner_message.lua 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : Quests/Castleview/faeadaens_dinner_message.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.24
  5. Script Purpose :
  6. Zone : Castleview
  7. Quest Giver: Entertainer Faeadaen
  8. Preceded by: None
  9. Followed by: None
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I must speak with Innkeeper Valean.", 1, "I need to deliver Faeadaen's message to Innkeeper Valean.", 11, 2360024)
  14. AddQuestStepCompleteAction(Quest, 1, "ValeanTold")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. Dialog.New(QuestGiver, Player)
  19. 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.")
  20. Dialog.AddVoiceover("voiceover/english/entertainer_faeadaen/qey_village04/entertainerfaeadaen000.mp3", 3630263809, 612433831)
  21. PlayFlavor(QuestGiver, "", "", "agree", 0,0 , Player)
  22. Dialog.AddOption( "I will let Valean know that you can't make it.")
  23. Dialog.Start()
  24. end
  25. function Declined(Quest, QuestGiver, Player)
  26. end
  27. function ValeanTold(Quest, QuestGiver, Player)
  28. UpdateQuestStepDescription(Quest, 1, "I gave Innkeeper Valean the message.")
  29. UpdateQuestTaskGroupDescription(Quest, 1, "I gave Innkeeper Valean the message that Faeadaen won't be able to join him for dinner tonight.")
  30. AddQuestStepChat(Quest, 2, "I need to return to Faeadaen.", 1, "I should tell Faeadaen I delievered the message.", 0, 2360022)
  31. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  32. end
  33. function QuestComplete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "I returned to Faeadaen.")
  35. UpdateQuestTaskGroupDescription(Quest, 2, "I told Faeadaen I delivered her message.")
  36. UpdateQuestDescription(Quest, "I told Innkeeper Valean that Faeadaen could not make the dinner appointment. He understood that she had to work late.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. QuestComplete(Quest, QuestGiver, Player)
  42. end
  43. end