Too simple tbh.
Make it have something unique, this is just like any of the other fights, just with other model.
And it wont work on top of it.
1st. You are registering unit event "entercombat_oncombat" and "ondeath_ondied" of which neither exist.
2nd. You are registering "kitty_claw" with function blacktabby_claw, function kitty_claw doesn't exist at all
3rd. You are not registering Blacktabby_laugh, blacktabby_claw or blacktabby_volley at all.
All in all, poor script, too simple, and not working
Code:
function BlackTabby_OnCombat(Unit, Event)
Unit:SendChatMessage(11, 0, "Meow")
Unit:SetModel(18373)
Unit:RegisterUnitEvent("BlackTabby_laugh", 1000, 1)
end
function BlackTabby_laugh(pUnit, Event)
if pUnit:GetHealthPct() <99 then
pUnit:SendChatMessage(11, 0, "You will regret this!")
pUnit:RemoveEvents();
pUnit:RegisterEvent("BlackTabby_claw", 10000, 1)
pUnit:RegisterEvent("BlackTabby_volley", 1000, 1)
end
end
function BlackTabby_claw(pUnit, Event)
pUnit:CastSpellOnTarget(35055, pUnit:GetClosestPlayer())
end
function BlackTabby_Volley(pUnit, Event)
if pUnit:GetHealthPct() <50 then
pUnit:FullCastSpellOnTarget(38533, pUnit:GetRandomPlayer(7))
pUnit:SendChatMessage(11, 0, "Die!!")
end
end
function BlackTabby_OnDied(Unit, Event)
Unit:SetModel(5448)
end
RegisterUnitEvent(7383, 1, "BlackTabby_OnCombat")
RegisterUnitEvent(7383, 2, "BlackTabby_OnDied")
Should work.