9
3

HighwaymanAntonica.lua 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433
  1. --[[
  2. Script Name : SpawnScripts/Generic/MonsterCallouts/HighwaymanAntonica.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.04.29 12:04:03
  5. Script Purpose : Antonica Highwayman VOs that does Spawn Race & Gender Check for correct use -- Barbarian, Halfelf, Human
  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. --AGGRO CHECK --
  31. function aggro(NPC,Spawn) --RACE CHECK
  32. SetTempVariable(NPC, "CalloutTimer", "false")
  33. SetTempVariable(NPC, "HealthCallout", "false")
  34. if GetTempVariable(NPC, "CalloutTimer")== "false"then
  35. SetTempVariable(NPC, "CalloutTimer", "true")
  36. AddTimer(NPC,7000,"ResetTimer")
  37. Race= GetRace(NPC)
  38. Model = GetModelType(NPC)
  39. if Model >= 1462 and Model <= 1471 then
  40. Barb_aggro(NPC,Spawn)
  41. elseif Model ==78 or Model == 79 then
  42. HfE_aggro(NPC,Spawn)
  43. elseif Model ==132 or Model == 134 then
  44. Hum_aggro(NPC,Spawn)
  45. else
  46. end
  47. end
  48. end
  49. --[[if Race == 0 then
  50. Barb_aggro(NPC,Spawn)
  51. elseif Race ==6 then
  52. HfE_aggro(NPC,Spawn)
  53. elseif Race==9 then
  54. Hum_aggro(NPC,Spawn)
  55. else
  56. end
  57. end
  58. end ]]--
  59. function Barb_aggro(NPC,Spawn)
  60. if GetGender(NPC)==1 then --GENDER CHECK. 1==Male
  61. if GetClass(Spawn)>=31 and GetClass(Spawn)<=42 then
  62. choice = MakeRandomInt(1,4) --SCOUT CHECK
  63. else
  64. choice = MakeRandomInt(1,3)
  65. end
  66. if choice == 1 then
  67. 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)
  68. elseif choice == 2 then
  69. 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)
  70. elseif choice == 3 then
  71. PlayFlavor(NPC, "voiceover/english/optional3/barbarian_base_1/ft/barbarian/barbarian_base_1_1_aggro_gm_ea4ba638.mp3", "Sentries, alarm!", "", 83822322, 1846685810)
  72. elseif choice == 4 then
  73. 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)
  74. end
  75. else
  76. if GetClass(Spawn)>=31 and GetClass(Spawn)<=42 then
  77. choice = MakeRandomInt(1,4) --SCOUT CHECK
  78. else
  79. choice = MakeRandomInt(1,3)
  80. end
  81. if choice == 1 then
  82. 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)
  83. elseif choice == 2 then
  84. PlayFlavor(NPC, "voiceover/english/barbarian_base_1/ft/barbarian/barbarian_base_1_1_aggro_gf_ea4ba638.mp3", "Sentries, alarm!", "", 3264181187, 3210126852)
  85. elseif choice == 3 then
  86. 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)
  87. elseif choice == 4 then
  88. 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)
  89. end
  90. end
  91. end
  92. function HfE_aggro(NPC,Spawn)
  93. AddTimer(NPC,7000,"ResetTimer")
  94. if GetGender(NPC)==1 then --GENDER CHECK. 1==Male
  95. if GetClass(Spawn)>=21 and GetClass(Spawn)<=30 then
  96. choice = MakeRandomInt(1,3) --MAGE CHECK
  97. else
  98. choice = MakeRandomInt(1,2)
  99. end
  100. if choice == 1 then
  101. PlayFlavor(NPC, "voiceover/english/halfelf_base_1/ft/halfelf/halfelf_base_1_1_aggro_gm_13a3055.mp3", "Summon help, intruders have arrived!", "", 262436067, 4127133618)
  102. elseif choice == 2 then
  103. PlayFlavor(NPC, "voiceover/english/halfelf_base_1/ft/halfelf/halfelf_base_1_1_aggro_gm_12fbaefb.mp3", "Destroy the invader!", "", 489857902, 941763715)
  104. elseif choice == 3 then
  105. PlayFlavor(NPC, "voiceover/english/halfelf_base_1/ft/halfelf/halfelf_base_1_1_maomage_gm_96692f88.mp3", "Distract the magician or we'll all die!", "", 3332270247, 2351356263)
  106. end
  107. else
  108. choice = MakeRandomInt(1,3)
  109. if choice == 1 then
  110. PlayFlavor(NPC, "voiceover/english/optional3/halfelf_base_1/ft/halfelf/halfelf_base_1_1_aggro_gf_12fbaefb.mp3", "Destroy the invader!", "", 1313233821, 723410897)
  111. elseif choice == 2 then
  112. PlayFlavor(NPC, "voiceover/english/optional3/halfelf_base_1/ft/halfelf/halfelf_base_1_1_aggro_gf_a68f64b6.mp3", "Alarm! Alarm!", "", 1220383018, 2962002142)
  113. elseif choice == 3 then
  114. PlayFlavor(NPC, "voiceover/english/optional3/halfelf_base_1/ft/halfelf/halfelf_base_1_1_aggro_gf_13a3055.mp3", "Summon help, intruders have arrived!", "", 3324527452, 2122161878)
  115. end
  116. end
  117. end
  118. function Hum_aggro(NPC,Spawn)
  119. AddTimer(NPC,7000,"ResetTimer")
  120. if GetGender(NPC)==1 then --GENDER CHECK. 1==Male
  121. if GetClass(Spawn)>=31 and GetClass(Spawn)<=42 then
  122. choice = MakeRandomInt(1,4) --SCOUT CHECK
  123. else
  124. choice = MakeRandomInt(1,3)
  125. end
  126. if choice == 1 then
  127. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_aggro_gm_a203c9ec.mp3", "Prepare to face your doom, meddler.", "", 1496819882, 365167432)
  128. elseif choice == 2 then
  129. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_aggro_gm_a30c4f9d.mp3", "To arms!", "", 1238020980, 748146443)
  130. elseif choice == 3 then
  131. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_aggro_gm_583690dc.mp3", "Summon help! We have invaders!", "", 3340212225, 279643307)
  132. elseif choice == 4 then
  133. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_maoscout_gm_d55d2935.mp3", "Use caution, they may have scouts!", "", 2353461553, 1453902220)
  134. end
  135. else
  136. local choice = MakeRandomInt(1,3)
  137. if choice == 1 then
  138. PlayFlavor(NPC, "voiceover/english/optional3/human_base_1/ft/human/human_base_1_1_aggro_gf_583690dc.mp3", "Summon help! We have invaders!", "", 1598905349, 2204481929)
  139. elseif choice == 2 then
  140. PlayFlavor(NPC, "voiceover/english/optional3/human_base_1/ft/human/human_base_1_1_aggro_gf_a203c9ec.mp3", "Prepare to face your doom, meddler.", "", 3593389433, 3838830228)
  141. elseif choice == 3 then
  142. PlayFlavor(NPC, "voiceover/english/optional3/human_base_1/ft/human/human_base_1_1_aggro_gf_a30c4f9d.mp3", "To arms!", "", 2291750057, 1030180613)
  143. end
  144. end
  145. end
  146. -- DEATH CHECK --
  147. function death(NPC,Spawn) --RACE CHECK
  148. Model = GetModelType(NPC)
  149. if GetTempVariable(NPC, "CalloutTimer")== "false"then
  150. if Model >= 1462 and Model <= 1471 then
  151. Barb_death(NPC,Spawn)
  152. elseif Model ==78 or Model == 79 then
  153. HfE_death(NPC,Spawn)
  154. elseif Model ==132 or Model == 134 then
  155. Hum_death(NPC,Spawn)
  156. else
  157. end
  158. end
  159. end
  160. --[[ Race= GetRace(NPC)
  161. if Race == 0 then
  162. Barb_death(NPC,Spawn)
  163. elseif Race ==6 then
  164. HfE_death(NPC,Spawn)
  165. elseif Race==9 then
  166. Hum_death(NPC,Spawn)
  167. else
  168. end
  169. end
  170. end]]--
  171. function Barb_death(NPC,Spawn)
  172. if GetGender(NPC)==1 then
  173. choice = MakeRandomInt(1,2)
  174. if choice == 1 then
  175. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_death_gm_3e24be0b.mp3", "Cover me while we regroup!", "", 144951462, 3922442401)
  176. elseif choice == 2 then
  177. PlayFlavor(NPC, "voiceover/english/optional3/barbarian_steppes/ft/barbarian/barbarian_steppes_2_death_gm_60ab074d.mp3", "My clansmen will avenge me!", "", 891201418, 1562586894)
  178. end
  179. else
  180. choice = MakeRandomInt(1,2)
  181. if choice == 1 then
  182. 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)
  183. else
  184. 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)
  185. end
  186. end
  187. end
  188. function HfE_death(NPC,Spawn)
  189. if GetGender(NPC)==1 then
  190. choice = MakeRandomInt(1,2)
  191. if choice == 1 then
  192. PlayFlavor(NPC, "voiceover/english/halfelf_base_1/ft/halfelf/halfelf_base_1_1_death_gm_1a659852.mp3", "We must withdraw before we all die!", "", 3147364973, 1341536758, Spawn)
  193. elseif choice == 2 then
  194. PlayFlavor(NPC, "voiceover/english/halfelf_base_1/ft/halfelf/halfelf_base_1_1_death_gm_610c650e.mp3", "You must flee! I'll try to hold them.", "", 3580386891, 3023137994, Spawn, 0)
  195. end
  196. else
  197. choice = MakeRandomInt(1,2)
  198. if choice == 1 then
  199. PlayFlavor(NPC, "voiceover/english/optional3/halfelf_base_1/ft/halfelf/halfelf_base_1_1_death_gf_610c650e.mp3", "You must flee! I'll try to hold them.", "", 1612338229, 10301262, Spawn, 0)
  200. else
  201. PlayFlavor(NPC, "voiceover/english/optional3/halfelf_base_1/ft/halfelf/halfelf_base_1_1_death_gf_1a659852.mp3", "We must withdraw before we all die!", "", 2249500792, 2154633904, Spawn, 0)
  202. end
  203. end
  204. end
  205. function Hum_death(NPC,Spawn)
  206. if GetGender(NPC)==1 then
  207. choice = MakeRandomInt(1,2)
  208. if choice == 1 then
  209. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_death_gm_3e24be0b.mp3", "Cover me while we regroup!", "", 144951462, 3922442401)
  210. elseif choice == 2 then
  211. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_death_gm_7612214f.mp3", "All hands retreat!", "", 3033325782, 1103449586)
  212. end
  213. else
  214. choice = MakeRandomInt(1,2)
  215. if choice == 1 then
  216. PlayFlavor(NPC, "voiceover/english/optional3/human_base_1/ft/human/human_base_1_1_death_gf_3e24be0b.mp3", "Cover me while we regroup!", "", 3876965132, 3906042379)
  217. else
  218. PlayFlavor(NPC, "voiceover/english/optional3/human_base_1/ft/human/human_base_1_1_death_gf_7612214f.mp3", "All hands retreat!", "", 3620177897, 757784861)
  219. end
  220. end
  221. end
  222. -- HealthChange CHECK --
  223. function healthchanged(NPC,Spawn) --RACE CHECK
  224. Model = GetModelType(NPC)
  225. if GetHP(NPC) <= GetMaxHP(NPC) * 0.55 and GetHP(NPC) >= GetMaxHP(NPC) * 0.45 then
  226. if IsAlive(NPC) and IsInCombat(NPC)==true and IsPlayer(Spawn)and GetTempVariable(NPC, "CalloutTimer")== "false" and GetTempVariable(NPC, "HealthCallout")== "false" then
  227. SetTempVariable(NPC, "HealthCallout", "true")
  228. AddTimer(NPC,9000,"ResetTimer")
  229. AddTimer(NPC,9000,"HealthReset")
  230. if Model >= 1462 and Model <= 1471 then
  231. Barb_healthchanged(NPC,Spawn)
  232. elseif Model ==78 or Model == 79 then
  233. HfE_healthchanged(NPC,Spawn)
  234. elseif Model ==132 or Model == 134 then
  235. Hum_healthchanged(NPC,Spawn)
  236. else
  237. end
  238. end
  239. end
  240. --[[ Race= GetRace(NPC)
  241. if Race == 0 then
  242. Barb_healthchanged(NPC,Spawn)
  243. elseif Race ==6 then
  244. HfE_healthchanged(NPC,Spawn)
  245. elseif Race==9 then
  246. Hum_healthchanged(NPC,Spawn)
  247. else
  248. end
  249. end
  250. end]]--
  251. end
  252. function Barb_healthchanged(NPC, Spawn)
  253. if GetGender(NPC)==1 then
  254. choice = MakeRandomInt(1,3)
  255. if choice == 1 then
  256. 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)
  257. elseif choice == 2 then
  258. 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)
  259. elseif choice == 3 then
  260. 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
  261. else
  262. choice = MakeRandomInt(1,3)
  263. if choice == 1 then
  264. 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)
  265. elseif choice == 2 then
  266. 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)
  267. elseif choice == 3 then
  268. 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
  269. end
  270. end
  271. function HfE_healthchanged(NPC, Spawn)
  272. if GetGender(NPC)==1 then
  273. choice = MakeRandomInt(1,2)
  274. if choice == 1 then
  275. PlayFlavor(NPC, "voiceover/english/halfelf_base_1/ft/halfelf/halfelf_base_1_1_halfhealth_gm_e0686420.mp3", "Well, it seems you have some martial arts skills.", "", 1009191098, 3016339818, Spawn)
  276. elseif choice == 2 then
  277. PlayFlavor(NPC, "voiceover/english/halfelf_base_1/ft/halfelf/halfelf_base_1_1_halfhealth_gm_e48659f9.mp3", "Now, that really hurt!", "", 241651222, 476491397, Spawn)
  278. end
  279. else
  280. choice = MakeRandomInt(1,2)
  281. if choice == 1 then
  282. PlayFlavor(NPC, "voiceover/english/optional3/halfelf_base_1/ft/halfelf/halfelf_base_1_1_halfhealth_gf_e0686420.mp3", "Well, it seems you have some martial arts skills.", "", 743699854, 1906875496, Spawn)
  283. elseif choice == 2 then
  284. PlayFlavor(NPC, "voiceover/english/optional3/halfelf_base_1/ft/halfelf/halfelf_base_1_1_halfhealth_gf_e48659f9.mp3", "Now, that really hurt!", "", 413378164, 719939114, Spawn)
  285. end
  286. end
  287. end
  288. function Hum_healthchanged(NPC, Spawn)
  289. if GetGender(NPC)==1 then
  290. choice = MakeRandomInt(1,2)
  291. if choice == 1 then
  292. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_halfhealth_gm_1babf022.mp3", "Is that all you have?", "", 170267964, 1158805306)
  293. elseif choice == 2 then
  294. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_halfhealth_gm_8529e507.mp3", "I can't hold them forever!", "", 644448824, 755050547)
  295. end
  296. else
  297. choice = MakeRandomInt(1,2)
  298. if choice == 1 then
  299. PlayFlavor(NPC, "voiceover/english/optional3/human_base_1/ft/human/human_base_1_1_halfhealth_gf_8529e507.mp3", "I can't hold them forever!", "", 3371581229, 792393228)
  300. elseif choice == 2 then
  301. PlayFlavor(NPC, "voiceover/english/optional3/human_base_1/ft/human/human_base_1_1_halfhealth_gf_1babf022.mp3", "Is that all you have?", "", 2979351329, 4050238683)
  302. end
  303. end
  304. end
  305. -- Victory CHECK --
  306. function victory(NPC,Spawn) --RACE CHECK
  307. Model = GetModelType(NPC)
  308. if Model >= 1462 and Model <= 1471 then
  309. Barb_victory(NPC,Spawn)
  310. elseif Model ==78 or Model == 79 then
  311. HfE_victory(NPC,Spawn)
  312. elseif Model ==132 or Model == 134 then
  313. Hum_victory(NPC,Spawn)
  314. else
  315. end
  316. --[[ Race= GetRace(NPC)
  317. if Race == 0 then
  318. Barb_victory(NPC,Spawn)
  319. elseif Race ==6 then
  320. HfE_victory(NPC,Spawn)
  321. elseif Race==9 then
  322. Hum_victory(NPC,Spawn)
  323. else
  324. end]]--
  325. end
  326. function Barb_victory(NPC,Spawn)
  327. if GetGender(NPC)==1 then
  328. choice = MakeRandomInt(1,3)
  329. if choice == 1 then
  330. 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)
  331. elseif choice == 2 then
  332. 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)
  333. elseif choice == 3 then
  334. 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)
  335. end
  336. else
  337. choice = MakeRandomInt(1,3)
  338. if choice == 1 then
  339. 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)
  340. elseif choice == 2 then
  341. 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)
  342. elseif choice == 3 then
  343. PlayFlavor(NPC, "voiceover/english/barbarian_base_1/ft/barbarian/barbarian_base_1_1_victory_gf_f87005b5.mp3", "Now you will have peace.", "", 2974774059, 665726799)
  344. end
  345. end
  346. end
  347. function HfE_victory(NPC,Spawn)
  348. if GetGender(NPC)==1 then
  349. choice = MakeRandomInt(1,2)
  350. if choice == 1 then
  351. 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, Spawn)
  352. elseif choice == 2 then
  353. 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, Spawn)
  354. end
  355. else
  356. choice = MakeRandomInt(1,2)
  357. if choice == 1 then
  358. PlayFlavor(NPC, "voiceover/english/optional3/human_base_1/ft/human/human_base_1_1_victory_gf_6f459088.mp3", "Flee now or meet this one's fate.", "", 290765367, 473549337, Spawn)
  359. elseif choice == 2 then
  360. PlayFlavor(NPC, "voiceover/english/optional3/human_base_1/ft/human/human_base_1_1_victory_gf_ec0cd85a.mp3", "I hope they're all this easy.", "", 1073758360, 3342649012, Spawn)
  361. end
  362. end
  363. end
  364. function Hum_victory(NPC,Spawn)
  365. if GetGender(NPC)==1 then
  366. choice = MakeRandomInt(1,3)
  367. if choice == 1 then
  368. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_victory_gm_153f12ff.mp3", "One down!", "", 3009518664, 4140389760)
  369. elseif choice == 2 then
  370. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_victory_gm_4553e1e0.mp3", "Flee now or meet this one's fate.", "", 3032162747, 1359206304)
  371. elseif choice == 3 then
  372. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_victory_gm_ec0cd85a.mp3", "I hope they're all this easy.", "", 2687289628, 2303639320)
  373. end
  374. else
  375. choice = MakeRandomInt(1,2)
  376. if choice == 1 then
  377. PlayFlavor(NPC, "voiceover/english/optional3/human_base_1/ft/human/human_base_1_1_victory_gf_6f459088.mp3", "Flee now or meet this one's fate.", "", 290765367, 473549337)
  378. elseif choice == 2 then
  379. PlayFlavor(NPC, "voiceover/english/optional3/human_base_1/ft/human/human_base_1_1_victory_gf_ec0cd85a.mp3", "I hope they're all this easy.", "", 1073758360, 3342649012)
  380. end
  381. end
  382. end
  383. function ResetTimer(NPC) -- 7 SECOND PAUSE BETWEEN VOs
  384. SetTempVariable(NPC, "CalloutTimer", "false")
  385. end
  386. function HealthReset (NPC) --SO HALF HEALTH DOESN'T SPAM
  387. SetTempVariable(NPC, "HealthCallout", "false")
  388. SetTempVariable(NPC, "CalloutTimer", "false")
  389. end