any_messages_for_jendan_.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : Quests/TheWillowWood/any_messages_for_jendan_.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.02.15 06:02:22
  5. Script Purpose :
  6. Zone : TheWillowWood
  7. Quest Giver: Jendan Greenthorn
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to go to Innkeeper Yeoni.", 1, "I should take Jendan's note to Innkeeper Yeoni in the Willow Wood.", 75, 2370012)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. -- Add dialog here for when the quest is accepted
  17. end
  18. function Declined(Quest, QuestGiver, Player)
  19. -- Add dialog here for when the quest is declined
  20. end
  21. function Deleted(Quest, QuestGiver, Player)
  22. -- Remove any quest specific items here when the quest is deleted
  23. end
  24. function Step1Complete(Quest, QuestGiver, Player)
  25. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  26. UpdateQuestStepDescription(Quest, 1, "I took Jendan's note to Innkeeper Yeoni.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I took Jendan's note to Innkeeper Yeoni.")
  28. AddQuestStepChat(Quest, 2, "I need to return to Jendan Greenthorn.", 1, "I need to let Jendan know there was no message for him at the inn.", 0, 2370035)
  29. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  30. end
  31. function QuestComplete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 2, "I returned to Jendan Greenthorn.")
  33. UpdateQuestTaskGroupDescription(Quest, 2, "I returned to Jendan Greenthorn.")
  34. UpdateQuestDescription(Quest, "I talked with Innkeeper Yeoni and told Jendan that she didn't have any messages for him. She said that Jendan asks if he has any messages at least twice a day. I hope Jendan hears from his brother soon.")
  35. GiveQuestReward(Quest, Player)
  36. end
  37. function Reload(Quest, QuestGiver, Player, Step)
  38. if Step == 1 then
  39. Step1Complete(Quest, QuestGiver, Player)
  40. end
  41. if Step == 2 then
  42. QuestComplete(Quest, QuestGiver, Player)
  43. end
  44. end