9
3

BaseDarkElf1.lua 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. --[[
  2. Script Name : SpawnScripts/Generic/MonsterCallouts/BaseDarkElf1.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.04.28 06:04:50
  5. Script Purpose : Base Darkelf 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)>=1 and GetClass(Spawn)<=10 or GetClass(Spawn)>=21 and GetClass(Spawn)<=30 then
  35. local choice = MakeRandomInt(1,7) --Mage/Fighter CHECK
  36. else
  37. local choice = MakeRandomInt(1,5)
  38. end
  39. if choice == 1 then
  40. PlayFlavor(NPC, "voiceover/english/darkelf_base_1/ft/darkelf/darkelf_base_1_1_aggro_gm_10fd87eb.mp3", "There is no escape for you now!", "", 2989643101, 2260454555)
  41. elseif choice == 2 then
  42. PlayFlavor(NPC, "voiceover/english/darkelf_base_1/ft/darkelf/darkelf_base_1_1_aggro_gm_beacbb30.mp3", "I hope you put your affairs in order.", "", 799093996, 16617637)
  43. elseif choice == 3 then
  44. PlayFlavor(NPC, "voiceover/english/darkelf_base_1/ft/darkelf/darkelf_base_1_1_aggro_gm_fe18133.mp3", "Look what strolled into the spider's web!", "", 4178015902, 2202039151)
  45. elseif choice == 4 then
  46. PlayFlavor(NPC, "voiceover/english/optional3/darkelf_base_1/ft/darkelf/darkelf_base_1_3_aggro_gm_10fd87eb.mp3", "There is no escape for you now!", "", 3427660043, 2534456197)
  47. elseif choice == 5 then
  48. PlayFlavor(NPC, "voiceover/english/optional3/darkelf_base_1/ft/darkelf/darkelf_base_1_3_aggro_gm_fe18133.mp3", "Look what strolled into the spider's web!", "", 1688336194, 2269151294)
  49. elseif choice == 6 or 7 then
  50. if GetClass(Spawn)>=1 and GetClass(Spawn)<=10 then--Fighter CHECK
  51. PlayFlavor(NPC, "voiceover/english/darkelf_base_1/ft/darkelf/darkelf_base_1_1_maofighter_gm_c01f2ef8.mp3", "Let's see how good of a fighter you really are!", "", 976101228, 853372931)
  52. else--Mage CHECK
  53. PlayFlavor(NPC, "voiceover/english/darkelf_base_1/ft/darkelf/darkelf_base_1_1_maomage_gm_7c1c0586.mp3", "Your pathetic parlor tricks won't save you now, magician!", "", 2940784449, 2243650132)
  54. end
  55. end
  56. else
  57. local choice = MakeRandomInt(1,4)
  58. if choice == 1 then
  59. PlayFlavor(NPC, "voiceover/english/optional3/darkelf_base_1/ft/darkelf/darkelf_base_1_1_aggro_gf_10fd87eb.mp3", "There is no escape for you now!", "", 3641868496, 1960514853)
  60. elseif choice == 2 then
  61. PlayFlavor(NPC, "voiceover/english/optional3/darkelf_base_1/ft/darkelf/darkelf_base_1_1_aggro_gf_fe18133.mp3", "Look what strolled into the spider's web!", "", 1570890577, 2869516555)
  62. elseif choice == 3 then
  63. PlayFlavor(NPC, "voiceover/english/optional3/darkelf_base_1/ft/darkelf/darkelf_base_1_2_aggro_gf_10fd87eb.mp3", "There is no escape for you now!", "", 3743520097, 2328340147)
  64. elseif choice == 4 then
  65. PlayFlavor(NPC, "voiceover/english/optional3/darkelf_base_1/ft/darkelf/darkelf_base_1_2_aggro_gf_fe18133.mp3", "Look what strolled into the spider's web!", "", 2639788240, 46489616)
  66. elseif choice == 4 then
  67. PlayFlavor(NPC, "voiceover/english/optional3/darkelf_base_1/ft/darkelf/darkelf_base_1_3_aggro_gf_fe18133.mp3", "Look what strolled into the spider's web!", "", 2332756549, 3562953667)
  68. end
  69. AddTimer(NPC,15000,"FifteenCall")
  70. end
  71. end
  72. function death(NPC,Spawn)
  73. --[[if CalloutTimer == false then
  74. CalloutTimer = true
  75. AddTimer(NPC,7000,"ResetTimer")]]--
  76. if GetGender(NPC)==1 then
  77. local choice = MakeRandomInt(1,6)
  78. if choice == 1 then
  79. PlayFlavor(NPC, "voiceover/english/darkelf_base_1/ft/darkelf/darkelf_base_1_1_death_gm_25576197.mp3", "I will have vengeance!", "", 360053692, 4149753869)
  80. elseif choice == 2 then
  81. PlayFlavor(NPC, "voiceover/english/darkelf_base_1/ft/darkelf/darkelf_base_1_1_death_gm_8d7bb2b9.mp3", "Hold them and I'll return with help!", "", 2338278515, 1160150777)
  82. elseif choice == 3 then
  83. PlayFlavor(NPC, "voiceover/english/optional3/darkelf_base_1/ft/darkelf/darkelf_base_1_2_death_gm_25576197.mp3", "I will have vengeance!", "", 1315021503, 378441917)
  84. elseif choice == 4 then
  85. PlayFlavor(NPC, "voiceover/english/optional3/darkelf_base_1/ft/darkelf/darkelf_base_1_2_death_gm_8d7bb2b9.mp3", "Hold them and I'll return with help!", "", 4054713295, 2203944491)
  86. elseif choice == 5 then
  87. PlayFlavor(NPC, "voiceover/english/optional3/darkelf_base_1/ft/darkelf/darkelf_base_1_3_death_gm_25576197.mp3", "I will have vengeance!", "", 433254383, 1749773166)
  88. elseif choice == 6 then
  89. PlayFlavor(NPC, "voiceover/english/optional3/darkelf_base_1/ft/darkelf/darkelf_base_1_3_death_gm_8d7bb2b9.mp3", "Hold them and I'll return with help!", "", 1905250318, 2280015161)
  90. end
  91. else
  92. local choice = MakeRandomInt(1,6)
  93. if choice == 1 then
  94. PlayFlavor(NPC, "voiceover/english/optional3/darkelf_base_1/ft/darkelf/darkelf_base_1_1_death_gf_25576197.mp3", "I will have vengeance!", "", 2208779791, 246336299)
  95. elseif choice == 2 then
  96. PlayFlavor(NPC, "voiceover/english/optional3/darkelf_base_1/ft/darkelf/darkelf_base_1_1_death_gf_8d7bb2b9.mp3", "Hold them and I'll return with help!", "", 2248940979, 3184577285)
  97. elseif choice == 3 then
  98. PlayFlavor(NPC, "voiceover/english/optional3/darkelf_base_1/ft/darkelf/darkelf_base_1_2_death_gf_25576197.mp3", "I will have vengeance!", "", 378367578, 835613312)
  99. elseif choice == 4 then
  100. PlayFlavor(NPC, "voiceover/english/optional3/darkelf_base_1/ft/darkelf/darkelf_base_1_2_death_gf_8d7bb2b9.mp3", "Hold them and I'll return with help!", "", 2832376323, 444359174)
  101. elseif choice == 5 then
  102. PlayFlavor(NPC, "voiceover/english/optional3/darkelf_base_1/ft/darkelf/darkelf_base_1_3_death_gf_25576197.mp3", "I will have vengeance!", "", 58514974, 479667048, Spawn)
  103. elseif choice == 6 then
  104. PlayFlavor(NPC, "voiceover/english/optional3/darkelf_base_1/ft/darkelf/darkelf_base_1_3_death_gf_8d7bb2b9.mp3", "Hold them and I'll return with help!", "", 291851398, 546843337)
  105. end
  106. end
  107. end
  108. --end
  109. function FifteenCall(NPC,Player)
  110. if IsInCombat(NPC)==true and IsAlive(NPC) == true and math.random(0,100)<=33 then
  111. --[[ if CalloutTimer == false then
  112. CalloutTimer = true
  113. AddTimer(NPC,7000,"ResetTimer")]]--
  114. if GetGender(NPC)==1 then
  115. local choice = MakeRandomInt(1,6)
  116. if choice == 1 then
  117. PlayFlavor(NPC, "voiceover/english/darkelf_base_1/ft/darkelf/darkelf_base_1_1_battle_cm_4e66222a.mp3", "You cannot deny the power of hate!", "", 2308305258, 1715309735)
  118. elseif choice == 2 then
  119. PlayFlavor(NPC, "voiceover/english/darkelf_base_1/ft/darkelf/darkelf_base_1_1_battle_gm_316a6c63.mp3", "I crave your suffering!", "", 3367682978, 4121942691)
  120. elseif choice == 3 then
  121. PlayFlavor(NPC, "voiceover/english/darkelf_base_1/ft/darkelf/darkelf_base_1_1_battle_gm_6806b443.mp3", "You are no match for the Teir'Dal!", "", 2992438842, 2162693039)
  122. elseif choice == 4 then
  123. PlayFlavor(NPC, "voiceover/english/darkelf_base_1/ft/darkelf/darkelf_base_1_1_battle_gm_700b6151.mp3", "A feeble attempt from a worthless opponent.", "", 943969253, 2337029939)
  124. elseif choice == 5 then
  125. PlayFlavor(NPC, "voiceover/english/darkelf_base_1/ft/darkelf/darkelf_base_1_1_battle_gm_a38dc90c.mp3", "Close in until they can't breathe!", "", 1646052354, 1989688436)
  126. elseif choice == 6 then
  127. PlayFlavor(NPC, "voiceover/english/darkelf_base_1/ft/darkelf/darkelf_base_1_1_battle_mm_4832fde6.mp3", "Now, prepare to be eviscerated!", "", 1640233154, 431623172)
  128. end
  129. else
  130. local choice = MakeRandomInt(1,2)
  131. if choice == 1 then
  132. PlayFlavor(NPC, "voiceover/english/optional3/darkelf_base_1/ft/darkelf/darkelf_base_1_1_battle_gf_a38dc90c.mp3", "Close in until they can't breathe!", "", 2932951909, 3358869262)
  133. elseif choice == 2 then
  134. PlayFlavor(NPC, "voiceover/english/darkelf_base_1/ft/darkelf/darkelf_base_1_1_battle_gf_700b6151.mp3", "A feeble attempt from a worthless opponent.", "", 943969253, 2337029939, Spawn) --DOESN"T WORK (needs Key)
  135. end
  136. if IsAlive(NPC)then
  137. AddTimer(NPC,15000,"FifteenCall")
  138. end
  139. end
  140. end
  141. end
  142. function healthchanged(NPC, Spawn)
  143. --[[ if CalloutTimer == false then
  144. CalloutTimer = true
  145. AddTimer(NPC,7000,"ResetTimer")]]--
  146. if HealthCallout == false then
  147. if GetHP(NPC) <= GetMaxHP(NPC) * 0.55 and GetHP(NPC) >= GetMaxHP(NPC) * 0.45 then
  148. if GetGender(NPC)==1 then
  149. local choice = MakeRandomInt(1,2)
  150. if choice == 1 then
  151. PlayFlavor(NPC, "voiceover/english/darkelf_base_1/ft/darkelf/darkelf_base_1_1_halfhealth_gm_577ab333.mp3", "You'll pay for that one, peon!", "", 1420508530, 39058961)
  152. elseif choice == 2 then
  153. PlayFlavor(NPC, "voiceover/english/darkelf_base_1/ft/darkelf/darkelf_base_1_1_halfhealth_gm_9e244d19.mp3", "How dare you!", "", 3305445355, 1846155898)
  154. elseif choice == 3 then
  155. PlayFlavor(NPC, "voiceover/english/optional3/darkelf_base_1/ft/darkelf/darkelf_base_1_2_halfhealth_gf_9e244d19.mp3", "How dare you!", "", 2263865273, 2956956838)
  156. end
  157. else
  158. local choice = MakeRandomInt(1,5)
  159. if choice == 1 then
  160. PlayFlavor(NPC, "voiceover/english/optional3/darkelf_base_1/ft/darkelf/darkelf_base_1_2_halfhealth_gf_9e244d19.mp3", "How dare you!", "", 2263865273, 2956956838)
  161. elseif choice == 2 then
  162. PlayFlavor(NPC, "voiceover/english/optional3/darkelf_base_1/ft/darkelf/darkelf_base_1_1_halfhealth_gf_577ab333.mp3", "You'll pay for that one, peon!", "", 2534123849, 501758946)
  163. elseif choice == 3 then
  164. PlayFlavor(NPC, "voiceover/english/optional3/darkelf_base_1/ft/darkelf/darkelf_base_1_1_halfhealth_gf_9e244d19.mp3", "How dare you!", "", 2905660023, 2043697886)
  165. elseif choice == 4 then
  166. PlayFlavor(NPC, "voiceover/english/optional3/darkelf_base_1/ft/darkelf/darkelf_base_1_3_halfhealth_gm_577ab333.mp3", "You'll pay for that one, peon!", "", 475204402, 2998439968)
  167. elseif choice == 5 then
  168. PlayFlavor(NPC, "voiceover/english/optional3/darkelf_base_1/ft/darkelf/darkelf_base_1_3_halfhealth_gm_9e244d19.mp3", "How dare you!", "", 2287743179, 1322949627)
  169. end
  170. end
  171. end
  172. end
  173. end
  174. --end
  175. function victory(NPC,Spawn)
  176. --[[if CalloutTimer == false then
  177. CalloutTimer = true
  178. AddTimer(NPC,7000,"ResetTimer")]]--
  179. if GetGender(NPC)==1 then
  180. local choice = MakeRandomInt(1,3)
  181. if choice == 1 then
  182. PlayFlavor(NPC, "voiceover/english/darkelf_base_1/ft/darkelf/darkelf_base_1_1_victory_gm_dff26fa.mp3", "It is a shame we must end it this way ... I could have used you.", "", 1363661737, 942201815)
  183. elseif choice == 2 then
  184. PlayFlavor(NPC, "voiceover/english/darkelf_base_1/ft/darkelf/darkelf_base_1_1_victory_gm_f4fc7cf8.mp3", "Did you really think you had a chance?", "", 607143583, 3133144305)
  185. elseif choice == 3 then
  186. PlayFlavor(NPC, "voiceover/english/darkelf_base_1/ft/darkelf/darkelf_base_1_1_victory_gm_f5088778.mp3", "Get up! Death isn't good enough for you!", "", 3381713633, 2145918189)
  187. end
  188. else
  189. local choice = MakeRandomInt(1,2)
  190. if choice == 1 then --NO FEMALE Darkelf Victory VOs
  191. PlayFlavor(NPC, "voiceover/english/darkelf_base_1/ft/darkelf/darkelf_base_1_1_victory_gm_dff26fa.mp3", "It is a shame we must end it this way ... I could have used you.", "", 1363661737, 942201815)
  192. elseif choice == 2 then
  193. PlayFlavor(NPC, "voiceover/english/darkelf_base_1/ft/darkelf/darkelf_base_1_1_victory_gm_f4fc7cf8.mp3", "Did you really think you had a chance?", "", 607143583, 3133144305)
  194. end
  195. end
  196. end
  197. --end
  198. function ResetTimer(NPC) -- 7 SECOND PAUSE BETWEEN VOs
  199. CalloutTimer = false
  200. end
  201. function HealthReset (NPC) --SO HALF HEALTH DOESN'T SPAM
  202. HealthCallout = false
  203. end