delivery_for_fhara.lua 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : Quests/NorthQeynos/delivery_for_fhara.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.11 05:05:11
  5. Script Purpose :
  6. Zone : NorthQeynos
  7. Quest Giver: Baker Voleen
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to deliver a basket to Fhara Hanford.", 1, "I need to get this basket of pastries over to Fhara Hanford.", 915, 2220229)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. local conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/baker_voleen/qey_north/quests/bakervoleen/voleen_x1_accept.mp3", "", "happy", 219256579, 2535249151, Player)
  19. AddConversationOption(conversation, "I'll head that way now.")
  20. StartConversation(conversation, QuestGiver, Player, "Fantastic! Bring this basket to Fhara Hanford at her furniture shop. When you return I'll reward you for your trouble.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function Step1Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I've delivered the basket to Fhara Hanford.")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "Fhara Hanford appreciated the basket from Baker Voleen.")
  31. AddQuestStepChat(Quest, 2, "I need to return to Baker Voleen.", 1, "Voleen needs to know that Fhara recieved her delivery.", 11, 2220025)
  32. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  33. end
  34. function QuestComplete(Quest, QuestGiver, Player)
  35. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  36. UpdateQuestStepDescription(Quest, 2, "I've returned to Baker Voleen.")
  37. UpdateQuestTaskGroupDescription(Quest, 2, "I told Voleen the delivery was successful.")
  38. UpdateQuestDescription(Quest, "The baker who sent me out to Fhara Hanford's shop to deliver a basket of pastries gave me some loaves of bread and a few coins for managing to take her basket of goods to Fhara's Furniture without devouring its contents.")
  39. GiveQuestReward(Quest, Player)
  40. end
  41. function Reload(Quest, QuestGiver, Player, Step)
  42. if Step == 1 then
  43. Step1Complete(Quest, QuestGiver, Player)
  44. elseif Step == 2 then
  45. QuestComplete(Quest, QuestGiver, Player)
  46. end
  47. end