Should be pretty easy to do. Just copy the
#showstats command, but add 2 checks: 1 to see if the target is your pet, and another to see if your target is you. If not, it will default to you.
Here's the current
#showstats command code from
zone/command.cpp:
Code:
void command_showstats(Client *c, const Seperator *sep)
{
if (c->GetTarget() != 0 )
c->GetTarget()->ShowStats(c);
else
c->ShowStats(c);
}
You can change the first if statement to check if the target is your pet (not sure what the function is off the top of my head, something like
IsPet()). The else should be able to stay the same.
Methinks this might be a good time to learn you some coding