9
3

icebrews_secret_recipe.lua 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : icebrews_secret_recipe.lua
  3. Script Purpose : Handles the quest, "Icebrew's Secret Recipe"
  4. Script Author : torsten
  5. Script Date : 23.07.2022
  6. Script Notes :
  7. Zone : Scale Yard
  8. Quest Giver : Bartender Icebrew
  9. Preceded by : None
  10. Followed by : Blind Taste Test
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepKill(Quest, 1, "Collect jars of rust monster blood", 10, 100, "Icebrew, the Bartender in Scale Yard, has asked me to gather together ten jars of rust monster blood. He says that the blood is actually liquid rust. I'll take his word for it.", 180, 1240011, 1240013)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. end
  17. function Step1Complete(Quest, QuestGiver, Player)
  18. UpdateQuestStepDescription(Quest, 1, "I have collected the jars.")
  19. UpdateQuestTaskGroupDescription(Quest, 1, "I've collected up the blood from the Rust Monsters that Icebrew wanted. I guess he was right... this blood DOES look like rust.")
  20. AddQuestStepChat(Quest, 2, "I should return to Bartender Icebrew.", 1, "I should bring this rust monster blood to Bartender Icebrew for his brew.", 180, 1390051)
  21. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  22. end
  23. function QuestComplete(Quest, QuestGiver, Player)
  24. UpdateQuestStepDescription(Quest, 2, "I gave Icebrew the blood that I collected.")
  25. UpdateQuestTaskGroupDescription(Quest, 2, "I gave Icebrew the blood that I collected.")
  26. UpdateQuestDescription(Quest, "Icebrew has given me my money and my free beer. I think I'll hold onto the beer for now... it seems more like a weapon than a drink.")
  27. GiveQuestReward(Quest, Player)
  28. end
  29. function Accepted(Quest, QuestGiver, Player)
  30. FaceTarget(QuestGiver, Player)
  31. Dialog.New(QuestGiver, Player)
  32. Dialog.AddDialog("Go to the Sunken City and slay the rust monsters that lurk there. Kill the beasts and squeeze them with all your might. Out of their bodies should pour about a jar's worth of pure, liquid rust. Come back with as many jars as you can, and we have a deal.")
  33. Dialog.AddVoiceover("voiceover/english/bartender_icebrew/fprt_hood06/quests/bartendericebrew/icebrew_x1_accept.mp3", 2282916525, 4054783281)
  34. Dialog.AddOption("I can do this.", "Dialog9")
  35. Dialog.Start()
  36. end
  37. function Declined(Quest, QuestGiver, Player)
  38. -- Add dialog here for when the quest is declined
  39. end
  40. function Deleted(Quest, QuestGiver, Player)
  41. -- Remove any quest specific items here when the quest is deleted
  42. end
  43. function Reload(Quest, QuestGiver, Player, Step)
  44. if Step == 1 then
  45. Step1Complete(Quest, QuestGiver, Player)
  46. elseif Step == 2 then
  47. QuestComplete(Quest, QuestGiver, Player)
  48. end
  49. end