if( pTarget->war() )
if( pTarget->isAtWar() )
void showPaperdoll( cUOSocket *socket, P_CHAR pTarget, bool hotkey ){	if( !socket )		return;	P_PLAYER pChar = socket->player();	if( !pChar || !pTarget )		return;	if( pTarget->onShowPaperdoll( pChar ) )		return;	// For players we'll always show the Paperdoll	if( pTarget->isHuman() || !pTarget->isNpc() )	{		// Theres one exception for player vendors, when you double click them		// Their packs should open instead of their paperdoll		if( pTarget->npcaitype() == 17 )		{			pTarget->talk( tr( "Take a look at my goods" ) );			if( pTarget->getBackpack() )				socket->sendContainer( pTarget->getBackpack() );			return;		}        // If we're mounted (item on layer 25) and *not* using a hotkey		// We're trying to unmount ourself		if( !hotkey && ( pTarget == pChar ) && pChar->unmount() )			return; // We have been unmounted		socket->sendPaperdoll( pTarget );	}	UINT16 body = pTarget->bodyID();	// Is that faster ??	switch( body )	{	case 0x0034:	case 0x004E:	case 0x0050:	case 0x003A:	case 0x0039:	case 0x003B:	case 0x0074:	case 0x0075:	case 0x0072:	case 0x007A:	case 0x0084:	case 0x0073:	case 0x0076:	case 0x0077:	case 0x0078:	case 0x0079:	case 0x00AA:	case 0x00AB:	case 0x00BB:	case 0x0090:	case 0x00C8:	case 0x00E2:	case 0x00E4:	case 0x00CC:	case 0x00DC:	case 0x00D2:	case 0x00DA:	case 0x00DB:	case 0x0317:	case 0x0319:	case 0x031A:	case 0x031F:		// Try to mount the rideable animal		if( pChar->dist( pTarget ) <  2 || pChar->isGM() )		{			if( !pChar->isHuman() )			{				socket->sysMessage( tr( "You are unable to ride an animal" ) );				return;			}			if( pChar->isDead() )			{				socket->clilocMessage( 0x7A4D5, "", 0x3b2 ); // You can't do that when you're dead.				return;			}			if( pTarget->war() )				socket->sysMessage( tr("Your pet is in battle right now!" ) );			else				pChar->mount( pTarget );		}		else			socket->sysMessage( tr( "This is too far away" ) );		break;	case 0x123:	case 0x124:		if( pTarget->owner() == pChar )				socket->sendContainer( pTarget->getBackpack() );	};}