123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- --[[
- Script Name : Quests/Baubbleshire/picnic_basket_for_yola.lua
- Script Author : Dorbin
- Script Date : 2022.01.19 04:01:42
- Script Purpose :
- Zone : Baubbleshire
- Quest Giver: Tapster Bregun
- Preceded by: None
- Followed by:
- --]]
- require "SpawnScripts/Generic/DialogModule"
- function Init(Quest)
- AddQuestStepChat(Quest, 1, "I need to deliver a basket to Yola.", 1, "I need to deliver a picnic basket to Yola over by the pond.", 2695, 2380032)
- AddQuestStepCompleteAction(Quest, 1, "Delivery")
- end
- function Accepted(Quest, QuestGiver, Player)
- FaceTarget(QuestGiver, Player)
- Dialog.New(QuestGiver, Player)
- Dialog.AddDialog("I prepared a picnic basket for Yola, and I need it delivered to her at the little lake. You'll find her at the lunch spot. I'll spot you a few coins if you're quick on your toes! Hehe. Off with ya!")
- Dialog.AddVoiceover("voiceover/english/tapster_bregun/qey_village06/tapsterbregun002.mp3", 895648320,2977770410)
- PlayFlavor(QuestGiver,"","","chuckle",0,0,Player)
- Dialog.AddOption("Alright. I'll make sure she gets this!")
- Dialog.Start()
- end
- function Declined(Quest, QuestGiver, Player)
- end
- function Delivery(Quest, QuestGiver, Player)
- UpdateQuestStepDescription(Quest, 1, "I delievered Yola's food order.")
- UpdateQuestTaskGroupDescription(Quest, 1, "I delivered the picnic basket to Yola Sindlefop.")
- AddQuestStepChat(Quest, 2, "I need to return to Bregun.", 1, "Tapster Bregun will be happy to know I delivered Yola's food.", 0, 2380028)
- AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
- end
- function QuestComplete(Quest, QuestGiver, Player)
- UpdateQuestStepDescription(Quest, 2, "I've returned to Bregun.")
- UpdateQuestTaskGroupDescription(Quest, 2, "I've returned to Bregun after a successful delivery.")
- UpdateQuestDescription(Quest, "I delivered the picnic basket to Yola over at the pond. She was quite happy with the delivery, and Bregun was pleased when I came back.")
- GiveQuestReward(Quest, Player)
- end
- function Reload(Quest, QuestGiver, Player, Step)
- if Step == 1 then
- Delivery(Quest, QuestGiver, Player)
- elseif Step == 2 then
- QuestComplete(Quest, QuestGiver, Player)
- end
- end
|