9
3

BaseBarbarian1.lua 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. --[[
  2. Script Name : SpawnScripts/Generic/MonsterCallouts/BaseBarbarian1.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.04.27 06:04:35
  5. Script Purpose : Base1 Barbarian Racial Combat VOs
  6. :
  7. --]]
  8. local HealthCallout = false --REDUCES Half-Health Spam
  9. local CalloutTimer = false --REDUCES Callout Spam
  10. local FIGHTER = 1
  11. local WARRIOR =2
  12. local GUARDIAN= 3
  13. local BERSERKER = 4
  14. local BRAWLER = 5
  15. local MONK = 6
  16. local BRUISER= 7
  17. local CRUSADER = 8
  18. local SHADOWKNIGHT = 9
  19. local PALADIN = 10
  20. local MAGE = 21
  21. local SORCERER = 22
  22. local WIZARD = 23
  23. local WARLOCK = 24
  24. local ENCHANTER = 25
  25. local ILLUSIONIST = 26
  26. local COERCER = 27
  27. local SUMMONER = 28
  28. local CONJUROR = 29
  29. local NECROMANCER = 30
  30. function aggro(NPC,Spawn)
  31. CalloutTimer = true
  32. AddTimer(NPC,7000,"ResetTimer")
  33. if GetGender(NPC)==1 then --GENDER CHECK. 1==Male
  34. if GetClass(Spawn)>=31 and GetClass(Spawn)<=42 then
  35. local choice = MakeRandomInt(1,4) --SCOUT CHECK
  36. else
  37. local choice = MakeRandomInt(1,3)
  38. end
  39. if choice == 1 then
  40. PlayFlavor(NPC, "voiceover/english/optional3/barbarian_base_1/ft/barbarian/barbarian_base_1_1_aggro_gm_394a7fe3.mp3", "Not sneaky enough to get past me.", "", 3715495401, 2861752836)
  41. elseif choice == 2 then
  42. PlayFlavor(NPC, "voiceover/english/optional3/barbarian_base_1/ft/barbarian/barbarian_base_1_1_aggro_gm_d2336620.mp3", "Your overconfidence will be your undoing.", "", 1735697087, 1551611219)
  43. elseif choice == 3 then
  44. PlayFlavor(NPC, "voiceover/english/optional3/barbarian_base_1/ft/barbarian/barbarian_base_1_1_aggro_gm_ea4ba638.mp3", "Sentries, alarm!", "", 83822322, 1846685810)
  45. elseif choice == 4 then
  46. PlayFlavor(NPC, "voiceover/english/optional3/barbarian_base_1/ft/barbarian/barbarian_base_1_1_maoscout_gm_abf544b6.mp3", "Time to run, you sneaky coward!", "", 401121050, 1757713301)
  47. end
  48. else
  49. if GetClass(Spawn)>=31 and GetClass(Spawn)<=42 then
  50. local choice = MakeRandomInt(1,4) --SCOUT CHECK
  51. else
  52. local choice = MakeRandomInt(1,3)
  53. end
  54. if choice == 1 then
  55. PlayFlavor(NPC, "voiceover/english/barbarian_base_1/ft/barbarian/barbarian_base_1_1_aggro_gf_d2336620.mp3", "You overconfidence will be your undoing.", "", 2263836674, 942538899)
  56. elseif choice == 2 then
  57. PlayFlavor(NPC, "voiceover/english/barbarian_base_1/ft/barbarian/barbarian_base_1_1_aggro_gf_ea4ba638.mp3", "Sentries, alarm!", "", 3264181187, 3210126852)
  58. elseif choice == 3 then
  59. PlayFlavor(NPC, "voiceover/english/barbarian_base_1/ft/barbarian/barbarian_base_1_1_aggro_gf_394a7fe3.mp3", "Not sneaky enough to get past me.", "", 3417148270, 2109180100)
  60. elseif choice == 4 then
  61. PlayFlavor(NPC, "voiceover/english/barbarian_base_1/ft/barbarian/barbarian_base_1_1_maoscout_gf_abf544b6.mp3", "Time to run, you sneaky coward!", "", 195739451, 1913168121)
  62. end
  63. AddTimer(NPC,15000,"FifteenCall")
  64. end
  65. end
  66. function death(NPC,Spawn)
  67. --[[if CalloutTimer == false then
  68. CalloutTimer = true
  69. AddTimer(NPC,7000,"ResetTimer")]]--
  70. if GetGender(NPC)==1 then
  71. local choice = MakeRandomInt(1,2)
  72. if choice == 1 then
  73. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_death_gm_3e24be0b.mp3", "Cover me while we regroup!", "", 144951462, 3922442401)
  74. elseif choice == 2 then
  75. PlayFlavor(NPC, "voiceover/english/optional3/barbarian_steppes/ft/barbarian/barbarian_steppes_2_death_gm_60ab074d.mp3", "My clansmen will avenge me!", "", 891201418, 1562586894)
  76. end
  77. else
  78. local choice = MakeRandomInt(1,2)
  79. if choice == 1 then
  80. PlayFlavor(NPC, "voiceover/english/barbarian_base_1/ft/barbarian/barbarian_base_1_1_death_gf_9f33cf68.mp3", "Don't break! Hold the line!", "", 4168139414, 1969505231)
  81. else
  82. PlayFlavor(NPC, "voiceover/english/optional3/barbarian_base_1/ft/barbarian/barbarian_base_1_2_death_gf_747d38d7.mp3", "Don't fear death! There is no surrender!", "", 1668075339, 3492211420)
  83. end
  84. end
  85. end
  86. function healthchanged(NPC, Spawn)
  87. --[[ if CalloutTimer == false then
  88. CalloutTimer = true
  89. AddTimer(NPC,7000,"ResetTimer")]]--
  90. if HealthCallout == false then
  91. if GetHP(NPC) <= GetMaxHP(NPC) * 0.55 and GetHP(NPC) >= GetMaxHP(NPC) * 0.45 then
  92. if GetGender(NPC)==1 then
  93. local choice = MakeRandomInt(1,3)
  94. if choice == 1 then
  95. PlayFlavor(NPC, "voiceover/english/optional3/barbarian_base_1/ft/barbarian/barbarian_base_1_1_halfhealth_gm_267aa673.mp3", "Send for reinforcements! Their warriors are skilled.", "", 3033804277, 2302522141)
  96. elseif choice == 2 then
  97. PlayFlavor(NPC, "voiceover/english/optional3/barbarian_base_1/ft/barbarian/barbarian_base_1_1_halfhealth_gm_a04b8264.mp3", "Perhaps you're stronger than I thought!", "", 1156508542, 413023818)
  98. elseif choice == 3 then
  99. PlayFlavor(NPC, "voiceover/english/optional3/barbarian_base_1/ft/barbarian/barbarian_base_1_2_halfhealth_gm_267aa673.mp3", "Send for reinforcements! Their warriors are skilled.", "", 4193910374, 3533989230) end
  100. else
  101. local choice = MakeRandomInt(1,3)
  102. if choice == 1 then
  103. PlayFlavor(NPC, "voiceover/english/optional3/barbarian_base_1/ft/barbarian/barbarian_base_1_3_halfhealth_gf_267aa673.mp3", "Send for reinforcements! Their warriors are skilled.", "", 2527774659, 2542349358)
  104. elseif choice == 2 then
  105. PlayFlavor(NPC, "voiceover/english/optional3/barbarian_base_1/ft/barbarian/barbarian_base_1_2_halfhealth_gf_a04b8264.mp3", "Perhaps you're stronger than I thought!", "", 745602612, 2574365591)
  106. elseif choice == 3 then
  107. PlayFlavor(NPC, "voiceover/english/optional3/barbarian_base_1/ft/barbarian/barbarian_base_1_3_halfhealth_gf_267aa673.mp3", "Send for reinforcements! Their warriors are skilled.", "", 2527774659, 2542349358, Spawn, 0) end
  108. end
  109. end
  110. end
  111. end
  112. --end
  113. function victory(NPC,Spawn)
  114. --[[if CalloutTimer == false then
  115. CalloutTimer = true
  116. AddTimer(NPC,7000,"ResetTimer")]]--
  117. if GetGender(NPC)==1 then
  118. local choice = MakeRandomInt(1,3)
  119. if choice == 1 then
  120. PlayFlavor(NPC, "voiceover/english/optional3/barbarian_base_1/ft/barbarian/barbarian_base_1_1_victory_gm_155a84f0.mp3", "You fought well but not well enough!", "", 450019542, 4158631545)
  121. elseif choice == 2 then
  122. PlayFlavor(NPC, "voiceover/english/optional3/barbarian_base_1/ft/barbarian/barbarian_base_1_1_victory_gm_e707fef0.mp3", "Flee cowards, before I slaughter you all!", "", 3583801206, 1799910552)
  123. elseif choice == 3 then
  124. PlayFlavor(NPC, "voiceover/english/optional3/barbarian_base_1/ft/barbarian/barbarian_base_1_1_victory_gm_f87005b5.mp3", "Now you will have peace.", "", 3932457554, 2553847722)
  125. end
  126. else
  127. local choice = MakeRandomInt(1,3)
  128. if choice == 1 then
  129. PlayFlavor(NPC, "voiceover/english/barbarian_base_1/ft/barbarian/barbarian_base_1_1_victory_gf_e707fef0.mp3", "Flee cowards, before I slaughter you all!", "", 1852613611, 2630125108)
  130. elseif choice == 2 then
  131. PlayFlavor(NPC, "voiceover/english/barbarian_base_1/ft/barbarian/barbarian_base_1_1_victory_gf_155a84f0.mp3", "You fought well but not well enough!", "", 1144735491, 2154607760)
  132. elseif choice == 3 then
  133. PlayFlavor(NPC, "voiceover/english/barbarian_base_1/ft/barbarian/barbarian_base_1_1_victory_gf_f87005b5.mp3", "Now you will have peace.", "", 2974774059, 665726799)
  134. end
  135. end
  136. end
  137. --end
  138. function ResetTimer(NPC) -- 7 SECOND PAUSE BETWEEN VOs
  139. CalloutTimer = false
  140. end
  141. function HealthReset (NPC) --SO HALF HEALTH DOESN'T SPAM
  142. HealthCallout = false
  143. end