9
3

offering_help.lua 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : Quests/WillowWood/offering_help.lua
  3. Script Purpose : Handles the quest, "Offering Help"
  4. Script Author : Scatman
  5. Script Date : 2009.09.26
  6. Zone : The Willow Wood
  7. Quest Giver: Aelis
  8. Preceded by: None
  9. Followed by: Tribute Leaves (tribute_leaves.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to speak with Davyn Thornbranch just inside the tunnel from the docks.", 1, "I need to go into the Willow Wood and find Davyn Thornbranch. Once I find him, I must offer to help him.", 0, 2370033)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_TalkedToDavyn")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/aelis/qey_village05/quests/aelis/aelis_intro004.mp3", "", "", 3255317830, 86303468, Player)
  19. AddConversationOption(conversation, "Thank you.")
  20. StartConversation(conversation, QuestGiver, Player, "Follow this tunnel into the Willow Wood. I am confident Davyn is just inside.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function Step1_Complete_TalkedToDavyn(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I have spoken with Davyn Thornbranch.")
  26. AddQuestStepChat(Quest, 2, "I need to return to Aelis on the docks for further instruction about creating Davyn's Tier'Dal tribute.", 1, "I need to go into the Willow Wood and find Davyn Thornbranch. Once I find him, I must offer to help him.", 0, 2370038)
  27. AddQuestStepCompleteAction(Quest, 2, "Quest_Complete")
  28. end
  29. function Quest_Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 2, "I have spoken with Aelis.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I have offered to help Davyn Thornbranch make his Feir'Dal tribute.")
  32. UpdateQuestDescription(Quest, "I have spoken with Davyn and agreed to help him create his tribute. Aelis will guide me through the process.")
  33. GiveQuestReward(Quest, Player)
  34. end
  35. function Reload(Quest, QuestGiver, Player, Step)
  36. if Step == 1 then
  37. Step1_Complete_TalkedToDavyn(Quest, QuestGiver, Player)
  38. end
  39. end