Code:
function Arogos_Spell1(pUnit, Event)
local plr = pUnit:GetRandomPlayer(0)
if (plr ~= nil)
then
pUnit:CastSpellOnTarget(41078, plr)
end
end
function Arogos_Spell2(pUnit, Event)
pUnit:FullCastSpellOnTarget(41131, pUnit:GetMainTank())
end
function Arogos_Spell3(pUnit, Event)
local plr = pUnit:GetRandomPlayer(0)
if (plr ~= nil)
then
pUnit:CastSpellOnTarget(27810, plr)
end
end
function Arogos_Phase1(Unit, Event)
if Unit:GetHealthPct() < 75 then
Unit:RemoveEvents()
Unit:SendChatMessage(14, 0, "You're attacks are weak... this should be easy.")
Unit:RegisterEvent("Arogos_Spell1",60000, 2)
Unit:RegisterEvent("Arogos_Spell2",60000, 1)
Unit:RegisterEvent("Arogos_Spell3",25000, 1)
Unit:Register Event("Boss_Phase2",1000, 0)
end
end
function Arogos_Spell4(pUnit, Event)
local plr = pUnit:GetRandomPlayer(0)
if (plr ~= nil)
then
pUnit:CastSpellOnTarget(55929, plr)
end
end
function Arogos_Spell5(pUnit, Event)
local plr = pUnit:GetRandomPlayer(0)
if (plr ~= nil)
then
pUnit:CastSpellOnTarget(40832, plr)
end
end
function Arogos_Phase2(Unit, Event)
if Unit:GetHealthPct() < 50 then
Unit:SendChatMessage(14, 0, "The reckoning has just begun!")
Unit:RegisterEvent("Arogos_Spell4",30000, 2)
Unit:RegisterEvent("Arogos_Spell5",60000, 1)
Unit:Register Event("Boss_Phase3",1000, 0)
end
end
function Arogos_Spell6(pUnit, Event)
local plr = pUnit:GetRandomPlayer(0)
if (plr ~= nil)
then
pUnit:CastSpellOnTarget(40683, plr)
end
end
function Arogos_Spell7(pUnit, Event)
local plr = pUnit:GetRandomPlayer(0)
if (plr ~= nil)
then
pUnit:CastSpellOnTarget(40904, plr)
end
end
function Arogos_Phase3(Unit, Event)
if Unit:GetHealthPct() < 25 then
Unit: SetScale(1.7)
Unit:SendChatMessage(14, 0, "I am unstoppable!")
Unit:RegisterEvent("Arogos_Spell6",1000, 0)
Unit:RegisterEvent("Arogos_Spell7",30000, 1)
end
end
function Arogos_OnCombat(Untit, Event)
Unit:SendChatMessage(14, 0, "By pain of death, leave this place at once!")
Unit:Register Event("Boss_Phase1",1000, 0)
Unit:Register Event("Boss_Phase2",1000, 0)
Unit:Register Event("Boss_Phase3",1000, 0)
end
function Arogos_OnLeaveCombat(Unit, Event)
Unit:SendChatMessage(14, 0, "Only I hold the true power!")
Unit:RemoveEvents()
end
function Arogos_OnKilledTarget(Unit)
Unit:SendChatMessage(14, 0, "The secrets... they're all mine!")
end
function Arogos_Death(Unit)
Unit:SendChatMessage(14, 0, "You'll never take them from me...")
Unit:RemoveEvents()
end
RegisterUnitEvent(85000, 1, "Arogos_OnCombat")
RegisterUnitEvent(85000, 2, "Arogos_OnLeaveCombat")
RegisterUnitEvent(85000, 3, "Arogos_OnKilledTarget")
RegisterUnitEvent(85000, 4, "Arogos_Death")
I run on Ascent Arcemu and the lua file is saved in my Scripts folder