BaseHuman1.lua 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. --[[
  2. Script Name : SpawnScripts/Generic/MonsterCallouts/BaseHuman1.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.04.26 08:04:45
  5. Script Purpose : Base Racial Human 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. choice = MakeRandomInt(1,4) --SCOUT CHECK
  36. else
  37. choice = MakeRandomInt(1,3)
  38. end
  39. if choice == 1 then
  40. 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)
  41. elseif choice == 2 then
  42. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_aggro_gm_a30c4f9d.mp3", "To arms!", "", 1238020980, 748146443)
  43. elseif choice == 3 then
  44. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_aggro_gm_583690dc.mp3", "Summon help! We have invaders!", "", 3340212225, 279643307)
  45. elseif choice == 4 then
  46. 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)
  47. end
  48. else
  49. choice = MakeRandomInt(1,3)
  50. if choice == 1 then
  51. 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)
  52. elseif choice == 2 then
  53. 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)
  54. elseif choice == 3 then
  55. PlayFlavor(NPC, "voiceover/english/optional3/human_base_1/ft/human/human_base_1_1_aggro_gf_a30c4f9d.mp3", "To arms!", "", 2291750057, 1030180613)
  56. end
  57. AddTimer(NPC,15000,"FifteenCall")
  58. end
  59. end
  60. function death(NPC,Spawn)
  61. --[[if CalloutTimer == false then
  62. CalloutTimer = true
  63. AddTimer(NPC,7000,"ResetTimer")]]--
  64. if GetGender(NPC)==1 then
  65. local choice = MakeRandomInt(1,2)
  66. if choice == 1 then
  67. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_death_gm_3e24be0b.mp3", "Cover me while we regroup!", "", 144951462, 3922442401)
  68. elseif choice == 2 then
  69. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_death_gm_7612214f.mp3", "All hands retreat!", "", 3033325782, 1103449586)
  70. end
  71. else
  72. local choice = MakeRandomInt(1,2)
  73. if choice == 1 then
  74. 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)
  75. else
  76. PlayFlavor(NPC, "voiceover/english/optional3/human_base_1/ft/human/human_base_1_1_death_gf_7612214f.mp3", "All hands retreat!", "", 3620177897, 757784861)
  77. end
  78. end
  79. end
  80. --end
  81. function healthchanged(NPC, Spawn)
  82. --[[ if CalloutTimer == false then
  83. CalloutTimer = true
  84. AddTimer(NPC,7000,"ResetTimer")]]--
  85. if HealthCallout == false then
  86. if GetHP(NPC) <= GetMaxHP(NPC) * 0.55 and GetHP(NPC) >= GetMaxHP(NPC) * 0.45 then
  87. if GetGender(NPC)==1 then
  88. local choice = MakeRandomInt(1,2)
  89. if choice == 1 then
  90. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_halfhealth_gm_1babf022.mp3", "Is that all you have?", "", 170267964, 1158805306)
  91. elseif choice == 2 then
  92. 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)
  93. end
  94. else
  95. local choice = MakeRandomInt(1,2)
  96. if choice == 1 then
  97. 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)
  98. elseif choice == 2 then
  99. 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)
  100. end
  101. end
  102. end
  103. end
  104. end
  105. --end
  106. function victory(NPC,Spawn)
  107. --[[if CalloutTimer == false then
  108. CalloutTimer = true
  109. AddTimer(NPC,7000,"ResetTimer")]]--
  110. if GetGender(NPC)==1 then
  111. local choice = MakeRandomInt(1,3)
  112. if choice == 1 then
  113. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_victory_gm_153f12ff.mp3", "One down!", "", 3009518664, 4140389760)
  114. elseif choice == 2 then
  115. 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)
  116. elseif choice == 3 then
  117. 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)
  118. end
  119. else
  120. local choice = MakeRandomInt(1,2)
  121. if choice == 1 then
  122. 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)
  123. elseif choice == 2 then
  124. 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)
  125. end
  126. end
  127. end
  128. --end
  129. function ResetTimer(NPC) -- 7 SECOND PAUSE BETWEEN VOs
  130. CalloutTimer = false
  131. end
  132. function HealthReset (NPC) --SO HALF HEALTH DOESN'T SPAM
  133. HealthCallout = false
  134. end