Code:
function Shadowclaw_OnCombat(Unit, Event)
Unit:SendChatMessage(11, 0, "I shall kill you!")
Unit:RegisterEvent("Shadowclaw_FireBlow", 50000, 0)
Unit:RegisterEvent("Shadowclaw_MortalStrike", 30000, 0)
Unit:RegisterEvent("Shadowclaw_TailSlash", 20000, 0)
Unit:RegisterEvent("Shadowclaw_Pound", 45000, 0)
Unit:RegisterEvent("Shadowclaw_Stun", 25000, 0)
Unit:RegisterEvent("Shadowclaw_Armageddon", 120000, 1)
Unit:RegisterEvent("Shadowclaw_EvilForm",1000,0)
Unit:RegisterEvent("Shadowclaw_LastForm",1000,0)
end
function Shadowclaw_FireBlow(pUnit, Event)
pUnit:CastSpell(43140, pUnit:GetRandomPlayer(0))
end
function Shadowclaw_MortalStrike(pUnit, Event)
pUnit:CastSpell(39595, pUnit:GetMainTank())
end
function Shadowclaw_TailSlash(pUnit, Event)
pUnit:CastSpell(38737, pUnit:GetRandomPlayer(0))
end
function Shadowclaw_Pound(pUnit, Event)
pUnit:FullCastSpellOnTarget(34162, pUnit:GetRandomPlayer(0))
end
function Shadowclaw_Stun(pUnit, Event)
pUnit:CastSpell(42435, pUnit:GetMainTank())
end
function Shadowclaw_Armageddon(pUnit, Event)
pUnit:CastSpell(45915, pUnit:GetRandomPlayer(4))
end
function Shadowclaw_Bomb(pUnit, Event)
pUnit:CastSpell(40332, pUnit:GetRandomPlayer(0))
end
function Shadowclaw_HellBurn(pUnit, Event)
pUnit:CastSpell(46218, pUnit:GetMainTank())
end
function Shadowclaw_ForceShield(pUnit, Event)
pUnit:CastSpell(20620, )
end
function Shadowclaw_ShadowPain(pUnit, Event)
pUnit:CastSpell(40871, pUnit:GetMainTank())
end
function Shadowclaw_EvilForm(pUnit, Event)
if pUnit:GetHealthPct() < 50 then
pUnit:RemoveEvents();
pUnit:FullCastSpell(0)
pUnit:SetModel(15366)
pUnit:RegisterEvent("Shadowclaw_Hell_Burn", 25000, 0)
Unit:RegisterEvent("Shadowclaw_Last_Form",1000,0)
end
end
function Shadowclaw_LastForm(pUnit, Event)
if pUnit:GetHealthPct() < 10 then
pUnit:RemoveEvents();
pUnit:FullCastSpell(0)
pUnit:SetModel(15366)
pUnit:RegisterEvent("Shadowclaw_Force_Shield", 1, 1)
end
end
function Shadowclaw_OnLeaveCombat(Unit, Event)
Unit:RemoveEvents()
Unit:SendChatMessage(11, 0, "Is there someone strong enough to defeat me??")
end
function Shadowclaw_OnDied(Unit, Event)
Unit:RemoveEvents()
Unit:SendChatMessage(11, 0, "It cant be! I am ..... dead")
end
function Shadowclaw_OnKilledTarget(Unit, Event)
Unit:SendChatMessage(11, 0, "Good trip to HELL!")
end
RegisterUnitEvent(56675, 1, "Shadowclaw_OnCombat")
RegisterUnitEvent(56675, 2, "Shadowclaw_OnLeaveCombat")
RegisterUnitEvent(56675, 3, "Shadowclaw_OnKilledTarget")
RegisterUnitEvent(56675, 4, "Shadowclaw_OnDied")