Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --//////////////////////////////////
- --//// Holystone Productions ////
- --//// Copy Right ////
- --//// Blizzlike Repack v 3.0 ////
- --//////////////////////////////////
- print("Loading Lady Deathwhisper")
- --[ Npc's ID's ]--
- local LadyDeathwhisper = 36855
- local NPC_Darnavan = 38472
- local NPC_Cult_Fanatic = 37890
- local NPC_Cult_Adherent = 37949
- --[ Spells ]--
- -- Lady Deathwhisper
- local Spell_Mana_Barrier = 70842
- local Spell_Shadow_Bolt_10N = 71254
- local Spell_Shadow_Bolt_25N = 72008
- local Spell_Shadow_Bolt_10HC = 72008
- local Spell_Shadow_Bolt_25HC = 72504
- local Spell_Death_and_Decay_10N = 71001
- local Spell_Death_and_Decay_25N = 72109
- local Spell_Death_and_Decay_10HC = 71001
- local Spell_Death_and_Decay_25HC = 72109
- local Spell_Dominate_Mind = 71289
- local Spell_Dark_Empowerment = 70901
- local Spell_Frostbolt_10N = 71420
- local Spell_Frostbolt_25N = 72007
- local Spell_Frostbolt_10HC = 72501
- local Spell_Frostbolt_25HC = 72502
- local Spell_FrostVolley = 72905
- local Spell_Touch_of_Insignificance = 71204
- local Spell_Berserk = 61714
- -- All Adds
- local SPELL_TELEPORT_VISUAL = 41236
- -- Fanatics
- local SPELL_DARK_TRANSFORMATION = 70900
- local SPELL_NECROTIC_STRIKE = 70659
- local SPELL_SHADOW_CLEAVE = 70670
- local SPELL_VAMPIRIC_MIGHT = 70674
- local SPELL_FANATIC_S_DETERMINATION = 71235
- local SPELL_DARK_MARTYRDOM_FANATIC = 71236
- -- Adherents
- local SPELL_DARK_EMPOWERMENT = 70901
- local SPELL_FROST_FEVER = 67767
- local SPELL_DEATHCHILL_BOLT = 70594
- local SPELL_DEATHCHILL_BLAST = 70906
- local SPELL_CURSE_OF_TORPOR = 71237
- local SPELL_SHORUD_OF_THE_OCCULT = 70768
- local SPELL_ADHERENT_S_DETERMINATION = 71234
- local SPELL_DARK_MARTYRDOM_ADHERENT = 70903
- -- Vengeful Shade
- local SPELL_VENGEFUL_BLAST = 71544
- local SPELL_VENGEFUL_BLAST_PASSIVE = 71494
- local SPELL_VENGEFUL_BLAST_25N = 72010
- local SPELL_VENGEFUL_BLAST_10H = 72011
- local SPELL_VENGEFUL_BLAST_25H = 72012
- -- Darnavan
- local SPELL_BLADESTORM = 65947
- local SPELL_CHARGE = 65927
- local SPELL_INTIMIDATING_SHOUT = 65930
- local SPELL_MORTAL_STRIKE = 65926
- local SPELL_SHATTERING_THROW = 65940
- local SPELL_SUNDER_ARMOR = 65936
- -- Summon Positions
- local Lady_Summon_Positions_One = {-578.7066, 2154.167, 51.01529, 1.692969}
- local Lady_Summon_Positions_Two = {-598.9028, 2155.005, 51.01530, 1.692969}
- local Lady_Summon_Positions_Tre = {-619.2864, 2154.460, 51.01530, 1.692969}
- local Lady_Summon_Positions_Fore = {-578.6996, 2269.856, 51.01529, 4.590216}
- local Lady_Summon_Positions_Five = {-598.9688, 2269.264, 51.01529, 4.590216}
- local Lady_Summon_Positions_Sixe = {-619.4323, 2268.523, 51.01530, 4.590216}
- local Lady_Summon_Positions_Seven = {-524.2480, 2211.920, 62.90960, 3.141592}
- --[ Speaks ]--
- local Say_LadyDeathWhisper_Intro_One = 17272
- local Say_LadyDeathWhisper_Intro_Two = 17273
- local Say_LadyDeathWhisper_Intro_Tre = 16878
- local Say_LadyDeathWhisper_Intro_For = 17268
- local Say_LadyDeathWhisper_Intro_Five = 17269
- local Say_LadyDeathWhisper_Intro_Six = 17270
- local Say_LadyDeathWhisper_Intro_Seven = 17271
- local Say_LadyDeathWhisper_Aggro = 16868
- local Say_LadyDeathWhisper_Phase_Two = 16877
- local Say_LadyDeathWhisper_Dominate_Mind = 16876
- local Say_LadyDeathWhisper_Dark_Empowerment = 16873
- local Say_LadyDeathWhisper_Dark_Transformation = 16874
- local Say_LadyDeathWhisper_Animate_Dead = 16875
- local Say_LadyDeathWhisper_Kill_One = 16869
- local Say_LadyDeathWhisper_Kill_Two = 16870
- local Say_LadyDeathWhisper_Berserk = 16872
- local Say_LadyDeathWhisper_Death = 16871
- local Say_LadyDeathWhisper_Intro_One_Speak = "You have found your way here, because you are among the few gifted with true vision in a world cursed with blindness."
- local Say_LadyDeathWhisper_Intro_Two_Speak = "You can see through the fog that hangs over this world like a shroud, and grasp where true power lies."
- local Say_LadyDeathWhisper_Intro_Tre_Speak = "Fix your eyes upon your crude hands: the sinew, the soft meat, the dark blood coursing within."
- local Say_LadyDeathWhisper_Intro_For_Speak = "It is a weakness; a crippling flaw.... A joke played by the Creators upon their own creations."
- local Say_LadyDeathWhisper_Intro_Five_Speak = "The sooner you come to accept your condition as a defect, the sooner you will find yourselves in a position to transcend it."
- local Say_LadyDeathWhisper_Intro_Six_Speak = "Through our Master, all things are possible. His power is without limit, and his will unbending."
- local Say_LadyDeathWhisper_Intro_Seven_Speak = "Those who oppose him will be destroyed utterly, and those who serve -- who serve wholly, unquestioningly, with utter devotion of mind and soul -- elevated to heights beyond your ken."
- local Say_LadyDeathWhisper_Aggro_Speak = "What is this disturbance?! You dare trespass upon this hallowed ground? This shall be your final resting place."
- local Say_LadyDeathWhisper_Phase_Two_Speak = "Enough! I see I must take matters into my own hands!"
- local Say_LadyDeathWhisper_Dominate_Mind_Speak = "You are weak, powerless to resist my will!"
- local Say_LadyDeathWhisper_Dark_Empowerment_Speak = "Take this blessing and show these intruders a taste of our master's power."
- local Say_LadyDeathWhisper_Dark_Transformation_Speak = "I release you from the curse of flesh!"
- local Say_LadyDeathWhisper_Animate_Dead_Speak = "Arise and exult in your pure form!"
- local Say_LadyDeathWhisper_Kill_One_Speak = "Do you yet grasp of the futility of your actions?"
- local Say_LadyDeathWhisper_Kill_Two_Speak = "Embrace the darkness... Darkness eternal!"
- local Say_LadyDeathWhisper_Berserk_Speak = "This charade has gone on long enough."
- local Say_LadyDeathWhisper_Death_Speak = "All part of the masters plan! Your end is... inevitable!"
- --[ Lady Deathwhisper On Spawn ]--
- function LadyDeathWhisper_OnSpawn(punit, event)
- local Lady = punit
- Lady:Root()
- Lady:SetFaction(35)
- local Player = punit:GetClosestPlayer()
- if punit:GetDistanceYards(Player) < 110 then
- Lady:SendChatMessage(14, 0, Say_LadyDeathWhisper_Intro_One_Speak)
- Lady:PlaySoundToSet(Say_LadyDeathWhisper_Intro_One)
- Lady:RegisterEvent("Lady_Intro_Two", 11000, 1)
- Lady:RegisterEvent("Lady_Intro_Tre", 21000, 1)
- Lady:RegisterEvent("Lady_Intro_For", 31500, 1)
- Lady:RegisterEvent("Lady_Intro_Fiv", 39500, 1)
- Lady:RegisterEvent("Lady_Intro_Six", 48500, 1)
- Lady:RegisterEvent("Lady_Intro_Sev", 58000, 1)
- end
- local Dungeon = punit:GetDungeonDifficulty()
- if Dungeon == 0 then
- Lady:SetCombatCapable(1)
- Lady:Root()
- Lady:SetMaxHealth(3000000)
- Lady:SetMaxMana(3300000)
- end
- if Dungeon == 1 then
- Lady:SetCombatCapable(1)
- Lady:Root()
- Lady:SetMaxHealth(6000000)
- Lady:SetMaxMana(3300000)
- end
- if Dungeon == 2 then
- Lady:SetCombatCapable(1)
- Lady:Root()
- Lady:SetMaxHealth(13400000)
- Lady:SetMaxMana(11000000)
- end
- if Dungeon == 3 then
- Lady:SetCombatCapable(1)
- Lady:Root()
- Lady:SetMaxHealth(26800000)
- Lady:SetMaxMana(13900000)
- end
- end
- function Lady_Intro_Two(punit, event)
- Lady:SendChatMessage(14, 0, Say_LadyDeathWhisper_Intro_Two_Speak)
- Lady:PlaySoundToSet(Say_LadyDeathWhisper_Intro_Two)
- end
- function Lady_Intro_Tre(punit, event)
- Lady:SendChatMessage(14, 0, Say_LadyDeathWhisper_Intro_Tre_Speak)
- Lady:PlaySoundToSet(Say_LadyDeathWhisper_Intro_Tre)
- end
- function Lady_Intro_For(punit, event)
- Lady:SendChatMessage(14, 0, Say_LadyDeathWhisper_Intro_For_Speak)
- Lady:PlaySoundToSet(Say_LadyDeathWhisper_Intro_For)
- end
- function Lady_Intro_Fiv(punit, event)
- Lady:SendChatMessage(14, 0, Say_LadyDeathWhisper_Intro_Five_Speak)
- Lady:PlaySoundToSet(Say_LadyDeathWhisper_Intro_Five)
- end
- function Lady_Intro_Six(punit, event)
- Lady:SendChatMessage(14, 0, Say_LadyDeathWhisper_Intro_Six_Speak)
- Lady:PlaySoundToSet(Say_LadyDeathWhisper_Intro_Six)
- end
- function Lady_Intro_Sev(punit, event)
- Lady:SendChatMessage(14, 0, Say_LadyDeathWhisper_Intro_Seven_Speak)
- Lady:PlaySoundToSet(Say_LadyDeathWhisper_Intro_Seven)
- Lady:SetFaction(14)
- end
- RegisterUnitEvent(LadyDeathwhisper, 18, "LadyDeathWhisper_OnSpawn")
- --[ Lady DeathWhisper OnCombat ]--
- function LadyDeathWhisper_OnCombat(punit, event)
- punit:SendChatMessage(14, 0, Say_LadyDeathWhisper_Aggro_Speak)
- punit:PlaySoundToSet(Say_LadyDeathWhisper_Aggro)
- punit:CastSpell(Spell_Mana_Barrier)
- punit:AddAura(Spell_Mana_Barrier, 0)
- punit:RegisterEvent("Event_Mana_Barrage", 1000, 0)
- local Dungeon = punit:GetDungeonDifficulty()
- if Dungeon == 0 then -- 10 Normal
- punit:RegisterEvent("Event_LadyDeathwhisper_Berserk", 600000, 1)
- punit:RegisterEvent("Event_Death_and_Decay", 10000, 0)
- punit:RegisterEvent("Event_P1_Wave", 5000, 0)
- punit:RegisterEvent("Event_P1_Shadow_Bolt", math.random (5500, 6000), 0)
- punit:RegisterEvent("Event_P1_Empower_Cultist", math.random (20000, 30000), 0)
- punit:RegisterEvent("Event_Phase_Two", 1000, 0)
- end
- if Dungeon == 1 then -- 10 Heroic
- punit:RegisterEvent("Event_LadyDeathwhisper_Berserk", 600000, 1)
- punit:RegisterEvent("Event_Death_and_Decay", 10000, 0)
- punit:RegisterEvent("Event_P1_Wave", 5000, 0)
- punit:RegisterEvent("Event_P1_Shadow_Bolt", math.random (5500, 6000), 0)
- punit:RegisterEvent("Event_P1_Empower_Cultist", math.random (20000, 30000), 0)
- punit:RegisterEvent("Event_Dominate_Mind_H", 27000, 0)
- punit:RegisterEvent("Event_Phase_Two", 1000, 0)
- end
- if Dungeon == 2 then -- 25 Normal
- punit:RegisterEvent("Event_LadyDeathwhisper_Berserk", 600000, 1)
- punit:RegisterEvent("Event_Death_and_Decay", 10000, 0)
- punit:RegisterEvent("Event_P1_Wave", 5000, 0)
- punit:RegisterEvent("Event_P1_Shadow_Bolt", math.random (5500, 6000), 0)
- punit:RegisterEvent("Event_P1_Empower_Cultist", math.random (20000, 30000), 0)
- punit:RegisterEvent("Event_Dominate_Mind_H", 27000, 0)
- punit:RegisterEvent("Event_Phase_Two", 1000, 0)
- end
- if Dungeon == 3 then --25 Heroic
- punit:RegisterEvent("Event_LadyDeathwhisper_Berserk", 600000, 1)
- punit:RegisterEvent("Event_Death_and_Decay", 10000, 0)
- punit:RegisterEvent("Event_P1_Wave", 5000, 0)
- punit:RegisterEvent("Event_P1_Shadow_Bolt", math.random (5500, 6000), 0)
- punit:RegisterEvent("Event_P1_Empower_Cultist", math.random (20000, 30000), 0)
- punit:RegisterEvent("Event_Dominate_Mind_H", 27000, 0)
- punit:RegisterEvent("Event_Phase_Two", 1000, 0)
- end
- end
- function Event_Phase_Two(punit, event)
- if punit:GetManaPct() <= 1 then
- punit:PlaySoundToSet(Say_LadyDeathWhisper_Phase_Two)
- punit:SendChatMessage(14, 0, Say_LadyDeathWhisper_Phase_Two_Speak)
- punit:RemoveEvents()
- punit:UnRoot()
- punit:RemoveAura(Spell_Mana_Barrier)
- punit:SetCombatCapable(0)
- local Dungeon = punit:GetDungeonDifficulty()
- if Dungeon == 0 then -- 10 Normal
- punit:RegisterEvent("Event_P2_Frostbolt", math.random (10000, 12000), 0)
- punit:RegisterEvent("Event_P2_Frostvolley", math.random (19000, 21000), 0)
- punit:RegisterEvent("Event_Touch_of_Insignificance", math.random (6000, 9000), 0)
- punit:RegisterEvent("Event_Death_and_Decay", 10000, 0)
- punit:RegisterEvent("Event_P2_Wave", math.random (12000, 15000), 0)
- end
- if Dungeon == 1 then -- 10 Heroic
- punit:RegisterEvent("Event_P2_Frostbolt", math.random (10000, 12000), 0)
- punit:RegisterEvent("Event_P2_Frostvolley", math.random (19000, 21000), 0)
- punit:RegisterEvent("Event_Touch_of_Insignificance", math.random (6000, 9000), 0)
- punit:RegisterEvent("Event_Death_and_Decay", 10000, 0)
- punit:RegisterEvent("Event_P2_Wave", math.random (12000, 15000), 0)
- end
- if Dungeon == 2 then -- 25 Normal
- punit:RegisterEvent("Event_P2_Frostbolt", math.random (10000, 12000), 0)
- punit:RegisterEvent("Event_P2_Frostvolley", math.random (19000, 21000), 0)
- punit:RegisterEvent("Event_Touch_of_Insignificance", math.random (6000, 9000), 0)
- punit:RegisterEvent("Event_Death_and_Decay", 10000, 0)
- punit:RegisterEvent("Event_P2_Wave", math.random (12000, 15000), 0)
- end
- if Dungeon == 3 then -- 25 Heroic
- punit:RegisterEvent("Event_P2_Frostbolt", math.random (10000, 12000), 0)
- punit:RegisterEvent("Event_P2_Frostvolley", math.random (19000, 21000), 0)
- punit:RegisterEvent("Event_Touch_of_Insignificance", math.random (6000, 9000), 0)
- punit:RegisterEvent("Event_Death_and_Decay", 10000, 0)
- punit:RegisterEvent("Event_P2_Wave", math.random (12000, 15000), 0)
- end
- end
- end
- function Event_Mana_Barrage(punit, event)
- if punit:HasAura(Spell_Mana_Barrier) then
- local Heath = punit:GetMaxHealth()
- local Damage = punit:GetHealth()
- local MissingHealth = (Heath - Damage)
- punit:SetHealth(MissingHealth)
- local Mana = punit:GetMana()
- punit:SetMana(Mana - MissingHealth)
- end
- end
- function Event_LadyDeathwhisper_Berserk(punit, event)
- if punit:IsInCombat() then
- punit:PlaySoundToSet(Say_LadyDeathWhisper_Berserk)
- punit:SendChatMessage(14, 0, Say_LadyDeathWhisper_Berserk_Speak)
- punit:CastSpell(Spell_Berserk)
- end
- end
- function Event_Death_and_Decay(punit, event)
- local Dungeon = punit:GetDungeonDifficulty()
- if Dungeon == 0 then
- local target = punit:GetRandomPlayer(0)
- punit:CastSpellAoF(target:GetX(), target:GetY(), target:GetZ(), Spell_Death_and_Decay_10N)
- end
- if Dungeon == 0 then
- local target = punit:GetRandomPlayer(0)
- punit:CastSpellAoF(target:GetX(), target:GetY(), target:GetZ(), Spell_Death_and_Decay_10HC)
- end
- if Dungeon == 0 then
- local target = punit:GetRandomPlayer(0)
- punit:CastSpellAoF(target:GetX(), target:GetY(), target:GetZ(), Spell_Death_and_Decay_25N)
- end
- if Dungeon == 0 then
- local target = punit:GetRandomPlayer(0)
- punit:CastSpellAoF(target:GetX(), target:GetY(), target:GetZ(), Spell_Death_and_Decay_25HC)
- end
- end
- function Event_P1_Wave(punit, event)
- local Dungeon = punit:GetDungeonDifficulty()
- if Dungeon == 0 then
- punit:SpawnCreature(NPC_Cult_Fanatic, math.random (Lady_Summon_Positions_One, Lady_Summon_Positions_Tre, Lady_Summon_Positions_Five), 14, 360000)
- punit:SpawnCreature(NPC_Cult_Adherent, math.random (Lady_Summon_Positions_Two, Lady_Summon_Positions_Fore, Lady_Summon_Positions_Sixe), 14, 360000)
- end
- if Dungeon == 1 then
- punit:SpawnCreature(NPC_Cult_Fanatic, math.random (Lady_Summon_Positions_One, Lady_Summon_Positions_Tre, Lady_Summon_Positions_Five), 14, 360000)
- punit:SpawnCreature(NPC_Cult_Adherent, math.random (Lady_Summon_Positions_Two, Lady_Summon_Positions_Fore, Lady_Summon_Positions_Sixe), 14, 360000)
- punit:SpawnCreature(math.random (NPC_Cult_Fanatic, NPC_Cult_Adherent), Lady_Summon_Positions_Seven, 14, 360000)
- end
- if Dungeon == 2 then
- punit:SpawnCreature(NPC_Cult_Fanatic, math.random (Lady_Summon_Positions_One, Lady_Summon_Positions_Tre, Lady_Summon_Positions_Five), 14, 360000)
- punit:SpawnCreature(NPC_Cult_Adherent, math.random (Lady_Summon_Positions_Two, Lady_Summon_Positions_Fore, Lady_Summon_Positions_Sixe), 14, 360000)
- end
- if Dungeon == 3 then
- punit:SpawnCreature(NPC_Cult_Fanatic, math.random (Lady_Summon_Positions_One, Lady_Summon_Positions_Tre, Lady_Summon_Positions_Five), 14, 360000)
- punit:SpawnCreature(NPC_Cult_Adherent, math.random (Lady_Summon_Positions_Two, Lady_Summon_Positions_Fore, Lady_Summon_Positions_Sixe), 14, 360000)
- punit:SpawnCreature(math.random (NPC_Cult_Fanatic, NPC_Cult_Adherent), Lady_Summon_Positions_Seven, 14, 360000)
- end
- end
- function Event_P1_Shadow_Bolt(punit, event)
- local target = punit:GetRandomPlayer(0)
- local Dungeon = punit:GetDungeonDifficulty()
- if Dungeon == 0 then
- punit:FullCastSpellOnTarget(Spell_Shadow_Bolt_10N, target)
- end
- if Dungeon == 0 then
- punit:FullCastSpellOnTarget(Spell_Shadow_Bolt_10HC, target)
- end
- if Dungeon == 0 then
- punit:FullCastSpellOnTarget(Spell_Shadow_Bolt_25N, target)
- end
- if Dungeon == 0 then
- punit:FullCastSpellOnTarget(Spell_Shadow_Bolt_25HC, target)
- end
- end
- function Event_P1_Empower_Cultist(punit, event)
- local NPC = punit:GetCreatureNearestCoords(punit:GetX(), punit:GetY(), punit:GetZ(), math.random (NPC_Cult_Fanatic, NPC_Cult_Adherent))
- if NPC ~= nil then
- punit:FullCastSpellOnTarget(Spell_Dark_Empowerment, NPC)
- NPC:AddAura(Spell_Dark_Empowerment, 0)
- end
- end
- function Event_Dominate_Mind_H(punit, event)
- local target = punit:GetRandomPlayer(0)
- local Dungeon = punit:GetDungeonDifficulty()
- if Dungeon == 1 then
- punit:CastSpellOnTarget(Spell_Dominate_Mind, target)
- target:AddAura(Spell_Dominate_Mind, 12000)
- end
- if Dungeon == 3 then
- punit:CastSpellOnTarget(Spell_Dominate_Mind, target)
- target:AddAura(Spell_Dominate_Mind, 12000)
- end
- if target:HasAura(Spell_Dominate_Mind) then
- target:SetPlayerLock(1)
- target:SetScale(2)
- else
- target:SetPlayerLock(0)
- target:SetScale(1)
- end
- end
- function Event_P2_Frostbolt(punit, event)
- local target = punit:GetRandomPlayer(0)
- local Dungeon = punit:GetDungeonDifficulty()
- if Dungeon == 0 then
- punit:FullCastSpellOnTarget(Spell_Frostbolt_10N, target)
- end
- if Dungeon == 1 then
- punit:FullCastSpellOnTarget(Spell_Frostbolt_10HC, target)
- end
- if Dungeon == 2 then
- punit:FullCastSpellOnTarget(Spell_Frostbolt_25N, target)
- end
- if Dungeon == 3 then
- punit:FullCastSpellOnTarget(Spell_Frostbolt_25HC, target)
- end
- end
- function Event_P2_Frostvolley(punit, event)
- local PlayersAllAround = punit:GetInRangePlayers()
- for a, players in pairs(PlayersAllAround) do
- punit:CastSpellOnTarget(Spell_FrostVolley, PlayersAllAround)
- end
- end
- function Event_P2_Wave(punit, event)
- local Dungeon = punit:GetDungeonDifficulty()
- if Dungeon == 0 then
- punit:SpawnCreature(NPC_Cult_Fanatic, math.random (Lady_Summon_Positions_One, Lady_Summon_Positions_Tre, Lady_Summon_Positions_Five), 14, 360000)
- punit:SpawnCreature(NPC_Cult_Adherent, math.random (Lady_Summon_Positions_Two, Lady_Summon_Positions_Fore, Lady_Summon_Positions_Sixe), 14, 360000)
- end
- if Dungeon == 1 then
- punit:SpawnCreature(NPC_Cult_Fanatic, math.random (Lady_Summon_Positions_One, Lady_Summon_Positions_Tre, Lady_Summon_Positions_Five), 14, 360000)
- punit:SpawnCreature(NPC_Cult_Adherent, math.random (Lady_Summon_Positions_Two, Lady_Summon_Positions_Fore, Lady_Summon_Positions_Sixe), 14, 360000)
- punit:SpawnCreature(math.random (NPC_Cult_Fanatic, NPC_Cult_Adherent), Lady_Summon_Positions_Seven, 14, 360000)
- end
- if Dungeon == 2 then
- punit:SpawnCreature(NPC_Cult_Fanatic, math.random (Lady_Summon_Positions_One, Lady_Summon_Positions_Tre, Lady_Summon_Positions_Five), 14, 360000)
- punit:SpawnCreature(NPC_Cult_Adherent, math.random (Lady_Summon_Positions_Two, Lady_Summon_Positions_Fore, Lady_Summon_Positions_Sixe), 14, 360000)
- end
- if Dungeon == 3 then
- punit:SpawnCreature(NPC_Cult_Fanatic, math.random (Lady_Summon_Positions_One, Lady_Summon_Positions_Tre, Lady_Summon_Positions_Five), 14, 360000)
- punit:SpawnCreature(NPC_Cult_Adherent, math.random (Lady_Summon_Positions_Two, Lady_Summon_Positions_Fore, Lady_Summon_Positions_Sixe), 14, 360000)
- punit:SpawnCreature(math.random (NPC_Cult_Fanatic, NPC_Cult_Adherent), Lady_Summon_Positions_Seven, 14, 360000)
- end
- end
- function LadyDeathWhisper_OnDeath(punit, event)
- punit:RemoveEvents()
- punit:SendChatMessage(14, 0, Say_LadyDeathWhisper_Death_Speak)
- punit:PlaySoundToSet(Say_LadyDeathWhisper_Death)
- local PlayersAllAround = punit:GetInRangePlayers()
- local Dungeon = punit:GetDungeonDifficulty()
- for a, players in pairs(PlayersAllAround) do
- if Dungeon == 0 then
- players:AddAchievement(4643)
- elseif Dungeon == 1 then
- players:AddAchievement(4654)
- elseif Dungeon == 2 then
- players:AddAchievement(4655)
- elseif Dungeon == 3 then
- players:AddAchievement(4656)
- end
- end
- function LadyDeathWhisper_OnLeaveCombat(punit, event)
- punit:RemoveEvents()
- punit:Despawn(1, 10000)
- end
- function LadyDeathWHisper_OnKill(punit, event)
- punit:SendChatMessage(14, 0, math.random (Say_LadyDeathWhisper_Kill_One_Speak, Say_LadyDeathWhisper_Kill_Two_Speak))
- end
- RegisterUnitEvent(LadyDeathwhisper, 1, "LadyDeathWhisper_OnCombat")
- RegisterUnitEvent(LadyDeathwhisper, 2, "LadyDeathWhisper_OnLeaveCombat")
- RegisterUnitEvent(LadyDeathwhisper, 3, "LadyDeathWHisper_OnKill")
- RegisterUnitEvent(LadyDeathwhisper, 4, "LadyDeathWhisper_OnDeath")
- --[ Lady DeathWhisper End's & Adds Start ]--
- -- CultFanatic Start
- function CultFanatic_OnSpawn(punit, event)
- punit:RegisterEvent("Event_CultFanatic_Move", 1000, 1)
- local Dungeon = punit:GetDungeonDifficulty()
- if Dungeon == 0 then
- punit:SetCombatCapable(0)
- punit:SetMaxHealth(134810)
- end
- if Dungeon == 1 then
- punit:SetCombatCapable(0)
- punit:SetMaxHealth(202215)
- end
- if Dungeon == 2 then
- punit:SetCombatCapable(0)
- punit:SetMaxHealth(202215)
- end
- if Dungeon == 3 then
- punit:SetCombatCapable(0)
- punit:SetMaxHealth(404430)
- end
- end
- function Event_CultFanatic_Move(punit, event)
- local waypoint = punit:GetRandomTarget(0)
- local x = waypoint:GetX()
- local y = waypoint:GetY()
- local z = waypoint:GetZ()
- local o = waypoint:GetO()
- punit:MoveTo(x, y, z, o)
- end
- function CultFanatic_OnCombat(punit, event)
- local Dungeon = punit:GetDungeonDifficulty()
- if Dungeon == 0 then
- punit:RegisterEvent("Event_Fanatic_Necrotic_Strike", math.random (10000, 12000), 0)
- punit:RegisterEvent("Event_Fanatic_Shadow_Cleave", math.random (14000, 16000), 0)
- punit:RegisterEvent("Event_Fanatic_Vampiric_Might", math.random (20000, 27000), 0)
- punit:RegisterEvent("Event_Fanatic_Dark_Martyrdom", math.random (18000, 32000), 0)
- end
- if Dungeon == 1 then
- punit:RegisterEvent("Event_Fanatic_Necrotic_Strike", math.random (10000, 12000), 0)
- punit:RegisterEvent("Event_Fanatic_Shadow_Cleave", math.random (14000, 16000), 0)
- punit:RegisterEvent("Event_Fanatic_Vampiric_Might", math.random (20000, 27000), 0)
- punit:RegisterEvent("Event_Fanatic_Dark_Martyrdom", math.random (18000, 32000), 0)
- end
- if Dungeon == 2 then
- punit:RegisterEvent("Event_Fanatic_Necrotic_Strike", math.random (10000, 12000), 0)
- punit:RegisterEvent("Event_Fanatic_Shadow_Cleave", math.random (14000, 16000), 0)
- punit:RegisterEvent("Event_Fanatic_Vampiric_Might", math.random (20000, 27000), 0)
- punit:RegisterEvent("Event_Fanatic_Dark_Martyrdom", math.random (18000, 32000), 0)
- end
- if Dungeon == 3 then
- punit:RegisterEvent("Event_Fanatic_Necrotic_Strike", math.random (10000, 12000), 0)
- punit:RegisterEvent("Event_Fanatic_Shadow_Cleave", math.random (14000, 16000), 0)
- punit:RegisterEvent("Event_Fanatic_Vampiric_Might", math.random (20000, 27000), 0)
- punit:RegisterEvent("Event_Fanatic_Dark_Martyrdom", math.random (18000, 32000), 0)
- end
- end
- function Event_Fanatic_Necrotic_Strike(punit, event)
- local target = punit:GetClosestPlayer()
- if punit:GetDistanceYards(target) < 5 then
- if target ~= nil then
- punit:CastSpellOnTarget(SPELL_NECROTIC_STRIKE, target)
- target:AddAura(SPELL_NECROTIC_STRIKE, 20000)
- end
- end
- end
- function Event_Fanatic_Shadow_Cleave(punit, event)
- local target = punit:GetClosestPlayer()
- if punit:GetDistanceYards(target) < 5 then
- if target ~= nil then
- punit:CastSpellOnTarget(SPELL_SHADOW_CLEAVE, target)
- end
- end
- end
- function Event_Fanatic_Vampiric_Might(punit, event)
- punit:CastSpell(SPELL_VAMPIRIC_MIGHT)
- punit:AddAura(SPELL_VAMPIRIC_MIGHT, 15000)
- end
- function Event_Fanatic_Dark_Martyrdom(punit, event)
- punit:Root()
- punit:FullCastSpell(SPELL_DARK_MARTYRDOM_FANATIC)
- punit:UnRoot()
- end
- RegisterUnitEvent(NPC_Cult_Fanatic, 1, "CultFanatic_OnCombat")
- RegisterUnitEvent(NPC_Cult_Fanatic, 18, "CultFanatic_OnSpawn")
- -- CultAdherent Start
- function CultAdherent_OnSpawn(punit, event)
- punit:RegisterEvent("Event_CultAdherent_Move", 1000, 1)
- local Dungeon = punit:GetDungeonDifficulty()
- if Dungeon == 0 then
- punit:SetCombatCapable(1)
- punit:SetMaxHealth(107840)
- punit:SetMaxMana(549600)
- end
- if Dungeon == 1 then
- punit:SetCombatCapable(1)
- punit:SetMaxHealth(150976)
- punit:SetMaxMana(549600)
- end
- if Dungeon == 2 then
- punit:SetCombatCapable(1)
- punit:SetMaxHealth(161760)
- punit:SetMaxMana(549600)
- end
- if Dungeon == 3 then
- punit:SetCombatCapable(1)
- punit:SetMaxHealth(323520)
- punit:SetMaxMana(549600)
- end
- end
- function Event_CultAdherent_Move(punit, event)
- local waypoint = punit:GetRandomTarget(0)
- local x = waypoint:GetX()
- local y = waypoint:GetY()
- local z = waypoint:GetZ()
- local o = waypoint:GetO()
- punit:MoveTo(x, y, z, o)
- end
- function CultAdherent_OnCombat(punit, event)
- local Dungeon = punit:GetDungeonDifficulty()
- if Dungeon == 0 then
- punit:RegisterEvent("Event_Adherent_Frost_Fever", math.random (10000, 12000), 0)
- punit:RegisterEvent("Event_Adherent_DeathChill", math.random (14000, 16000), 0)
- punit:RegisterEvent("Event_Adherent_Curse_Of_Terror", math.random (14000, 16000), 0)
- punit:RegisterEvent("Event_Adherent_Shorud_Of_Occult", math.random (32000, 39000), 0)
- punit:RegisterEvent("Event_Adherent_Dark_Martyrdom", math.random (18000, 32000), 0)
- end
- if Dungeon == 1 then
- punit:RegisterEvent("Event_Adherent_Frost_Fever", math.random (10000, 12000), 0)
- punit:RegisterEvent("Event_Adherent_DeathChill", math.random (14000, 16000), 0)
- punit:RegisterEvent("Event_Adherent_Curse_Of_Terror", math.random (14000, 16000), 0)
- punit:RegisterEvent("Event_Adherent_Shorud_Of_Occult", math.random (32000, 39000), 0)
- punit:RegisterEvent("Event_Adherent_Dark_Martyrdom", math.random (18000, 32000), 0)
- end
- if Dungeon == 2 then
- punit:RegisterEvent("Event_Adherent_Frost_Fever", math.random (10000, 12000), 0)
- punit:RegisterEvent("Event_Adherent_DeathChill", math.random (14000, 16000), 0)
- punit:RegisterEvent("Event_Adherent_Curse_Of_Terror", math.random (14000, 16000), 0)
- punit:RegisterEvent("Event_Adherent_Shorud_Of_Occult", math.random (32000, 39000), 0)
- punit:RegisterEvent("Event_Adherent_Dark_Martyrdom", math.random (18000, 32000), 0)
- end
- if Dungeon == 3 then
- punit:RegisterEvent("Event_Adherent_Frost_Fever", math.random (10000, 12000), 0)
- punit:RegisterEvent("Event_Adherent_DeathChill", math.random (14000, 16000), 0)
- punit:RegisterEvent("Event_Adherent_Curse_Of_Terror", math.random (14000, 16000), 0)
- punit:RegisterEvent("Event_Adherent_Shorud_Of_Occult", math.random (32000, 39000), 0)
- punit:RegisterEvent("Event_Adherent_Dark_Martyrdom", math.random (18000, 32000), 0)
- end
- end
- function Event_Adherent_Frost_Fever(punit, event)
- local target = punit:GetRandomPlayer(0)
- if target ~= nil then
- punit:CastSpellOnTarget(SPELL_FROST_FEVER, target)
- target:AddAura(SPELL_FROST_FEVER, 15000)
- end
- end
- function Event_Adherent_DeathChill(punit, event)
- local target = punit:GetRandomPlayer(0)
- if target ~= nil then
- punit:FullCastSpellOnTarget(math.random (SPELL_DEATHCHILL_BOLT, SPELL_DEATHCHILL_BLAST), target)
- end
- end
- function Event_Adherent_Curse_Of_Terror(punit, event)
- local target = punit:GetRandomPlayer(0)
- if target ~= nil then
- punit:FullCastSpellOnTarget(SPELL_CURSE_OF_TORPOR, target)
- target:AddAura(SPELL_CURSE_OF_TORPOR, 15000)
- end
- end
- function Event_Adherent_Shorud_Of_Occult(punit, event)
- punit:AddAura(SPELL_SHORUD_OF_THE_OCCULT, 0)
- end
- function Event_Adherent_Dark_Martyrdom(punit, event)
- punit:Root()
- punit:FullCastSpell(SPELL_DARK_MARTYRDOM_ADHERENT)
- punit:UnRoot()
- end
- RegisterUnitEvent(NPC_Cult_Adherent, 1, "CultAdherent_OnCombat")
- RegisterUnitEvent(NPC_Cult_Adherent, 18, "CultAdherent_OnSpawn")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement