faeadaens_dinner_message.lua 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I must speak with Innkeeper Valean.", 1, "I need to deliver Faeadaen's message to Innkeeper Valean.", 11, 2360024)
  13. AddQuestStepCompleteAction(Quest, 1, "ValeanTold")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. end
  17. function Declined(Quest, QuestGiver, Player)
  18. end
  19. function ValeanTold(Quest, QuestGiver, Player)
  20. UpdateQuestStepDescription(Quest, 1, "I gave Innkeeper Valean the message.")
  21. UpdateQuestTaskGroupDescription(Quest, 1, "I gave Innkeeper Valean the message that Faeadaen won't be able to join him for dinner tonight.")
  22. AddQuestStepChat(Quest, 2, "I need to return to Faeadaen.", 1, "I should tell Faeadaen I delievered the message.", 0, 2360022)
  23. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  24. end
  25. function QuestComplete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 2, "I returned to Faeadaen.")
  27. UpdateQuestTaskGroupDescription(Quest, 2, "I told Faeadaen I delivered her message.")
  28. UpdateQuestDescription(Quest, "I told Innkeeper Valean that Faeadaen could not make the dinner appointment. He understood that she had to work late.")
  29. GiveQuestReward(Quest, Player)
  30. end
  31. function Reload(Quest, QuestGiver, Player, Step)
  32. if Step == 1 then
  33. QuestComplete(Quest, QuestGiver, Player)
  34. end
  35. end