I was thinking about this the other day for my server as well. I'm not a coder either but I figured I'd give something simple like this a shot. This is what I came up with, I'm not sure if I have the checks right...but I figure it should be in the ballpark. Let me know if it looks ok, I can't compile and test it just yet.
Code:
command_add("mystats","- Show details about you or your pet",50,command_mystats) ||
Code:
void command_mystats(Client *c, const Seperator *sep)
{
if (c->GetTarget() != 0 )
c->GetTarget()->IsPet()->IsClient()->ShowStats(c);
else if (!c->GetTarget()->IsClient()->IsPet())
c->Message(0, "This command only works on players and pets.");
else
c->ShowStats(c);
}