recipe_for_duvo.lua 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : Quests/TheElddarGrove/recipe_for_duvo.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.09 03:05:10
  5. Script Purpose :
  6. Zone : TheElddarGrove
  7. Quest Giver: Duvo
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to speak with Penny Goodhearth in North Qeynos. ", 1, "I must speak with Penny Goodhearth at Voleen's Bakery in North Qeynos and retrieve a recipe from her.", 75, 2220030)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. UpdateQuestZone(Quest,"North Qeynos")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. local conversation = CreateConversation()
  19. PlayFlavor(QuestGiver, "voiceover/english/scribe_duvo/qey_elddar/scribeduvo001.mp3", "", "", 2070584741, 1381928487, Player)
  20. AddConversationOption(conversation, "Okay! I'll find Penny for you.")
  21. StartConversation(conversation, QuestGiver, Player, "You must visit the IronForge family and inquire about a recipe of Penny Goodhearth's. Miss Goodhearth promised me a recipe for the most scrumptious muffins, and I'm buried under a mound of papers to scribe! Please, pick up the recipe for me immediately. Now, be on your way!")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. -- Add dialog here for when the quest is declined
  25. end
  26. function Deleted(Quest, QuestGiver, Player)
  27. -- Remove any quest specific items here when the quest is deleted
  28. end
  29. function Step1Complete(Quest, QuestGiver, Player)
  30. UpdateQuestZone(Quest,"The Elddar Grove")
  31. UpdateQuestStepDescription(Quest, 1, "I spoke with Penny Goodhearth.")
  32. UpdateQuestTaskGroupDescription(Quest, 1, "I've picked up the recipe from Penny Goodhearth, the cook of the Ironforge family.")
  33. AddQuestStepChat(Quest, 2, "I need to return to Scribe Duvo in The Elddar Grove. ", 1, "I must deliver this recipie to Duvo atop the Great Tree Arbos in The Elddar Grove.", 75, 2070044)
  34. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  35. end
  36. function QuestComplete(Quest, QuestGiver, Player)
  37. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  38. UpdateQuestStepDescription(Quest, 2, "I returned to Scribe Duvo.")
  39. UpdateQuestTaskGroupDescription(Quest, 2, "I've delivered the recipe to Scribe Duvo, and he seemed quite pleased to learn what his version was missing.")
  40. UpdateQuestDescription(Quest, "I found Penny Goodhearth at Voleen's Bakery in North Qeynos, and have undoubtedly met the busiest two halflings ever. Duvo was so busy that he couldn't even pick up a recipe! He seemed ecstatic about the recipe, and thanked me whole-heartedly for its retrieval.")
  41. GiveQuestReward(Quest, Player)
  42. end
  43. function Reload(Quest, QuestGiver, Player, Step)
  44. if Step == 1 then
  45. Step1Complete(Quest, QuestGiver, Player)
  46. elseif Step == 2 then
  47. QuestComplete(Quest, QuestGiver, Player)
  48. end
  49. end