if( pVendor->npcaitype() != 17 ) return false;
bool PlayerVendorSpeech( cUOSocket *socket, P_CHAR pPlayer, P_CHAR pVendor, const QString &comm ){	if( pVendor->npcaitype() != 17 )	     return false;	if( pPlayer->dist( pVendor ) > 4 )		return false;	if( !VendorChkName( pVendor, comm ) )		return false;	if( ( comm.contains( " BROWSE" ) ) || ( comm.contains( " VIEW" ) ) || ( comm.contains( " LOOK" ) ) )	{		pVendor->talk( tr( "Take a look at my goods." ) );		if( pPlayer->socket() )			pPlayer->socket()->sendContainer( pVendor->getBackpack() );	    return true;	}		if( ( comm.contains( " BUY" ) ) || ( comm.contains( " PURCHASE" ) ) )	{		// >> LEGACY		/*addx[s]=pVendor->serial();		npctalk(s,pVendor,"What would you like to buy?",0);		target(s,0,1,0,224," ");*/		return true;	}	if( pVendor->owner() != pPlayer )		return false;	if( ( comm.contains( " COLLECT" ) ) || ( comm.contains( " GOLD" ) ) || ( comm.contains( " GET" ) ) )	{		PlVGetgold( socket, pPlayer, pVendor);		return true;	}	if( comm.contains( "PACKUP" ) )	{		P_ITEM pDeed = Items->SpawnItem( pPlayer, 1, "employment deed", 0, 0x14F0, 0, 1 );		if( pDeed )		{			pDeed->setType( 217 );			pDeed->setBuyprice( 2000 );			pDeed->setSellprice( 1000 );			pDeed->update();			cCharStuff::DeleteChar( pVendor );			socket->sysMessage( tr( "Packed up vendor %1." ).arg( pVendor->name() ) );			return true;		}	}	return false;}