BartenderIcebrew.lua 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. --[[
  2. Script Name : SpawnScripts/ScaleYard/BartenderIcebrew.lua
  3. Script Purpose : Bartender Icebrew
  4. Script Author : torsten
  5. Script Date : 2022.07.11
  6. Script Notes :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local BronaThralls = 5630
  10. local IcebrewSecretRecipe = 5692
  11. local BlindTasteTest = 5693
  12. function spawn(NPC)
  13. ProvidesQuest(NPC, IcebrewSecretRecipe)
  14. ProvidesQuest(NPC, BlindTasteTest)
  15. end
  16. function respawn(NPC)
  17. spawn(NPC)
  18. end
  19. function hailed(NPC, Spawn)
  20. if not HasQuest(Spawn, IcebrewSecretRecipe) and not HasCompletedQuest(Spawn, IcebrewSecretRecipe) then
  21. Dialog11(NPC, Spawn)
  22. end
  23. if HasCompletedQuest(Spawn, IcebrewSecretRecipe) then
  24. if not HasQuest(Spawn, BlindTasteTest) and not HasCompletedQuest(Spawn, BlindTasteTest) then
  25. Dialog10(NPC, Spawn)
  26. end
  27. end
  28. if GetQuestStep(Spawn, IcebrewSecretRecipe) == 2 then
  29. Dialog3(NPC, Spawn)
  30. SetStepComplete(Spawn, IcebrewSecretRecipe, 2)
  31. end
  32. if GetQuestStep(Spawn, BlindTasteTest) == 2 then
  33. SetStepComplete(Spawn, BlindTasteTest, 2)
  34. end
  35. if HasQuest(Spawn, BronaThralls) and not HasCompletedQuest(Spawn, BronaThralls) then
  36. SetStepComplete(Spawn, BronaThralls, 1)
  37. end
  38. Dialog7(NPC, Spawn)
  39. end
  40. function Dialog7(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. Dialog.New(NPC, Spawn)
  43. Dialog.AddDialog("What are you drinking? Ya better not make it one of those sissy drinks.")
  44. Dialog.AddVoiceover("voiceover/english/bartender_icebrew/fprt_hood06/mer_icebrew.mp3", 3301168939, 3443300522)
  45. Dialog.AddOption("Let me see what you have.")
  46. Dialog.Start()
  47. end
  48. --====================Quest 1
  49. function Dialog11(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. Dialog.New(NPC, Spawn)
  52. Dialog.AddDialog("What are you drinking? Ya better not make it one of those sissy drinks.")
  53. Dialog.AddVoiceover("voiceover/english/bartender_icebrew/fprt_hood06/mer_icebrew.mp3", 3301168939, 3443300522)
  54. Dialog.AddOption("What's the strongest drink you have on tap?", "Dialog2")
  55. Dialog.AddOption("Let me see what you have.")
  56. Dialog.Start()
  57. end
  58. function Dialog2(NPC, Spawn)
  59. FaceTarget(NPC, Spawn)
  60. Dialog.New(NPC, Spawn)
  61. Dialog.AddDialog("I'll give ya a belt of my special homebrew, Wheat Rust Stout. Its bite is so strong you'll think a bear is maulin' ya. Ah, yes ... nothin' like knockin' back a few rounds and slaughtering anyone who gets in your face!")
  62. Dialog.AddVoiceover("voiceover/english/bartender_icebrew/fprt_hood06/quests/bartendericebrew/icebrew_x1_initial.mp3", 323297829, 4256312876)
  63. Dialog.AddOption("Pour me one!", "Dialog5")
  64. Dialog.AddOption("Never mind. I'm the type who likes a fine wine.")
  65. Dialog.Start()
  66. end
  67. function Dialog5(NPC, Spawn)
  68. FaceTarget(NPC, Spawn)
  69. Dialog.New(NPC, Spawn)
  70. Dialog.AddDialog("Well, now, that's a problem. Just enough of the brew is left for one mug, and I don't have rust to make another batch. I ran out of the liquid rust a few hours back and can't make another batch of brew until I get more.")
  71. Dialog.AddVoiceover("voiceover/english/bartender_icebrew/fprt_hood06/quests/bartendericebrew/icebrew_x1_initial2.mp3", 3007403188, 2444158205)
  72. Dialog.AddOption("You actually use rust?", "Dialog4")
  73. Dialog.AddOption("Then I guess I'll look at what else you have.")
  74. Dialog.Start()
  75. end
  76. function Dialog4(NPC, Spawn)
  77. FaceTarget(NPC, Spawn)
  78. Dialog.New(NPC, Spawn)
  79. Dialog.AddDialog("Are you dense, fool? Didn't I say I use it? Me dad brewed ale using molding wheat, but I found a better, tastier way. If you go and get me more rust, I'll give you some coin and throw in a brew on the house. Are you up for the task?")
  80. Dialog.AddVoiceover("voiceover/english/bartender_icebrew/fprt_hood06/quests/bartendericebrew/icebrew_x1_initial3.mp3", 2459588237, 3538627268)
  81. Dialog.AddOption("I sure am. Where should I look for it?", "Dialog12")
  82. Dialog.AddOption("No, I'm too busy. Maybe another time.")
  83. Dialog.Start()
  84. end
  85. function Dialog12(NPC, Spawn)
  86. FaceTarget(NPC, Spawn)
  87. Dialog.New(NPC, Spawn)
  88. 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.")
  89. Dialog.AddVoiceover("voiceover/english/bartender_icebrew/fprt_hood06/quests/bartendericebrew/icebrew_x1_accept.mp3", 2282916525, 4054783281)
  90. Dialog.AddOption("I can do this.", "Dialog9")
  91. Dialog.Start()
  92. end
  93. function Dialog9(NPC, Spawn)
  94. FaceTarget(NPC, Spawn)
  95. Dialog.New(NPC, Spawn)
  96. Dialog.AddDialog("My customers are thirsty! You better get my liquid rust or I'll crush your skull!")
  97. Dialog.AddVoiceover("voiceover/english/bartender_icebrew/fprt_hood06/mer_bartender_icebrew_multhail3_c40a6388.mp3", 3143807370, 1008038806)
  98. Dialog.AddOption("All right!")
  99. Dialog.Start()
  100. OfferQuest(NPC, Spawn, IcebrewSecretRecipe)
  101. end
  102. --===== Quest 1 Step 2
  103. function Dialog3(NPC, Spawn)
  104. FaceTarget(NPC, Spawn)
  105. Dialog.New(NPC, Spawn)
  106. Dialog.AddDialog("What are you drinking? Ya better not make it one of those sissy drinks.")
  107. Dialog.AddVoiceover("voiceover/english/bartender_icebrew/fprt_hood06/mer_icebrew.mp3", 3301168939, 3443300522)
  108. Dialog.AddOption("I have ten jars of liquid rust.", "Dialog6")
  109. Dialog.AddOption("Let me see what you have.")
  110. Dialog.Start()
  111. end
  112. function Dialog6(NPC, Spawn)
  113. FaceTarget(NPC, Spawn)
  114. Dialog.New(NPC, Spawn)
  115. Dialog.AddDialog("Aye, you brought my rust. That's enough for a couple kegs. All it takes is one stein of the stuff and your eyes go blurrier than a warthog in heat! That's why it's my specialty, makes it easy to kick out these awful, drunk lugs when I close up -- they never see the club coming. Here's your coin and your round on the house.")
  116. Dialog.AddVoiceover("voiceover/english/bartender_icebrew/fprt_hood06/quests/bartendericebrew/icebrew_x1_finish.mp3", 4199522555, 1288818625)
  117. Dialog.AddOption("Thanks!")
  118. Dialog.Start()
  119. end
  120. --============Quest 2
  121. function Dialog10(NPC, Spawn)
  122. FaceTarget(NPC, Spawn)
  123. Dialog.New(NPC, Spawn)
  124. Dialog.AddDialog("What are you drinking? Ya better not make it one of those sissy drinks.")
  125. Dialog.AddVoiceover("voiceover/english/bartender_icebrew/fprt_hood06/mer_icebrew.mp3", 3301168939, 3443300522)
  126. Dialog.AddOption("Were you able to make any more of that Wheat Rust Stout?", "Dialog8")
  127. Dialog.AddOption("Let me see what you have.")
  128. Dialog.Start()
  129. end
  130. function Dialog8(NPC, Spawn)
  131. FaceTarget(NPC, Spawn)
  132. Dialog.New(NPC, Spawn)
  133. Dialog.AddDialog("Aye, I just brewed another batch, but I don't know if it's any good. If it's not perfect then my name isn't Icebrew! Never let anyone say that the Icebrews serve up a weak brew. Perhaps you can help me out again, eh?")
  134. Dialog.AddVoiceover("voiceover/english/bartender_icebrew/fprt_hood06/quests/bartendericebrew/icebrew_x2_initial.mp3", 3718305704, 4001640660)
  135. Dialog.AddOption("Sure. What do you want me to do?", "Dialog13")
  136. Dialog.AddOption("Sorry, I'm a bit busy right now.")
  137. Dialog.Start()
  138. end
  139. function Dialog13(NPC, Spawn)
  140. FaceTarget(NPC, Spawn)
  141. Dialog.New(NPC, Spawn)
  142. 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?")
  143. Dialog.AddVoiceover("voiceover/english/bartender_icebrew/fprt_hood06/quests/bartendericebrew/icebrew_x2_accept.mp3", 1018004755, 1842224270)
  144. Dialog.AddOption("Will do. I'll let you know what he thinks.")
  145. Dialog.Start()
  146. OfferQuest(NPC, Spawn, BlindTasteTest)
  147. end