blind_taste_test.lua 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. --[[
  2. Script Name : blind_taste_test.lua
  3. Script Purpose : Handles the quest, "Blind Taste Test"
  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 : Icebrew's Secret Recipe
  10. Followed by : None
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepChat(Quest, 1, "I need to find a Dark Elf to test the Wheat Rust Stout.", 1, "I should look around the makeshift tavern in Longshadow Alley and find someone to drink this.", 11, 1380015)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. end
  17. function Step1Complete(Quest, QuestGiver, Player)
  18. UpdateQuestStepDescription(Quest, 1, "I have had Modian K'Jarr taste the brew.")
  19. UpdateQuestTaskGroupDescription(Quest, 1, "I found a Dark Elf by the name of Modian K'Jarr to drink the Wheat Rust Stout. He immediately went blind and I think he might have died.")
  20. AddQuestStepChat(Quest, 2, "I should return to Bartender Icebrew.", 1, "I should tell Icebrew not to serve that drink. Well, except to his enemies, I guess.", 11, 1390051)
  21. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  22. end
  23. function QuestComplete(Quest, QuestGiver, Player)
  24. UpdateQuestDescription(Quest, "Icebrew the Bartender was pretty happy about this batch of Wheat Rust Stout. Even though it rendered someone blind and nearly killed them. I, for one, have no plans on drinking anything of his.")
  25. GiveQuestReward(Quest, Player)
  26. end
  27. function Accepted(Quest, QuestGiver, Player)
  28. FaceTarget(QuestGiver, Player)
  29. Dialog.New(QuestGiver, Player)
  30. Dialog.AddDialog("Take this tankard of Stout and head to Longshadow Alley where those prissy little Dark Elves live. The Iksar at my bar drink some strange things, so I can't use them to gauge the quality of my brew. Find one of those little purple freaks in a tavern and offer him a taste. Let me know how he likes it. Got it?")
  31. Dialog.AddVoiceover("voiceover/english/bartender_icebrew/fprt_hood06/quests/bartendericebrew/icebrew_x2_accept.mp3", 1018004755, 1842224270)
  32. Dialog.AddOption("Will do. I'll let you know what he thinks.")
  33. Dialog.Start()
  34. end
  35. function Declined(Quest, QuestGiver, Player)
  36. -- Add dialog here for when the quest is declined
  37. end
  38. function Deleted(Quest, QuestGiver, Player)
  39. -- Remove any quest specific items here when the quest is deleted
  40. end
  41. function Reload(Quest, QuestGiver, Player, Step)
  42. if Step == 1 then
  43. Step1Complete(Quest, QuestGiver, Player)
  44. elseif Step == 2 then
  45. QuestComplete(Quest, QuestGiver, Player)
  46. end
  47. end