ok i tryed this will it work?[code] function Boss_OnCombat(pUnit, Event)
Unit:SendChatMessage(12, 0 , "Welcome to your death!!!")
pUnit:RegisterEvent("Boss_Phase2", 1000, 0)
end
function Boss_Phase2(pUnit, Event)
if pUnit:GetHealthPct() < 90 then
pUnit:SendChatMessage (11, 0, "Taste the flames of Sulfuron!")
pUnit:CastSpell(19780)
pUnit:RegisterEvent("Boss_Phase3", 1000, 0)
end
end
function Boss_Phase3(pUnit, Event)
if pUnit:GetHealthPct() < 80 then
pUnit:SendChatMessage (11, 0, "Taste the flames of Sulfuron!")
pUnit:CastSpell(19780)
pUnit:RegisterEvent("Boss_Phase4", 1000, 0)
end
end
function Boss_Phase4(pUnit, Event)
if pUnit:GetHealthPct() < 70 then
pUnit:SendChatMessage (11, 0, "Taste the flames of Sulfuron!")
pUnit:CastSpell(19780)
pUnit:RegisterEvent("Boss_Phase5", 1000, 0)
end
end
function Boss_Phase5(pUnit, Event)
if pUnit:GetHealthPct() < 60 then
pUnit:SendChatMessage (11, 0, "Taste the flames of Sulfuron!")
pUnit:CastSpell(19780)
pUnit:RegisterEvent("Boss_Phase6", 1000, 0)
end
end
function Boss_Phase6(pUnit, Event)
if pUnit:GetHealthPct() < 50 then
pUnit:SendChatMessage (11, 0, "Taste the flames of Sulfuron!")
pUnit:CastSpell(19780)
pUnit:RegisterEvent("Boss_Phase7", 1000, 0)
end
end
function Boss_Phase7(pUnit, Event)
if pUnit:GetHealthPct() < 40 then
pUnit:SendChatMessage (11, 0, "Taste the flames of Sulfuron!")
pUnit:CastSpell(19780)
pUnit:RegisterEvent("Boss_Phase8", 1000, 0)
end
end
function Boss_Phase8(pUnit, Event)
if pUnit:GetHealthPct() < 30 then
pUnit:SendChatMessage (11, 0, "Taste the flames of Sulfuron!")
pUnit:CastSpell(19780)
pUnit:RegisterEvent("Boss_Phase9", 1000, 0)
end
end
function Boss_Phase9(pUnit, Event)
if pUnit:GetHealthPct() < 20 then
pUnit:SendChatMessage (11, 0, "Taste the flames of Sulfuron!")
pUnit:CastSpell(19780)
pUnit:RegisterEvent("Boss_Phase10", 1000, 0)
end
end
function Boss_Phase10(pUnit, Event)
if pUnit:GetHealthPct() < 10 then
pUnit:SendChatMessage (11, 0, "Taste the flames of Sulfuron!")
pUnit:CastSpell(19780)
pUnit:RegisterEvent("Boss_Phase11", 1000, 0)
end
end
function Boss_Phase11(pUnit, Event)
if pUnit:GetHealthPct() < 5 then
pUnit:SendChatMessage (11, 0, "Taste the flames of Sulfuron!")
pUnit:CastSpell(19780)
pUnit:SendChatMessage(14, 0, "Text here plx")
end
end
function Boss_LeaveCombat(pUnit, Event)
Unit:SendChatMessage(12, 0 , "HOO leaving are you now chicken!!")
pUnit:RemoveEvents()
end
function Boss_Dead(pUnit, Event)
Unit:SendChatMessage(12, 0 , "Noooo i never tought you beat me!!!!")
pUnit:RemoveEvents()
end
function Boss_KilledTarget(pUnit, Event)
Unit:SendChatMessage(12, 0 , "Fool You Are Not Prepared!!")
pUnit:SendChatMessage(14, 0, "Owned")
end
RegisterUnitEvent(3, 1, "Boss_OnCombat")
RegisterUnitEvent(40009, 2, "Boss_LeaveCombat")
RegisterUnitEvent(40009, 3, "Boss_KilledTarget")
RegisterUnitEvent(40009, 4, "Boss_Dead")