picnic_basket_for_yola.lua 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : Quests/Baubbleshire/picnic_basket_for_yola.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.19 04:01:42
  5. Script Purpose :
  6. Zone : Baubbleshire
  7. Quest Giver: Tapster Bregun
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. 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)
  14. AddQuestStepCompleteAction(Quest, 1, "Delivery")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. Dialog.New(QuestGiver, Player)
  19. 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!")
  20. Dialog.AddVoiceover("voiceover/english/tapster_bregun/qey_village06/tapsterbregun002.mp3", 895648320,2977770410)
  21. PlayFlavor(QuestGiver,"","","chuckle",0,0,Player)
  22. Dialog.AddOption("Alright. I'll make sure she gets this!")
  23. Dialog.Start()
  24. end
  25. function Declined(Quest, QuestGiver, Player)
  26. end
  27. function Delivery(Quest, QuestGiver, Player)
  28. UpdateQuestStepDescription(Quest, 1, "I delievered Yola's food order.")
  29. UpdateQuestTaskGroupDescription(Quest, 1, "I delivered the picnic basket to Yola Sindlefop.")
  30. AddQuestStepChat(Quest, 2, "I need to return to Bregun.", 1, "Tapster Bregun will be happy to know I delivered Yola's food.", 0, 2380028)
  31. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  32. end
  33. function QuestComplete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "I've returned to Bregun.")
  35. UpdateQuestTaskGroupDescription(Quest, 2, "I've returned to Bregun after a successful delivery.")
  36. 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.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. Delivery(Quest, QuestGiver, Player)
  42. elseif Step == 2 then
  43. QuestComplete(Quest, QuestGiver, Player)
  44. end
  45. end