Code:
-- Scripted by Halestorm/Hardball
-- Do not share without credits
-- Do not take credit for this work.
function EquinoxThrow(pUnit, event)
if pUnit:GetMainTank() ~= nil then
pUnit:FullCastSpellOnTarget(36966, pUnit:GetMainTank())
else
end
end
function EquinoxBlast(pUnit, event)
local blastTarg = pUnit:GetRandomPlayer(0)
if blastTarg ~= nil then
pUnit:FullCastSpellOnTarget(24857, blastTarg)
else
end
end
function EquinoxCleave(pUnit, event)
if pUnit:GetMainTank() ~= nil then
pUnit:FullCastSpellOnTarget(38846, pUnit:GetMainTank())
else
end
end
function EquinoxIntro(pUnit, event)
pUnit:PlaySoundToSet(14168)
pUnit:SendChatMessage(14, 0, "What little time you had.. you wasted!")
pUnit:RegisterEvent("EquinoxThrow", 24000, 0)
pUnit:RegisterEvent("EquinoxBlast", 12000, 0)
pUnit:RegisterEvent("EquinoxCleave", 15000, 0)
pUnit:RegisterEvent("EquinoxPhase2", 1000, 0)
end
function EquinoxMortal(pUnit, event)
if pUnit:GetMainTank() ~= nil then
pUnit:FullCastSpellOnTarget(13737, pUnit:GetMainTank())
else
end
end
function EquinoxFear(pUnit, event)
pUnit:PlaySoundToSet(14163)
pUnit:SendChatMessage(14, 0, "You cannot hide from fate!")
pUnit:FullCastSpell(22686)
end
function EquinoxPhase2(pUnit, event)
if pUnit:GetHealthPct() <= 80 then
pUnit:RemoveEvents()
pUnit:PlaySoundToSet(14169)
pUnit:SendChatMessage(14, 0, "You stare blindly into the abyss!")
pUnit:RegisterEvent("EquinoxCleave", 22000, 0)
pUnit:RegisterEvent("EquinoxMortal", 10000, 0)
pUnit:RegisterEvent("EquinoxFear", 40000, 0)
pUnit:RegisterEvent("EquinoxPhase3", 1000, 0)
end
end
function EquinoxChainLight(pUnit, event)
local ChainTarg = pUnit:GetRandomPlayer(0)
if ChainTarg ~= nil then
pUnit:FullCastSpellOnTarget(32337, ChainTarg)
else
end
end
function EquinoxNumb(pUnit, event)
pUnit:FullCastSpell(55106)
end
function EquinoxPhase3(pUnit, event)
if pUnit:GetHealthPct() <= 65 then
pUnit:RemoveEvents()
pUnit:PlaySoundToSet(14170)
pUnit:SendChatMessage(14, 0, "You ignorance is profound! Can you not see where this path leads?")
pUnit:RegisterEvent("EquinoxChainLight", 14000, 0)
pUnit:RegisterEvent("EquinoxNumb", 10000, 0)
pUnit:RegisterEvent("EquinoxFear", 40000, 0)
pUnit:RegisterEvent("EquinoxThrow", 24000, 0)
pUnit:RegisterEvent("EquinoxPhase3", 1000, 0)
end
end
function EquinoxArcane(pUnit, event)
local choise = math.random(1, 2)
pUnit:RemoveEvents()
if choise == 1 then
pUnit:PlaySoundToSet(14162)
pUnit:SendChatMessage(14, 0, "What hope is there for you? None!")
else
pUnit:PlaySoundToSet(14164)
pUnit:SendChatMessage(14, 0, "Come closer. I will make it quick!")
end
pUnit:FullCastSpell(29973)
pUnit:RegisterEvent("EquinoxPhase3Start", 12000, 1)
end
function EquinoxWhirl(pUnit, event)
pUnit:FullCastSpell(26686)
end
function EquinoxPhase3(pUnit, event)
if pUnit:GetHealthPct() <= 40 then
pUnit:RemoveEvents()
pUnit:PlaySoundToSet(14171)
pUnit:SendChatMessage(14, 0, "You cross the precipis of oblivion!")
pUnit:RegisterEvent("EquinoxPhase3Start", 1000, 1)
end
end
function EquinoxPhase3Start(pUnit, event)
pUnit:RegisterEvent("EquinoxChainLight", 14000, 0)
pUnit:RegisterEvent("EquinoxNumb", 10000, 0)
pUnit:RegisterEvent("EquinoxArcane", 35000, 0)
pUnit:RegisterEvent("EquinoxWhirl", 20000, 0)
pUnit:RegisterEvent("EquinoxThrow", 24000, 0)
end
function EquinoxSlay(pUnit, event)
local selection = math.random(1, 3)
if selection == 1 then
pUnit:PlaySoundToSet(14166)
pUnit:SendChatMessage(14, 0, "Only mortal!")
end
if selection == 2 then
pUnit:PlaySoundToSet(14167)
pUnit:SendChatMessage(14, 0, "I...am...FOREVER!")
end
if selection == 3 then
pUnit:PlaySoundToSet(14165)
pUnit:PlaySoundToSet(14, 0, "Your flesh cannot hold out for long!")
end
end
function EquinoxDeath(pUnit, event)
pUnit:RemoveEvents()
pUnit:PlaySoundToSet(14172)
pUnit:SendChatMessage(14, 0, "My death heralds the end of this world...")
end
function EqunoxLeave(pUnit, event)
pUnit:RemoveEvents()
end
RegisterUnitEvent(40017, 1, "EquinoxIntro")
RegisterUnitEvent(40017, 2, "EquinoxLeave")
RegisterUnitEvent(40017, 3, "EquinoxSlay")
RegisterUnitEvent(40017, 4, "EquinoxDeath")