9
3

lendels_grand_lager_delivery.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : Quests/Baubbleshire/lendels_grand_lager_delivery.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.20 04:01:48
  5. Script Purpose :
  6. Zone : Baubbleshire
  7. Quest Giver: Kaldin Deeppockets
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to find Coppershot.", 1, " I need to speak to Bartender Coppershot in Graystone Yard.", 310, 2350038)
  13. AddQuestStepCompleteAction(Quest, 1, "Delivery")
  14. UpdateQuestZone(Quest, "Graystone Yard")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver,"","","hello",0,0,Player)
  19. AddConversationOption(conversation, "Alright, I'll be back soon.")
  20. StartConversation(conversation, QuestGiver, Player, "No sampling on the way! If ya know what I mean.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function Delivery(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I spoke to Coppershot.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I gave Coppershot the jug of Lendel's Grand Lager.")
  27. AddQuestStepChat(Quest, 2, "I need to return to Kaldin Deeppockets.", 1, "This old stein should be a nice surprise for Kaldin.", 3196, 2380031)
  28. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  29. UpdateQuestZone(Quest, "Baubbleshire")
  30. end
  31. function QuestComplete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 2, "I've returned to Kaldin.")
  33. UpdateQuestTaskGroupDescription(Quest, 2, "I've returned to Kaldin and gave him the Rivervale stein.")
  34. UpdateQuestDescription(Quest, "I delivered the jug of Lendel's Grand Lager to Bartender Coppershot in Graystone. He then had me deliver a Fool's Gold stein to Barkeep Deeppockets. He was very pleased with the stein and paid me for my service.")
  35. GiveQuestReward(Quest, Player)
  36. end
  37. function Reload(Quest, QuestGiver, Player, Step)
  38. if Step == 1 then
  39. Delivery(Quest, QuestGiver, Player)
  40. elseif Step == 2 then
  41. QuestComplete(Quest, QuestGiver, Player)
  42. end
  43. end