9
3

BartenderIcebrew.lua 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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. FaceTarget(NPC, Spawn)
  21. Dialog.New(NPC, Spawn)
  22. Dialog.AddDialog("What are you drinking? Ya better not make it one of those sissy drinks.")
  23. Dialog.AddVoiceover("voiceover/english/bartender_icebrew/fprt_hood06/mer_icebrew.mp3", 3301168939, 3443300522)
  24. if not HasQuest(Spawn, IcebrewSecretRecipe) and not HasCompletedQuest(Spawn, IcebrewSecretRecipe) then
  25. Dialog.AddOption("What's the strongest drink you have on tap?", "Dialog2")
  26. end
  27. if CanReceiveQuest(Spawn, BlindTasteTest) then
  28. Dialog.AddOption("Were you able to make any more of that Wheat Rust Stout?", "Dialog8")
  29. end
  30. if GetQuestStep(Spawn, IcebrewSecretRecipe) == 2 then
  31. Dialog.AddOption("I have ten jars of liquid rust.", "Dialog6")
  32. end
  33. if GetQuestStep(Spawn, BlindTasteTest) == 2 then
  34. Dialog.AddOption("TI 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.","BlindTestDone")
  35. end
  36. if HasQuest(Spawn, BronaThralls) and not HasCompletedQuest(Spawn, BronaThralls) then
  37. SetStepComplete(Spawn, BronaThralls, 1)
  38. end
  39. Dialog.AddOption("Let me see what you have.")
  40. Dialog.Start()
  41. end
  42. --====================Quest 1
  43. function Dialog2(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. Dialog.New(NPC, Spawn)
  46. 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!")
  47. Dialog.AddVoiceover("voiceover/english/bartender_icebrew/fprt_hood06/quests/bartendericebrew/icebrew_x1_initial.mp3", 323297829, 4256312876)
  48. Dialog.AddOption("Pour me one!", "Dialog5")
  49. Dialog.AddOption("Never mind. I'm the type who likes a fine wine.")
  50. Dialog.Start()
  51. end
  52. function Dialog5(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. Dialog.New(NPC, Spawn)
  55. 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.")
  56. Dialog.AddVoiceover("voiceover/english/bartender_icebrew/fprt_hood06/quests/bartendericebrew/icebrew_x1_initial2.mp3", 3007403188, 2444158205)
  57. PlayFlavor(NPC,"","","confused",0,0,Spawn)
  58. Dialog.AddOption("You actually use rust?", "Dialog4")
  59. Dialog.AddOption("Then I guess I'll look at what else you have.")
  60. Dialog.Start()
  61. end
  62. function Dialog4(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. Dialog.New(NPC, Spawn)
  65. 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?")
  66. Dialog.AddVoiceover("voiceover/english/bartender_icebrew/fprt_hood06/quests/bartendericebrew/icebrew_x1_initial3.mp3", 2459588237, 3538627268)
  67. PlayFlavor(NPC,"","","stare",0,0,Spawn)
  68. Dialog.AddOption("I sure am. Where should I look for it?", "Dialog12")
  69. Dialog.AddOption("No, I'm too busy. Maybe another time.")
  70. Dialog.Start()
  71. end
  72. function Dialog12(NPC, Spawn)
  73. OfferQuest(NPC, Spawn, IcebrewSecretRecipe)
  74. end
  75. function Dialog9(NPC, Spawn)
  76. FaceTarget(NPC, Spawn)
  77. Dialog.New(NPC, Spawn)
  78. Dialog.AddDialog("My customers are thirsty! You better get my liquid rust or I'll crush your skull!")
  79. Dialog.AddVoiceover("voiceover/english/bartender_icebrew/fprt_hood06/mer_bartender_icebrew_multhail3_c40a6388.mp3", 3143807370, 1008038806)
  80. PlayFlavor(NPC,"","","shakefist",0,0,Spawn)
  81. Dialog.AddOption("All right!")
  82. Dialog.Start()
  83. end
  84. --===== Quest 1 Step 2
  85. function Dialog3(NPC, Spawn)
  86. FaceTarget(NPC, Spawn)
  87. Dialog.New(NPC, Spawn)
  88. Dialog.AddDialog("What are you drinking? Ya better not make it one of those sissy drinks.")
  89. Dialog.AddVoiceover("voiceover/english/bartender_icebrew/fprt_hood06/mer_icebrew.mp3", 3301168939, 3443300522)
  90. Dialog.AddOption("Let me see what you have.")
  91. Dialog.Start()
  92. end
  93. function Dialog6(NPC, Spawn)
  94. SetStepComplete(Spawn, IcebrewSecretRecipe, 2)
  95. FaceTarget(NPC, Spawn)
  96. Dialog.New(NPC, Spawn)
  97. 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.")
  98. Dialog.AddVoiceover("voiceover/english/bartender_icebrew/fprt_hood06/quests/bartendericebrew/icebrew_x1_finish.mp3", 4199522555, 1288818625)
  99. PlayFlavor(NPC,"","","agree",0,0,Spawn)
  100. Dialog.AddOption("Thanks!")
  101. Dialog.Start()
  102. end
  103. --============Quest 2
  104. function Dialog10(NPC, Spawn)
  105. FaceTarget(NPC, Spawn)
  106. Dialog.New(NPC, Spawn)
  107. Dialog.AddDialog("What are you drinking? Ya better not make it one of those sissy drinks.")
  108. Dialog.AddVoiceover("voiceover/english/bartender_icebrew/fprt_hood06/mer_icebrew.mp3", 3301168939, 3443300522)
  109. Dialog.AddOption("Let me see what you have.")
  110. Dialog.Start()
  111. end
  112. function Dialog8(NPC, Spawn)
  113. FaceTarget(NPC, Spawn)
  114. Dialog.New(NPC, Spawn)
  115. 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?")
  116. Dialog.AddVoiceover("voiceover/english/bartender_icebrew/fprt_hood06/quests/bartendericebrew/icebrew_x2_initial.mp3", 3718305704, 4001640660)
  117. PlayFlavor(NPC,"","","agree",0,0,Spawn)
  118. Dialog.AddOption("Sure. What do you want me to do?", "Dialog13")
  119. Dialog.AddOption("Sorry, I'm a bit busy right now.")
  120. Dialog.Start()
  121. end
  122. function Dialog13(NPC, Spawn)
  123. OfferQuest(NPC, Spawn, BlindTasteTest)
  124. end
  125. function BlindTestDone(NPC,Spawn)
  126. SetStepComplete(Spawn, BlindTasteTest, 2)
  127. FaceTarget(NPC, Spawn)
  128. Dialog.New(NPC, Spawn)
  129. Dialog.AddDialog("Fell over blind, did he? Bah! Sissy little elves ... he'll get over it with bed rest. Well, that means this is a batch worth serving. BAH! Poison is the wine those sissies drink! This is a REAL BREW! Here's your coin. Now, order a drink and shut up.")
  130. Dialog.AddVoiceover("voiceover/english/bartender_icebrew/fprt_hood06/quests/bartendericebrew/icebrew_x2_finish.mp3", 738559030, 4291660656)
  131. PlayFlavor(NPC,"","","chuckle",0,0,Spawn)
  132. Dialog.AddOption("Sure. What do you want me to do?", "Dialog13")
  133. Dialog.AddOption("Sorry, I'm a bit busy right now.")
  134. Dialog.Start()
  135. end