if( pChar->account() ) pChar->account()->removeCharacter( pChar ); Npcs->DeleteChar( pChar );
iGump.addResizeGump( 0, 40, 0xA28, 450, 250 ); iGump.addGump( 105, 18, 0x58B ); iGump.addGump( 182, 0, 0x589 ); iGump.addTilePic( 202, 23, 0x14eb );  iGump.addText( 175, 90, tr( "Landscape Info" ), 0x530 );   iGump.addText( 50, 120, tr( "Name: %1" ).arg( lTile.name ), 0x834 ); iGump.addText( 50, 145, tr( "ID: 0x%1" ).arg( mapTile.id, 0, 16 ), 0x834 ); iGump.addText( 50, 170, tr( "Z Height: %1" ).arg( mapTile.z ), 0x834 );   QStringList flags;  if( lTile.flag1&0x80 ) flags.push_back( tr( "wet" ) );  if( lTile.flag1&0x40 ) flags.push_back( tr( "impassable" ) );  if( lTile.flag2&0x02 ) flags.push_back( tr( "surface" ) );  if( lTile.flag2&0x04 ) flags.push_back( tr( "stairs" ) );  iGump.addText( 50, 195, tr( "Properties: %1" ).arg( flags.join( ", " ) ), 0x834 );   iGump.addButton( 90, 240, 0x481, 0x483, 0 ); iGump.addText( 130, 240, tr( "Close" ), 0x834 );  iGump.send( socket );
	virtual void responsed( cUOSocket *socket, cUORxTarget *target )	{		P_CHAR pChar = FindCharBySerial( target->serial() );		P_ITEM pItem = FindItemBySerial( target->serial() );		if( pChar )		{			if( pChar->socket() )			{				socket->sysMessage( "You cannot delete logged in characters" );				return;			}			if( pChar->account() )				pChar->account()->removeCharacter( pChar );			Npcs->DeleteChar( pChar );		}		else if( pItem )		{			Items->DeleItem( pItem );		}		else			socket->sysMessage( "You need to select either an item or a character" );	}