a_joined_heritage.lua 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : Quests/WillowWood/a_joined_heritage.lua
  3. Script Purpose : Handles the quest, "A Joined Heritage"
  4. Script Author : Scatman
  5. Script Date : 2009.09.26
  6. Zone : The Willow Wood
  7. Quest Giver: Daelyn Twinstar
  8. Preceded by: A Split Heritage (a_split_heritage.lua)
  9. Followed by: Wisdom in the Wild (wisdom_in_the_wild.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I must speak with a human named Milo Faren. Daelyn says he should be in the scribe's shop.", 1, "Daelyn Twinstar has offered to help teach me about Half Elves. He has asked that I speak with a couple of people here within the Willow Wood.", 0, 2370028)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_SpokeWithMilo")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/daelyn_twinstar/qey_village05/quests/daelyn_twinstar/daelyn_twinstar022b.mp3", "", "", 719307287, 3769426706, Player)
  19. AddConversationOption(conversation, "I'll be back.")
  20. StartConversation(conversation, QuestGiver, Player, "Good. Return to me once this is done and we will speak of what you heard.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function Step1_Complete_SpokeWithMilo(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I have spoken with Milo Faren.")
  26. AddQuestStepChat(Quest, 2, "I must speak with an elf named Lyssia Delnara. Daelyn said she is probably on the small overlook near the gates to the Elddar Grove.", 1, "Daelyn Twinstar has offered to help teach me about Half Elves. He has asked that I speak with a couple of people here within the Willow Wood.", 0, 2370029)
  27. AddQuestStepCompleteAction(Quest, 2, "Step2_Complete_SpokeWithLyssia")
  28. end
  29. function Step2_Complete_SpokeWithLyssia(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 2, "I have spoken with Lyssia.")
  31. AddQuestStepChat(Quest, 3, "I should return to Daelyn now that I have spoken to Lyssia and Milo.", 1, "Daelyn Twinstar has offered to help teach me about Half Elves. He has asked that I speak with a couple of people here within the Willow Wood.", 0, 2370037)
  32. AddQuestStepCompleteAction(Quest, 3, "Quest_Complete")
  33. end
  34. function Quest_Complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 3, "I have spoken with Daelyn.")
  36. UpdateQuestTaskGroupDescription(Quest, 1, "I have completed Daelyn's task.")
  37. UpdateQuestDescription(Quest, "Daelyn promised to speak to me about Milo and Lyssia after I help him with an important task.")
  38. GiveQuestReward(Quest, Player)
  39. end
  40. function Reload(Quest, QuestGiver, Player, Step)
  41. if Step == 1 then
  42. Step1_Complete_SpokeWithMilo(Quest, QuestGiver, Player)
  43. elseif Step == 2 then
  44. Step2_Complete_SpokeWithLyssia(Quest, QuestGiver, Player)
  45. end
  46. end