reservations_for_a_visitor.lua 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : Quests/CastleviewHamlet/reservations_for_a_visitor.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.25 02:01:44
  5. Script Purpose :
  6. Zone : CastleviewHamlet
  7. Quest Giver: Listalania
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I must speak with innkeeper Valean.", 1, "I must speak with innkeeper Valean about reservations for Taneran.", 11, 2360024)
  14. AddQuestStepCompleteAction(Quest, 1, "CheckIn")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. Dialog.New(QuestGiver, Player)
  19. Dialog.AddDialog("You see, I invited Taneran for a visit, but my house is too small for both of us. Would you be kind and reserve a room at the inn for him?")
  20. Dialog.AddVoiceover("voiceover/english/listalania_vainederian/qey_village04/listalaniavainederian001.mp3",2137369666, 3214169291)
  21. PlayFlavor(QuestGiver, "", "", "sniff", 0,0 , Player)
  22. Dialog.AddOption("I will do so immediately.")
  23. Dialog.Start()
  24. end
  25. function Declined(Quest, QuestGiver, Player)
  26. end
  27. function CheckIn(Quest, QuestGiver, Player)
  28. UpdateQuestStepDescription(Quest, 1, "I've made reservations with innkeeper Valean.")
  29. UpdateQuestTaskGroupDescription(Quest, 1, "I've spoken with innkeeper Valean and made reservations for Taneran.")
  30. AddQuestStepChat(Quest, 2, "I need to return to Listalania.", 1, "Listalania should know Taneran's reservation is set at the inn.", 0, 2360011)
  31. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  32. end
  33. function QuestComplete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "I've returned to Listalania.")
  35. UpdateQuestTaskGroupDescription(Quest, 2, "I've returned to Listalania after a making the reservation.")
  36. UpdateQuestDescription(Quest, "I made arrangements with Innkeeper Valean for Taneran as per Listalania's instructions. Valean mentioned they will likely be wed soon... if what he says is true they do make a lovely couple.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. Delivery(Quest, QuestGiver, Player)
  42. elseif Step == 2 then
  43. QuestComplete(Quest, QuestGiver, Player)
  44. end
  45. end