9
3

BaseHalfElf1.lua 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. --[[
  2. Script Name : SpawnScripts/Generic/MonsterCallouts/BaseHalfElf1.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.04.28 05:04:35
  5. Script Purpose : Base 1 Racial Halfelf 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)>=21 and GetClass(Spawn)<=30 then
  35. local choice = MakeRandomInt(1,3) --MAGE CHECK
  36. else
  37. local choice = MakeRandomInt(1,2)
  38. end
  39. if choice == 1 then
  40. PlayFlavor(NPC, "voiceover/english/halfelf_base_1/ft/halfelf/halfelf_base_1_1_aggro_gm_13a3055.mp3", "Summon help, intruders have arrived!", "", 262436067, 4127133618, Spawn)
  41. elseif choice == 2 then
  42. PlayFlavor(NPC, "voiceover/english/halfelf_base_1/ft/halfelf/halfelf_base_1_1_aggro_gm_12fbaefb.mp3", "Destroy the invader!", "", 489857902, 941763715, Spawn, 0)
  43. elseif choice == 3 then
  44. 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, Spawn) end
  45. else
  46. -- if GetClass(Spawn)>=21 and GetClass(Spawn)<=32 then
  47. -- local choice = MakeRandomInt(1,3) --MAGE CHECK (MISSING VO)
  48. -- else
  49. local choice = MakeRandomInt(1,2)
  50. -- end
  51. if choice == 1 then
  52. PlayFlavor(NPC, "voiceover/english/optional3/halfelf_base_1/ft/halfelf/halfelf_base_1_1_aggro_gf_12fbaefb.mp3", "Destroy the invader!", "", 1313233821, 723410897, Spawn)
  53. elseif choice == 2 then
  54. PlayFlavor(NPC, "voiceover/english/optional3/halfelf_base_1/ft/halfelf/halfelf_base_1_1_aggro_gf_a68f64b6.mp3", "Alarm! Alarm!", "", 1220383018, 2962002142, Spawn)
  55. elseif choice == 3 then
  56. 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)
  57. end
  58. AddTimer(NPC,15000,"FifteenCall")
  59. end
  60. end
  61. function death(NPC,Spawn)
  62. --[[if CalloutTimer == false then
  63. CalloutTimer = true
  64. AddTimer(NPC,7000,"ResetTimer")]]--
  65. if GetGender(NPC)==1 then
  66. local choice = MakeRandomInt(1,2)
  67. if choice == 1 then
  68. 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)
  69. elseif choice == 2 then
  70. 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)
  71. end
  72. else
  73. local choice = MakeRandomInt(1,2)
  74. if choice == 1 then
  75. 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)
  76. else
  77. 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)
  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/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)
  91. elseif choice == 2 then
  92. PlayFlavor(NPC, "voiceover/english/halfelf_base_1/ft/halfelf/halfelf_base_1_1_halfhealth_gm_e48659f9.mp3", "Now, that really hurt!", "", 241651222, 476491397, Spawn)
  93. end
  94. else
  95. local choice = MakeRandomInt(1,2)
  96. if choice == 1 then
  97. 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)
  98. elseif choice == 2 then
  99. 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)
  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,2)
  112. if choice == 1 then
  113. 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)
  114. elseif choice == 2 then
  115. 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)
  116. end
  117. else
  118. local choice = MakeRandomInt(1,2)
  119. if choice == 1 then
  120. 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)
  121. elseif choice == 2 then
  122. 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)
  123. end
  124. end
  125. end
  126. --end
  127. function ResetTimer(NPC) -- 7 SECOND PAUSE BETWEEN VOs
  128. CalloutTimer = false
  129. end
  130. function HealthReset (NPC) --SO HALF HEALTH DOESN'T SPAM
  131. HealthCallout = false
  132. end