socket->sysMessage( tr( "You can't reach this object to dye it." ) );
if( !socket->player() ) return true;  P_ITEM pItem = FindItemBySerial( target->serial() );  if( !pItem ) return true;  if( pItem->getOutmostChar() != socket->player() && !( pItem->isInWorld() && pItem->inRange( socket->player(), 4 ) ) ) { socket->sysMessage( tr( "You can't reach this object to dye it." ) ); return true; }  if( pItem->type() != 406 ) { socket->sysMessage( tr( "You can only dye dye tubs with this." ) ); return true; }  pItem->setColor( _color ); pItem->update();
bool cDyeTubDyeTarget::responsed( cUOSocket *socket, cUORxTarget *target ){	if( !socket->player() )		return true;		P_ITEM pItem = FindItemBySerial( target->serial() );		if( !pItem )		return true;		if( pItem->getOutmostChar() != socket->player() && !( pItem->isInWorld() && pItem->inRange( socket->player(), 4 ) ) )	{		socket->sysMessage( tr( "You can't reach this object to dye it." ) );		return true;	}		if( pItem->type() != 406 )	{		socket->sysMessage( tr( "You can only dye dye tubs with this." ) );		return true;	}		pItem->setColor( _color );	pItem->update();		return true;}