ThickHeadedRuzb.lua 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. --[[
  2. Script Name : SpawnScripts/BigBend/Thick-HeadedRuzb.lua
  3. Script Purpose : Thick-Headed Ruzb
  4. Script Author : torsten
  5. Script Date : 2022.07.12
  6. Script Notes :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local ASubtleReminder = 5637
  10. local GnomoreGnomesteaks = 5642
  11. function spawn(NPC)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. if GetQuestStep(Spawn, ASubtleReminder) == 1 then
  18. Dialog4(NPC, Spawn)
  19. elseif GetQuestStep(Spawn, ASubtleReminder) == 3 then
  20. Dialog3(NPC, Spawn)
  21. elseif GetQuestStep(Spawn, GnomoreGnomesteaks) == 1 then
  22. Dialog5(NPC, Spawn)
  23. end
  24. RandomGreeting(NPC, Spawn)
  25. end
  26. function RandomGreeting(NPC, Spawn)
  27. local choice = MakeRandomInt(1,5)
  28. if choice == 1 then
  29. PlayFlavor(NPC, "", "Wut? NO BOTHER! Ruzb eat now!", "", 0, 0, Spawn, 15)
  30. elseif choice == 2 then
  31. PlayFlavor(NPC, "", "Wnkc JU RUMQXRe Uiqh nzh igiq", "", 0, 0, Spawn, 15)
  32. elseif choice == 3 then
  33. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1032.mp3", 0, 0, Spawn)
  34. elseif choice == 4 then
  35. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1032.mp3", 0, 0, Spawn)
  36. elseif choice == 5 then
  37. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1032.mp3", 0, 0, Spawn)
  38. end
  39. end
  40. function Dialog4(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. Dialog.New(NPC, Spawn)
  43. Dialog.AddDialog("Wut? You want gnomesteak too? NO! Get yer own! This'n's mine!")
  44. Dialog.AddVoiceover("thick-headed_ruzb/fprt_hood1/thick_headed_ruzb001.mp3", 2457410040, 155354042)
  45. Dialog.AddLanguage(15)
  46. Dialog.AddOption("Bad Ruzb! Not eat gnome!", "Dialog1")
  47. Dialog.AddOption("You shouldn't be eating that gnome.", "Dialog1")
  48. Dialog.Start()
  49. end
  50. function Dialog1(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. Dialog.New(NPC, Spawn)
  53. Dialog.AddDialog("Wut? Why? Gnome taste sooooooooo gud! I wuves me some gnomesteak!")
  54. Dialog.AddVoiceover("thick-headed_ruzb/fprt_hood1/thick_headed_ruzb002.mp3", 3199427179, 3674341166)
  55. Dialog.AddLanguage(15)
  56. Dialog.AddOption("No! BAD! I get you sometin' ta eat instead!", "Dialog7")
  57. Dialog.AddOption("You know, if you eat the gnomes, the guards will come. And then you'll get no more gnome, ever again. I'll bring you something proper to chew on.")
  58. Dialog.Start()
  59. end
  60. function Dialog7(NPC, Spawn)
  61. FaceTarget(NPC, Spawn)
  62. Dialog.New(NPC, Spawn)
  63. Dialog.AddDialog("Ruzb not so shure... but... ok... me trust.")
  64. Dialog.AddVoiceover("thick-headed_ruzb/fprt_hood1/thick_headed_ruzb003.mp3", 3847692344, 2888894649)
  65. Dialog.AddLanguage(15)
  66. Dialog.AddOption("I be right back. You stay here!")
  67. Dialog.AddOption("You'll enjoy this. Quite a special treat. Trust me.")
  68. Dialog.Start()
  69. SetStepComplete(Spawn, ASubtleReminder, 1)
  70. end
  71. --================
  72. function Dialog3(NPC, Spawn)
  73. FaceTarget(NPC, Spawn)
  74. Dialog.New(NPC, Spawn)
  75. Dialog.AddDialog("Youz back! Wut you bring Ruzb? Something gud? Me hopes!")
  76. Dialog.AddVoiceover("thick-headed_ruzb/fprt_hood1/thick_headed_ruzb004.mp3", 1019593479, 1907245)
  77. Dialog.AddLanguage(15)
  78. Dialog.AddOption("Yah! Gud dorf chunks! Fresh from Skagga!", "Dialog2")
  79. Dialog.AddOption("I brought you some of Skagga's best dwarf chunks.", "Dialog2")
  80. Dialog.Start()
  81. end
  82. function Dialog2(NPC, Spawn)
  83. FaceTarget(NPC, Spawn)
  84. Dialog.New(NPC, Spawn)
  85. Dialog.AddDialog("Huh... not so shure... taste like gnome?")
  86. Dialog.AddVoiceover("thick-headed_ruzb/fprt_hood1/thick_headed_ruzb005.mp3", 1199397367, 3596813361)
  87. Dialog.AddLanguage(15)
  88. Dialog.AddOption("Better, BETTER! Dis three hunnerd prozent reel dorf!", "Dialog6")
  89. Dialog.AddOption("Oh, trust me Ruzb, you've never had anything like this before...")
  90. Dialog.Start()
  91. end
  92. function Dialog6(NPC, Spawn)
  93. FaceTarget(NPC, Spawn)
  94. Dialog.New(NPC, Spawn)
  95. Dialog.AddDialog("Ok, Ruzb try eatin' da dorfie chunks! Fank 'ou!")
  96. Dialog.AddVoiceover("thick-headed_ruzb/fprt_hood1/thick_headed_ruzb006.mp3", 2791874278, 2328425868)
  97. Dialog.AddLanguage(15)
  98. Dialog.AddOption("Munch, munch, munch! Eats up!")
  99. Dialog.AddOption("Enjoy!")
  100. Dialog.Start()
  101. SetStepComplete(Spawn, ASubtleReminder, 3)
  102. end
  103. --=============
  104. function Dialog5(NPC, Spawn)
  105. FaceTarget(NPC, Spawn)
  106. Dialog.New(NPC, Spawn)
  107. Dialog.AddDialog("Da gnomie flesh, is nice n' fresh, so super gud! Meez only thot, to eat a lot, so super gud!")
  108. Dialog.AddVoiceover("thick-headed_ruzb/fprt_hood1/thick_headed_ruzb007.mp3", 4123176323, 2225348683)
  109. Dialog.AddLanguage(15)
  110. Dialog.AddOption("BAD, BAD, BAD! Me put youz down! NOT EAT DA GNOMES!")
  111. Dialog.AddOption("I'm sorry Ruzb, but this is the end of the line - we just can't have you eating the gnomes.")
  112. Dialog.Start()
  113. SetStepComplete(Spawn, GnomoreGnomesteaks, 1)
  114. end