9
3

reservations_for_a_visitor.lua 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I must speak with innkeeper Valean.", 1, "I must speak with innkeeper Valean about reservations for Taneran.", 11, 2360024)
  13. AddQuestStepCompleteAction(Quest, 1, "CheckIn")
  14. end
  15. --[[function Accepted(Quest, QuestGiver, Player)
  16. conversation = CreateConversation()
  17. PlayFlavor(QuestGiver,"","","",0,0,Player)
  18. AddConversationOption(conversation, "")
  19. StartConversation(conversation, QuestGiver, Player, "")
  20. end ]]--
  21. function Declined(Quest, QuestGiver, Player)
  22. end
  23. function CheckIn(Quest, QuestGiver, Player)
  24. UpdateQuestStepDescription(Quest, 1, "I've made reservations with innkeeper Valean.")
  25. UpdateQuestTaskGroupDescription(Quest, 1, "I've spoken with innkeeper Valean and made reservations for Taneran.")
  26. AddQuestStepChat(Quest, 2, "I need to return to Listalania.", 1, "Listalania should know Taneran's reservation is set at the inn.", 0, 2360011)
  27. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  28. end
  29. function QuestComplete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 2, "I've returned to Listalania.")
  31. UpdateQuestTaskGroupDescription(Quest, 2, "I've returned to Listalania after a making the reservation.")
  32. 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.")
  33. GiveQuestReward(Quest, Player)
  34. end
  35. function Reload(Quest, QuestGiver, Player, Step)
  36. if Step == 1 then
  37. Delivery(Quest, QuestGiver, Player)
  38. elseif Step == 2 then
  39. QuestComplete(Quest, QuestGiver, Player)
  40. end
  41. end