Antonica_Skeleton1.lua 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. --[[
  2. Script Name : SpawnScripts/Generic/MonsterCallouts/Antonica_Skeleton1.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.23 08:07:05
  5. Script Purpose :
  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. --[[ if CalloutTimer == false then
  32. CalloutTimer = true
  33. AddTimer(NPC,7000,"ResetTimer")]]--
  34. local choice = MakeRandomInt(1,9)
  35. if choice == 1 then
  36. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_aggro_c77d7bff.mp3", "Your eyes are so pretty.", "", 1412152942, 873988632)
  37. elseif choice == 2 then
  38. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_aggro_2168c5.mp3", "Seek death and it finds you.", "", 2988489621, 1045543573)
  39. elseif choice == 3 then
  40. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_aggro_8bc7a2cc.mp3", "Your blood calls to me.", "", 1242322025, 1154999668)
  41. elseif choice == 4 then
  42. if GetClass(Spawn)>=1 and GetClass(Spawn)<=10 then
  43. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_maofighter_ca2c63b.mp3", "Try your weapons on me fighter.", "", 3164950968, 4289608686)
  44. else
  45. PlayFlavor(NPC, "voiceover/english/skeleton_antonica/ft/skeleton/skeleton_antonica_1_aggro_f99f2382.mp3", "The living!", "", 3813843601, 915898224)
  46. end
  47. elseif choice == 5 then
  48. PlayFlavor(NPC, "voiceover/english/skeleton_antonica/ft/skeleton/skeleton_antonica_1_aggro_f99f2382.mp3", "The living!", "", 3813843601, 915898224)
  49. elseif choice == 6 then
  50. PlayFlavor(NPC, "voiceover/english/skeleton_antonica/ft/skeleton/skeleton_antonica_1_aggro_2ae99008.mp3", "Warm blood!", "", 2856072717, 3172883175)
  51. elseif choice == 7 then
  52. PlayFlavor(NPC, "voiceover/english/skeleton_antonica/ft/skeleton/skeleton_antonica_1_aggro_23962ef.mp3", "Kill the living.", "", 2553829981, 3192808961)
  53. elseif choice == 8 then
  54. PlayFlavor(NPC, "voiceover/english/optional3/skeleton_base_2/ft/skeleton/skeleton_base_2_1_aggro_daf16808.mp3", "To the grave with you!", "", 958122326, 1810359159)
  55. elseif choice == 9 then
  56. PlayFlavor(NPC, "voiceover/english/optional3/skeleton_base_2/ft/skeleton/skeleton_base_2_1_aggro_18d1544d.mp3", "As I rise from the grave, you will now take my place!", "", 485726074, 3646499350)
  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. local choice = MakeRandomInt(1,3)
  66. if choice == 1 then
  67. PlayFlavor(NPC, "voiceover/english/optional3/skeleton_antonica/ft/skeleton/skeleton_antonica_2_death_d6173b75.mp3", "Sleep.", "", 1226539910, 3748325130)
  68. elseif choice == 2 then
  69. PlayFlavor(NPC, "voiceover/english/skeleton_antonica/ft/skeleton/skeleton_antonica_1_death_d6173b75.mp3", "Sleep.", "", 1041558061, 2894745512)
  70. elseif choice == 3 then
  71. PlayFlavor(NPC, "voiceover/english/optional3/skeleton_base_2/ft/skeleton/skeleton_base_2_1_death_edc04fb8.mp3", "That pile of bones was my friend!", "", 2317728806, 1758283676)
  72. elseif choice == 4 then
  73. PlayFlavor(NPC, "voiceover/english/optional3/skeleton_antonica/ft/skeleton/skeleton_antonica_2_death_f4484123.mp3", "The rest has come.", "", 1639743123, 2395220586)
  74. elseif choice == 5 then
  75. PlayFlavor(NPC, "voiceover/english/skeleton_antonica/ft/skeleton/skeleton_antonica_1_death_f4484123.mp3", "The rest has come.", "", 2605935830, 3475351545)
  76. end
  77. end
  78. --end
  79. function FifteenCall(NPC,Player)
  80. if IsInCombat(NPC)==true and IsAlive(NPC) == true and math.random(0,100)<=25 then
  81. --[[ if CalloutTimer == false then
  82. CalloutTimer = true
  83. AddTimer(NPC,7000,"ResetTimer")]]--
  84. local choice = MakeRandomInt(1,3)
  85. if choice == 1 then
  86. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_everyfifteenseconds_8c0aac8c.mp3", "Nightmares are not only for slumber.", "", 4250803944, 3206368665)
  87. elseif choice == 2 then
  88. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_everyfifteenseconds_m_62f06fca.mp3", "You cannot cut what does not bleed.", "", 2912039571, 2278337941)
  89. elseif choice == 3 then
  90. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_everyfifteenseconds_e661e726.mp3", "I'll choke the breath from your lungs.", "", 2746342738, 2521715261)
  91. end
  92. end
  93. if IsAlive(NPC)then
  94. AddTimer(NPC,15000,"FifteenCall")
  95. end
  96. end
  97. --end
  98. function healthchanged(NPC, Spawn)
  99. --[[if CalloutTimer == false then
  100. CalloutTimer = true
  101. AddTimer(NPC,7000,"ResetTimer")]]--
  102. if HealthCallout == false then
  103. if GetHP(NPC) < GetMaxHP(NPC) * 0.55 then
  104. if GetHP(NPC) > GetMaxHP(NPC) * 0.45 then
  105. HealthCallout = true
  106. AddTimer(NPC,12500,"HealthReset")
  107. local choice = MakeRandomInt(1,2)
  108. if choice == 1 then
  109. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_halfhealth_d9ece37f.mp3", "You've shaken the dust from my bones.", "", 2011286772, 326848383)
  110. elseif choice == 2 then
  111. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_halfhealth_a4c947e4.mp3", "I'm shattered and broken.", "", 4021018144, 1305053073)
  112. end
  113. end
  114. end
  115. end
  116. end
  117. --end
  118. function victory(NPC,Spawn)
  119. --[[if CalloutTimer == false then
  120. CalloutTimer = true
  121. AddTimer(NPC,7000,"ResetTimer")]]--
  122. local choice = MakeRandomInt(1,4)
  123. if choice == 1 then
  124. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_victory_d2a649e7.mp3", "The life ebbs from them so quickly.", "", 2674394976, 3151731037)
  125. elseif choice == 2 then
  126. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_victory_fda8e7a9.mp3", "So stops the awful beating of their heart.", "", 1120117600, 3872148135)
  127. elseif choice == 3 then
  128. PlayFlavor(NPC, "voiceover/english/skeleton_base_1/ft/skeleton/skeleton_base_1_1_victory_ccde17c2.mp3", "Another falls to join our ranks.", "", 3285235030, 4198320186)
  129. elseif choice == 4 then
  130. PlayFlavor(NPC, "voiceover/english/optional3/skeleton_antonica/ft/skeleton/skeleton_antonica_2_victory_aaa1685c.mp3", "Rise from the grave.", "", 3932775725, 794749133)
  131. end
  132. end
  133. --end
  134. function ResetTimer(NPC) -- 7 SECOND PAUSE BETWEEN VOs
  135. CalloutTimer = false
  136. end
  137. function HealthReset (NPC) --SO HALF HEALTH DOESN'T SPAM
  138. HealthCallout = false
  139. end