if ( !pc || !pc->socket() || pc->npc() )
if ( !pc || pc->objectType() == enNPC )
UOXSOCKET calcSocketFromChar(P_CHAR pc){	if ( !pc || !pc->socket() || pc->npc() )	{		return -1;	}	return cNetwork::instance()->getuoSocketsIndex( pc->socket() );}