This should work, it will make it cast cleave spell 6 times at all, and it have cooldown on 6000 before he cast it again, it will cast cripple 5 times with 1000 Cooldown, and it will cast rein of fire 14 times, 3000 Cooldown..
Code:
function _OnCombat(Unit, Event)
Unit:SendChatMessage(11, 0, "You dare Challenge me? Well this will be a quick fight!")
Unit:RegisterEvent("doomfire_cleave", 6000, 6)
Unit:RegisterEvent("doomfire_cripple", 1000, 5)
Unit:RegisterEvent("doomfire_reinoffire", 3000, 14)
end
function doomfire_cleave(pUnit, Event)
pUnit:CastSpellOnTarget(40504, pUnit:GetRandomPlayer(0))
end
function doomfire_cripple(pUnit, Event)
pUnit:CastSpellOnTarget(11443, pUnit:GetMainTank())
end
function doomfire_reinoffire(pUnit, Event)
pUnit:CastSpell(38741, pUnit:GetRandomPlayer(0))
end
function _OnLeaveCombat(pUnit, Event)
Unit:SendChatMessage(12, 0, "I knew you people where to weak to fight me! Now Begone i don't ever want to see you again!")
end
function _OnDied(Unit, Event)
Unit:RemoveEvents()
Unit:SendChatMessage(12, 0, "I have fallen, Forgive me")
end
function _OnKilledTarget(Unit, Event)
Unit:SendChatMessage(13, 0, "Ha! I knew i could kill you. Who else is up next?")
end
RegisterUnitEvent(40008, 1, "_OnCombat")
RegisterUnitEvent(40008, 2, "_OnLeaveCombat")
RegisterUnitEvent(40008, 3, "_OnKilledTarget")
RegisterUnitEvent(40008, 4, "_OnDied")
If u want it to cast it more times, edit the black, if u want to change the cooldown between it cast, change the darkgreen