9
3

gnoll_brew.lua 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : Quests/Blackburrow/gnoll_brew.lua
  3. Script Author : Premierio015
  4. Script Date : 2022.07.12 05:07:38
  5. Script Purpose :
  6. Zone : Blackburrow
  7. Quest Giver: Assisstant Wilabus(170013)
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStep(Quest, 1, "Get a jug of gnoll brew", 1, 100, "I need to find the gnoll brewery and retrieve a jug of their brew for Wilabus.", 11)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. PlayFlavor(QuestGiver, "voiceover/english/assistant_wilabus/blackburrow/assistant_wilabus005.mp3", "", "", 834049646, 2133664377, Player)
  17. local conversation = CreateConversation()
  18. AddConversationOption(conversation, "Ok.")
  19. StartConversation(conversation, QuestGiver, Player, "Oh, that'd be great!! Do me a favor though. Don't mention this to Fribden, eh, you know what I'm saying.")
  20. end
  21. function Declined(Quest, QuestGiver, Player)
  22. -- Add dialog here for when the quest is declined
  23. end
  24. function Deleted(Quest, QuestGiver, Player)
  25. -- Remove any quest specific items here when the quest is deleted
  26. end
  27. function Step1Complete(Quest, QuestGiver, Player)
  28. UpdateQuestStepDescription(Quest, 1, "I found a jug of gnoll brew")
  29. UpdateQuestTaskGroupDescription(Quest, 1, "I found the gnoll brewery and retrieved a jug of their brew for Wilabus.")
  30. AddQuestStepChat(Quest, 2, "Return to Wilabus", 1, "I found the brewery and got the jug, now I need to return to Wilabus.", 11, 170013)
  31. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  32. end
  33. function QuestComplete(Quest, QuestGiver, Player)
  34. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  35. UpdateQuestStepDescription(Quest, 2, "I gave the jug to Wilabus")
  36. UpdateQuestTaskGroupDescription(Quest, 2, "I returned to Wilabus and gave him the jug of gnoll brew.")
  37. UpdateQuestDescription(Quest, "Sure enough, there was a brewery in Blackburrow. This gives a new meaning to the phrase, "The hair of the dog."")
  38. GiveQuestReward(Quest, Player)
  39. end
  40. function Reload(Quest, QuestGiver, Player, Step)
  41. if Step == 1 then
  42. Step1Complete(Quest, QuestGiver, Player)
  43. elseif Step == 2 then
  44. QuestComplete(Quest, QuestGiver, Player)
  45. end
  46. end