Dark_Coven.lua 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. --[[
  2. Script Name : SpawnScripts/Generic/MonsterCallouts/Dark_Coven.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.04.26 12:04:11
  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. CalloutTimer = true
  32. AddTimer(NPC,7000,"ResetTimer")
  33. if GetGender(NPC)==1 then --GENDER CHECK. 1==Male
  34. local choice = MakeRandomInt(1,3)
  35. if choice == 1 then
  36. PlayFlavor(NPC, "voiceover/english/optional3/human_dark_coven/ft/human/human_dark_coven_1_aggro_gm_949dc856.mp3", "Our plans do not include you!", "", 405839630, 785819215)
  37. elseif choice == 2 then
  38. PlayFlavor(NPC, "voiceover/english/optional3/human_dark_coven/ft/human/human_dark_coven_1_aggro_gm_a60cf2ef.mp3", "We will not allow your meddlesome ways to continue.", "", 450486378, 3835111883)
  39. elseif choice == 3 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. end
  42. else
  43. local choice = MakeRandomInt(1,2)
  44. if choice == 1 then
  45. PlayFlavor(NPC, "voiceover/english/human_dark_coven/ft/human/human_dark_coven_1_aggro_gf_949dc856.mp3", "Our plans do not include you!", "", 3085098101, 2051124081)
  46. elseif choice == 2 then
  47. PlayFlavor(NPC, "voiceover/english/human_dark_coven/ft/human/human_dark_coven_1_aggro_gf_a60cf2ef.mp3", "We will not allow your meddlesome ways to continue.", "", 4234607165, 2760526135)
  48. elseif choice == 3 then
  49. PlayFlavor(NPC, "voiceover/english/human_dark_coven/ft/human/human_dark_coven_1_aggro_gf_45499fb0.mp3", "What? Who dares to disrupt the Dark Coven?", "", 1379384971, 1110995776)
  50. end
  51. AddTimer(NPC,15000,"FifteenCall")
  52. end
  53. end
  54. function death(NPC,Spawn)
  55. --[[if CalloutTimer == false then
  56. CalloutTimer = true
  57. AddTimer(NPC,7000,"ResetTimer")]]--
  58. if GetGender(NPC)==1 then
  59. local choice = MakeRandomInt(1,2)
  60. if choice == 1 then
  61. PlayFlavor(NPC, "voiceover/english/optional3/human_dark_coven/ft/human/human_dark_coven_1_death_gm_3cf819de.mp3", "I hope that doesn't happen to me!", "", 2189708975, 2914511928)
  62. elseif choice == 2 then
  63. PlayFlavor(NPC, "voiceover/english/optional3/human_dark_coven/ft/human/human_dark_coven_1_death_gm_f91e0887.mp3", "Thule's blood! You'll pay for that!", "", 3536447254, 3337139055)
  64. end
  65. else
  66. local choice = MakeRandomInt(1,2)
  67. if choice == 1 then
  68. PlayFlavor(NPC, "voiceover/english/human_dark_coven/ft/human/human_dark_coven_1_death_gf_f91e0887.mp3", "Thule's blood! You'll pay for that!", "", 2051236772, 852294244)
  69. else
  70. PlayFlavor(NPC, "voiceover/english/human_dark_coven/ft/human/human_dark_coven_1_death_gf_3cf819de.mp3", "I hope that doesn't happen to me!", "", 934100362, 1666973583)
  71. end
  72. end
  73. end
  74. --end
  75. function healthchanged(NPC, Spawn)
  76. --[[ if CalloutTimer == false then
  77. CalloutTimer = true
  78. AddTimer(NPC,7000,"ResetTimer")]]--
  79. if HealthCallout == false then
  80. if GetHP(NPC) <= GetMaxHP(NPC) * 0.55 and GetHP(NPC) >= GetMaxHP(NPC) * 0.45 then
  81. if GetGender(NPC)==1 then
  82. --MISSING
  83. else
  84. local choice = MakeRandomInt(1,2)
  85. if choice == 1 then
  86. PlayFlavor(NPC, "voiceover/english/human_dark_coven/ft/human/human_dark_coven_1_halfhealth_gf_9104e3c1.mp3", "Oh drat. I hate the reincarnation process!", "", 4015796652, 3375474478)
  87. elseif choice == 2 then
  88. PlayFlavor(NPC, "voiceover/english/human_dark_coven/ft/human/human_dark_coven_1_halfhealth_gf_c2957367.mp3", "Noooo! I'm melting!", "heart", 4150698035, 4276254786)
  89. end
  90. end
  91. end
  92. end
  93. end
  94. --end
  95. function victory(NPC,Spawn)
  96. --[[if CalloutTimer == false then
  97. CalloutTimer = true
  98. AddTimer(NPC,7000,"ResetTimer")]]--
  99. if GetGender(NPC)==1 then
  100. local choice = MakeRandomInt(1,2)
  101. if choice == 1 then
  102. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_halfhealth_gm_1babf022.mp3", "Is that all you have?", "", 170267964, 1158805306)
  103. elseif choice == 2 then
  104. PlayFlavor(NPC, "voiceover/english/optional3/human_foresters/ft/human/human_foresters_1_aggro_gm_da8c1c5d.mp3", "You angered the spirits of the woods for the last time.", "", 3652855832, 3722520538) end
  105. else
  106. local choice = MakeRandomInt(1,2)
  107. if choice == 1 then
  108. PlayFlavor(NPC, "voiceover/english/barbarian_dreadnaught/ft/barbarian/barbarian_dreadnaught_1_victory_gf_e6d7960e.mp3", "You didn't stand a chance!", "", 3255267278, 1071089122)
  109. elseif choice == 2 then
  110. PlayFlavor(NPC, "voiceover/english/barbarian_base_1/ft/barbarian/barbarian_base_1_1_victory_gf_f87005b5.mp3", "Now you will have peace!", "", 2974774059, 665726799)
  111. end
  112. end
  113. end
  114. --end
  115. function ResetTimer(NPC) -- 7 SECOND PAUSE BETWEEN VOs
  116. CalloutTimer = false
  117. end
  118. function HealthReset (NPC) --SO HALF HEALTH DOESN'T SPAM
  119. HealthCallout = false
  120. end