9
3

QeynosAgitator.lua 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. --[[
  2. Script Name : SpawnScripts/Generic/MonsterCallouts/QeynosAgitator.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.12.02 11:12:56
  5. Script Purpose : Missing most VOs from this collection. Still need base halfling and woodelf for both genders.
  6. :
  7. --]]
  8. local HealthCallout = false --REDUCES Half-Health Spam
  9. local CalloutTimer = false --REDUCES Callout Spam
  10. local Dwarf = 2
  11. local Halfling = 7
  12. local Woodelf = 15
  13. function ResetTimer(NPC) -- 7 SECOND PAUSE BETWEEN VOs
  14. SetTempVariable(NPC, "CalloutTimer", "false")
  15. end
  16. function Garbled(NPC,Player)
  17. if GetRace(NPC) == Dwarf then
  18. if GetGender(NPC) ==1 then -- MALE
  19. local choice = MakeRandomInt(1,4)
  20. if choice == 1 then
  21. PlayFlavor(NPC, "voiceover/english/dwarf_qeynos_agitators/ft/dwarf/dwarf_qeynos_agitators_1_garbled_gm_b129f218.mp3", "Let me clear my throat so you can understand.", "", 1491391518, 212658016, Spawn,3)
  22. elseif choice == 2 then
  23. PlayFlavor(NPC, "voiceover/english/barbarian_eco_good_1/ft/barbarian/barbarian_eco_good_1_garbled_gm_1cfda4cd.mp3", "I wonder, do I owe you any coin? I sure hope not!", "", 2853459229, 77062894, Spawn,3)
  24. elseif choice == 3 then
  25. PlayFlavor(NPC, "voiceover/english/barbarian_eco_good_1/ft/barbarian/barbarian_eco_good_1_garbled_gm_51f68cb4.mp3", "The look of your face annoys me! Shove off!", "", 2398080559, 940422767, Spawn,3)
  26. elseif choice == 4 then
  27. PlayFlavor(NPC, "voiceover/english/barbarian_eco_good_1/ft/barbarian/barbarian_eco_good_1_garbled_gm_6360be2b.mp3", "Giving you the cold shoulder this way is great.", "", 263596632, 1162455231, Spawn,3)
  28. end
  29. else
  30. local choice = MakeRandomInt(1,4)-- FEMALE
  31. if choice == 1 then
  32. PlayFlavor(NPC, "voiceover/english/dwarf/ft/dwarf/dwarf_eco_garble_garbled_gf_80515f2f.mp3", "I wonder, do I owe you any coin? I sure hope not!", "", 956006367, 3976653265, Spawn,3)
  33. elseif choice ==2 then
  34. PlayFlavor(NPC, "voiceover/english/dwarf/ft/dwarf/dwarf_eco_garble_garbled_gf_89b5cec2.mp3", "I dont like the look of your face! Off with you!", "", 1376862084, 1663916600, Spawn,3)
  35. elseif choice ==3 then
  36. PlayFlavor(NPC, "voiceover/english/dwarf/ft/dwarf/dwarf_eco_garble_garbled_gf_9729edda.mp3", "Giving you the cold shoulder this way is great.", "", 1602667253, 1907098372, Spawn,3)
  37. elseif choice ==4 then
  38. PlayFlavor(NPC, "voiceover/english/dwarf/ft/dwarf/dwarf_eco_garble_garbled_gf_cb1a6fa8.mp3", "Could really go for a tall pint... and you dont have one.", "", 4293920139, 1771029099, Spawn,3)
  39. end
  40. end
  41. elseif GetRace(NPC) == Halfling then
  42. if GetGender(NPC) ==1 then -- MALE
  43. local choice = MakeRandomInt(1,4)
  44. if choice == 1 then
  45. PlayFlavor(NPC, "voiceover/english/optional3/halfling_corrupted/ft/halfling/halfling_corrupted_1_garbled_gm_43769f72.mp3", "Hilee salee lalow madow", "", 1546052685, 4072580842, Spawn,8)
  46. elseif choice == 2 then
  47. PlayFlavor(NPC, "voiceover/english/halfling_crazed/ft/halfling/halfling_crazed_1_garbled_gm_54e55451.mp3", "Lilleee mabee tarrah roo sakdooo", "", 2087702128, 2642872371, Spawn,8)
  48. elseif choice == 3 then
  49. PlayFlavor(NPC, "voiceover/english/halfling_crazed/ft/halfling/halfling_crazed_1_garbled_gm_7b0d27d5.mp3", "Rumtum tugger sah bim lugger", "", 3679068852, 490576745, Spawn,8)
  50. elseif choice == 4 then
  51. PlayFlavor(NPC, "voiceover/english/halfling_crazed/ft/halfling/halfling_crazed_1_garbled_gm_823f1021.mp3", "Jum tum ribbyflum! Slipper chipper tip tip bipper!", "", 374813993, 4058118752, Spawn,8)
  52. end
  53. else
  54. local choice = MakeRandomInt(1,4)
  55. if choice == 1 then -- FEMALE
  56. PlayFlavor(NPC, "voiceover/english/halfling_corrupted/ft/halfling/halfling_corrupted_1_garbled_gf_54e55451.mp3", "Lilleee mabee tarrah roo sakdooo", "", 3766403918, 1171422621, Spawn,8)
  57. elseif choice == 2 then
  58. PlayFlavor(NPC, "voiceover/english/halfling_base_1/ft/halfling/halfling_base_1_1_garbled_gf_823f1021.mp3", "garbled text not to be translated", "", 3051197299, 2401133915, Spawn,8)
  59. elseif choice == 3 then
  60. PlayFlavor(NPC, "voiceover/english/halfling_corrupted/ft/halfling/halfling_corrupted_1_garbled_gf_7b0d27d5.mp3", "Rumtum tugger sah bim lugger", "", 34036833, 3802622885, Spawn,8)
  61. elseif choice == 4 then
  62. PlayFlavor(NPC, "voiceover/english/halfling_corrupted/ft/halfling/halfling_corrupted_1_garbled_gf_823f1021.mp3", "Jum tum ribbyflum! Slipper chipper tip tip bipper!", "", 1303270959, 3751358873, Spawn,8)
  63. end
  64. end
  65. elseif GetRace(NPC) == Woodelf then
  66. if GetGender(NPC) ==1 then -- MALE
  67. local choice = MakeRandomInt(1,3)
  68. if choice == 1 then
  69. PlayFlavor(NPC, "voiceover/english/woodelf_forrest_wardens/ft/woodelf/woodelf_forrest_wardens_1_garbled_gm_f197012c.mp3", "Molokeeenakah watroo olozamm", "", 2097905045, 1612835219, Spawn, 16)
  70. elseif choice == 2 then
  71. PlayFlavor(NPC, "voiceover/english/woodelf_forrest_wardens/ft/woodelf/woodelf_forrest_wardens_1_garbled_gm_8a0bc5f8.mp3", "Kaamahaneah queeeola chi sa", "", 1811305493, 2624435147, Spawn, 16)
  72. elseif choice == 3 then
  73. PlayFlavor(NPC, "voiceover/english/woodelf_forrest_wardens/ft/woodelf/woodelf_forrest_wardens_1_garbled_gm_1b979d55.mp3", "Aleeda merende wovesta", "", 2513619643, 1543099294, Spawn, 16)
  74. end
  75. else -- FEMALE
  76. local choice = MakeRandomInt(1,3)
  77. if choice == 1 then
  78. PlayFlavor(NPC, "voiceover/english/highelf_base_1/ft/highelf/highelf_base_1_1_garbled_gf_fde7b8f7.mp3", "Kaamahaneah queeeola chi sa", "", 595061935, 2035542297, Spawn, 16)
  79. elseif choice == 2 then
  80. PlayFlavor(NPC, "voiceover/english/highelf_base_1/ft/highelf/highelf_base_1_1_garbled_gf_755db2c3.mp3", "Aleeda merende wovesta", "", 1930935604, 3692814157, Spawn, 16)
  81. elseif choice == 3 then
  82. PlayFlavor(NPC, "voiceover/english/highelf_base_1/ft/highelf/highelf_base_1_1_garbled_gf_d396c4fc.mp3", "Molokeeenakah watroo olozamm", "", 1717100103, 894236173, Spawn, 16)
  83. end
  84. end
  85. end
  86. end
  87. function aggro(NPC,Player)
  88. SetTempVariable(NPC, "CalloutTimer", "false")
  89. if GetTempVariable(NPC, "CalloutTimer")== "false" and math.random(0,100) <=33 and IsPlayer(Player) then
  90. SetTempVariable(NPC, "CalloutTimer", "true")
  91. AddTimer(NPC,10000,"ResetTimer")
  92. if GetRace(NPC) == Dwarf then
  93. if not HasLanguage(Player,3)then
  94. Garbled(NPC,Player)
  95. else
  96. aggroCall(NPC,Player)
  97. end
  98. elseif GetRace(NPC) == Halfling then
  99. if not HasLanguage(Player,8)then
  100. Garbled(NPC,Player)
  101. else
  102. aggroCall(NPC,Player)
  103. end
  104. elseif GetRace(NPC) == Woodelf then
  105. if not HasLanguage(Player,16)then
  106. Garbled(NPC,Player)
  107. else
  108. aggroCall(NPC,Player)
  109. end
  110. end
  111. end
  112. end
  113. function aggroCall(NPC,Player)
  114. if GetRace(NPC) == Dwarf then
  115. if GetGender(NPC) ==1 then -- MALE
  116. local choice = MakeRandomInt(1,3)
  117. if choice == 1 then
  118. PlayFlavor(NPC, "voiceover/english/dwarf_base_1/ft/dwarf/dwarf_base_1_1_aggro_gm_23b35126.mp3", "Where do ya think you're going?", "", 706272128, 909565004, Spawn, 3)
  119. elseif choice == 2 then
  120. PlayFlavor(NPC, "voiceover/english/dwarf_base_1/ft/dwarf/dwarf_base_1_1_aggro_gm_9de55a3e.mp3", "There they are! Let's get em!", "", 3246206943, 366784514, Spawn, 3)
  121. elseif choice == 3 then
  122. PlayFlavor(NPC, "voiceover/english/dwarf_base_1/ft/dwarf/dwarf_base_1_1_aggro_gm_ab9057d3.mp3", "Looking for me? ", "", 438949611, 3910736957, Spawn, 3)
  123. end
  124. else
  125. if GetClass(Spawn)>=1 and GetClass(Spawn)<=10 then
  126. choice = MakeRandomInt(1,4) --Fighter CHECK
  127. else
  128. choice = MakeRandomInt(1,3)
  129. end
  130. if choice == 1 then -- FEMALE
  131. PlayFlavor(NPC, "voiceover/english/dwarf_base_1/ft/dwarf/dwarf_base_1_1_aggro_gf_ab9057d3.mp3", "Looking for me? ", "", 407706048, 337475746, Spawn, 3)
  132. elseif choice == 2 then
  133. PlayFlavor(NPC, "voiceover/english/dwarf_base_1/ft/dwarf/dwarf_base_1_1_aggro_gf_be4f625e.mp3", "Where do ya think you're going?", "", 152508601, 1517122703, Spawn, 3)
  134. elseif choice == 3 then
  135. PlayFlavor(NPC, "voiceover/english/dwarf_base_1/ft/dwarf/dwarf_base_1_1_aggro_gf_d29563c7.mp3", "There they are! Let's get em!", "", 995196475, 1619899594, Spawn, 3)
  136. elseif choice == 4 then
  137. PlayFlavor(NPC, "voiceover/english/dwarf_base_1/ft/dwarf/dwarf_base_1_1_maofighter_gf_428f2c06.mp3", "You, back up there! I'm taking the warrior!", "", 1284306998, 1476787670, Spawn, 3)
  138. end
  139. end
  140. elseif GetRace(NPC) == Halfling then
  141. if GetGender(NPC) ==1 then -- MALE
  142. local choice = MakeRandomInt(1,2)
  143. if choice == 1 then
  144. PlayFlavor(NPC, "voiceover/english/halfling_base_1/ft/halfling/halfling_base_1_1_aggro_gm_7b251faa.mp3", "Try to sneak into my home, will ya!", "", 100218096, 392363658, Spawn,8)
  145. elseif choice == 2 then
  146. PlayFlavor(NPC, "voiceover/english/optional5/halfling_corrupted/ft/halfling/halfling_corrupted_2_aggro_gm_3c9b103f.mp3", "Destroy the invaders!", "", 1579115349, 1024832768, Spawn,8)
  147. end
  148. else --No Female
  149. end
  150. elseif GetRace(NPC) == Woodelf then
  151. if GetGender(NPC) ==1 then -- MALE
  152. else
  153. end
  154. end
  155. end
  156. function death(NPC,Player)
  157. if GetTempVariable(NPC, "CalloutTimer")== "false" and IsPlayer(Player) then
  158. if MakeRandomInt(0,100)<=35 then
  159. if GetRace(NPC) == Dwarf then
  160. if not HasLanguage(Player,3)then
  161. Garbled(NPC,Player)
  162. else
  163. end
  164. elseif GetRace(NPC) == Halfling then
  165. if not HasLanguage(Player,8)then
  166. Garbled(NPC,Player)
  167. else
  168. end
  169. elseif GetRace(NPC) == Woodelf then
  170. if not HasLanguage(Player,16)then
  171. Garbled(NPC,Player)
  172. else
  173. end
  174. end
  175. end
  176. end
  177. end
  178. function victory(NPC,Player)
  179. if GetRace(NPC) == Dwarf then
  180. if not HasLanguage(Player,3)then
  181. Garbled(NPC,Player)
  182. else
  183. end
  184. elseif GetRace(NPC) == Halfling then
  185. if not HasLanguage(Player,8)then
  186. Garbled(NPC,Player)
  187. else
  188. end
  189. elseif GetRace(NPC) == Woodelf then
  190. if not HasLanguage(Player,16)then
  191. Garbled(NPC,Player)
  192. else
  193. end
  194. end
  195. end