9
3

BaseTroll1.lua 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. --[[
  2. Script Name : SpawnScripts/Generic/MonsterCallouts/BaseTroll1.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.24 01:07:52
  5. Script Purpose : Base Troll Callouts. Does not contain garbled. (Missing a few Female VOs. e.g. Victory#2, Half Health, Death)
  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. local choice = MakeRandomInt(1,3)
  35. if choice == 1 then
  36. PlayFlavor(NPC, "voiceover/english/optional3/troll_base_1/ft/troll/troll_base_1_1_aggro_gm_b7e0b3a.mp3", "Me going to eat your kidney first.", "", 3664886715, 2450110061)
  37. elseif choice == 2 then
  38. PlayFlavor(NPC, "voiceover/english/optional3/troll_base_1/ft/troll/troll_base_1_1_aggro_gm_d1a345c7.mp3", "I'm gonna give you a smile like ol' one tooth!", "", 2209033822, 2591536638)
  39. elseif choice == 3 then
  40. PlayFlavor(NPC, "voiceover/english/optional3/troll_base_1/ft/troll/troll_base_1_1_aggro_gm_f06d6bb9.mp3", "Not nice to interrupt dinner.", "", 573837171, 4255493444)
  41. end
  42. else
  43. local choice = MakeRandomInt(1,3)
  44. if choice == 1 then
  45. PlayFlavor(NPC,"voiceover/english/optional3/troll_base_1/ft/troll/troll_base_1_1_aggro_gf_b7e0b3a.mp3","Me's gonna eat your kidney first!","",750980753, 3740010516)
  46. elseif choice == 2 then
  47. PlayFlavor(NPC, "voiceover/english/optional3/troll_base_1/ft/troll/troll_base_1_1_aggro_gf_d1a345c7.mp3", "I'm gonna give you a smile like ol' one tooth!", "", 1201784314, 2598207561)
  48. elseif choice == 3 then
  49. PlayFlavor(NPC, "voiceover/english/optional3/troll_base_1/ft/troll/troll_base_1_1_aggro_gf_f06d6bb9.mp3", "Not nice to interrupt dinner.", "", 3860408661, 3681593402)
  50. end
  51. AddTimer(NPC,15000,"FifteenCall")
  52. end
  53. end
  54. function death(NPC,Spawn)
  55. --[[if CalloutTimer == false then
  56. CalloutTimer = true
  57. AddTimer(NPC,7000,"ResetTimer")]]--
  58. if GetGender(NPC)==1 then
  59. local choice = MakeRandomInt(1,2)
  60. if choice == 1 then
  61. PlayFlavor(NPC, "voiceover/english/optional3/troll_base_1/ft/troll/troll_base_1_1_death_gm_e8c02d1e.mp3", "Feel kinda sleepy. Whacha do to me?", "", 3298938103, 1410551282)
  62. elseif choice == 2 then
  63. PlayFlavor(NPC, "voiceover/english/optional3/troll_base_1/ft/troll/troll_base_1_1_death_gm_e1755f3f.mp3", "Come back you coward! I'm not dead yet.", "", 86111608, 3954832486)
  64. end
  65. else
  66. local choice = MakeRandomInt(1,2)
  67. if choice == 1 then
  68. PlayFlavor(NPC, "voiceover/english/optional3/troll_base_1/ft/troll/troll_base_1_1_death_gf_e8c02d1e.mp3", "Feel kinda sleepy. Whacha do to me?", "", 3447489483, 4136415601)
  69. else
  70. PlayFlavor(NPC, "voiceover/english/optional3/troll_base_1/ft/troll/troll_base_1_1_death_gf_e1755f3f.mp3", "Come back you coward! I'm not dead yet.", "", 695536554, 1919499087, Spawn, 0)
  71. end
  72. end
  73. end
  74. --end
  75. function FifteenCall(NPC,Player)
  76. if IsInCombat(NPC)==true and IsAlive(NPC) == true and math.random(0,100)<=25 then
  77. --[[ if CalloutTimer == false then
  78. CalloutTimer = true
  79. AddTimer(NPC,7000,"ResetTimer")]]--
  80. if GetGender(NPC)==1 then
  81. local choice = MakeRandomInt(1,3)
  82. if choice == 1 then
  83. PlayFlavor(NPC,"voiceover/english/optional3/troll_base_1/ft/troll/troll_base_1_1_battle_gm_ee1e1a8.mp3","Attack!","",3180104139, 2926558993)
  84. elseif choice == 2 then
  85. PlayFlavor(NPC, "voiceover/english/optional3/troll_base_1/ft/troll/troll_base_1_1_battle_gm_ee1e1a8.mp3", "Blood bath!", "", 3180104139, 2926558993)
  86. elseif choice == 3 then
  87. PlayFlavor(NPC, "voiceover/english/optional3/troll_base_1/ft/troll/troll_base_1_1_battle_gm_885bb802.mp3", "Your skin will make a nice rug.", "", 1438966168, 4203435659)
  88. end
  89. else
  90. local choice = MakeRandomInt(1,2)
  91. if choice == 1 then
  92. PlayFlavor(NPC, "voiceover/english/optional3/troll_base_1/ft/troll/troll_base_1_1_battle_gf_ee1e1a8.mp3", "Blood bath!", "", 3988277815, 18269010)
  93. elseif choice == 2 then
  94. PlayFlavor(NPC, "voiceover/english/optional3/troll_base_1/ft/troll/troll_base_1_1_battle_mf_7ec83f83.mp3", "Meat better if you thwack it a few times.", "", 2708504622, 611837925)
  95. end
  96. if IsAlive(NPC)then
  97. AddTimer(NPC,15000,"FifteenCall")
  98. end
  99. end
  100. end
  101. end
  102. function healthchanged(NPC, Spawn)
  103. --[[ if CalloutTimer == false then
  104. CalloutTimer = true
  105. AddTimer(NPC,7000,"ResetTimer")]]--
  106. if HealthCallout == false then
  107. if GetHP(NPC) <= GetMaxHP(NPC) * 0.55 and GetHP(NPC) >= GetMaxHP(NPC) * 0.45 then
  108. if GetGender(NPC)==1 then
  109. local choice = MakeRandomInt(1,2)
  110. if choice == 1 then
  111. PlayFlavor(NPC, "voiceover/english/optional3/troll_base_1/ft/troll/troll_base_1_1_halfhealth_gm_f462f6ff.mp3", "Is this supposed to hurt?", "", 4202180867, 1393988988)
  112. elseif choice == 2 then
  113. PlayFlavor(NPC, "voiceover/english/optional3/troll_base_1/ft/troll/troll_base_1_1_halfhealth_gm_aa145f4d.mp3", "Neat, that'll leave a pretty scar", "", 675684950, 4088135432)
  114. end
  115. else
  116. local choice = MakeRandomInt(1,2)
  117. if choice == 1 then
  118. PlayFlavor(NPC, "voiceover/english/optional3/troll_base_1/ft/troll/troll_base_1_1_halfhealth_gf_aa145f4d.mp3", "Neat, that'll leave a pretty scar", "", 70455099, 2953679351)
  119. elseif choice == 2 then
  120. PlayFlavor(NPC, "voiceover/english/optional3/troll_base_1/ft/troll/troll_base_1_1_halfhealth_gf_f462f6ff.mp3", "Is this supposed to hurt?", "", 216769747, 692696120)
  121. end
  122. end
  123. end
  124. end
  125. end
  126. --end
  127. function victory(NPC,Spawn)
  128. --[[if CalloutTimer == false then
  129. CalloutTimer = true
  130. AddTimer(NPC,7000,"ResetTimer")]]--
  131. if GetGender(NPC)==1 then
  132. local choice = MakeRandomInt(1,2)
  133. if choice == 1 then
  134. PlayFlavor(NPC, "voiceover/english/optional3/troll_base_1/ft/troll/troll_base_1_1_victory_gm_ae6d66e3.mp3", "Teach you to mess with the best.", "", 927528340, 2751002174)
  135. elseif choice == 2 then
  136. PlayFlavor(NPC, "voiceover/english/optional3/troll_base_1/ft/troll/troll_base_1_1_halfhealth_gm_aa145f4d.mp3", "Neat, that'll leave a pretty scar", "", 675684950, 4088135432)
  137. end
  138. else
  139. local choice = MakeRandomInt(1,2)
  140. if choice == 1 then
  141. PlayFlavor(NPC, "voiceover/english/optional3/troll_base_1/ft/troll/troll_base_1_1_victory_gf_ae6d66e3.mp3", "Teach you to mess with the best.", "", 2175921460, 357738989)
  142. elseif choice == 2 then
  143. PlayFlavor(NPC, "voiceover/english/optional3/troll_base_1/ft/troll/troll_base_1_1_battle_gf_ee1e1a8.mp3", "Blood bath!", "", 3988277815, 18269010)
  144. end
  145. end
  146. end
  147. --end
  148. function ResetTimer(NPC) -- 7 SECOND PAUSE BETWEEN VOs
  149. CalloutTimer = false
  150. end
  151. function HealthReset (NPC) --SO HALF HEALTH DOESN'T SPAM
  152. HealthCallout = false
  153. end