9
3

BaseTroll1.lua 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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. PlayFlavor(NPC, "voiceover/english/optional3/troll_base_1/ft/troll/troll_base_1_1_battle_gf_ee1e1a8.mp3", "Blood bath!", "", 3988277815, 18269010)
  91. end
  92. if IsAlive(NPC)then
  93. AddTimer(NPC,15000,"FifteenCall")
  94. end
  95. end
  96. end
  97. function healthchanged(NPC, Spawn)
  98. --[[ if CalloutTimer == false then
  99. CalloutTimer = true
  100. AddTimer(NPC,7000,"ResetTimer")]]--
  101. if HealthCallout == false then
  102. if GetHP(NPC) <= GetMaxHP(NPC) * 0.55 and GetHP(NPC) >= GetMaxHP(NPC) * 0.45 then
  103. if GetGender(NPC)==1 then
  104. local choice = MakeRandomInt(1,2)
  105. if choice == 1 then
  106. 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)
  107. elseif choice == 2 then
  108. 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)
  109. end
  110. else
  111. local choice = MakeRandomInt(1,2)
  112. if choice == 1 then
  113. 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)
  114. elseif choice == 2 then
  115. 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)
  116. end
  117. end
  118. end
  119. end
  120. end
  121. --end
  122. function victory(NPC,Spawn)
  123. --[[if CalloutTimer == false then
  124. CalloutTimer = true
  125. AddTimer(NPC,7000,"ResetTimer")]]--
  126. if GetGender(NPC)==1 then
  127. local choice = MakeRandomInt(1,2)
  128. if choice == 1 then
  129. 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)
  130. elseif choice == 2 then
  131. 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)
  132. end
  133. else
  134. local choice = MakeRandomInt(1,2)
  135. if choice == 1 then
  136. 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)
  137. elseif choice == 2 then
  138. PlayFlavor(NPC, "voiceover/english/optional3/troll_base_1/ft/troll/troll_base_1_1_battle_gf_ee1e1a8.mp3", "Blood bath!", "", 3988277815, 18269010)
  139. end
  140. end
  141. end
  142. --end
  143. function ResetTimer(NPC) -- 7 SECOND PAUSE BETWEEN VOs
  144. CalloutTimer = false
  145. end
  146. function HealthReset (NPC) --SO HALF HEALTH DOESN'T SPAM
  147. HealthCallout = false
  148. end