wornitems(socket, pc); int j; for (j=0;j<now;j++) { if (perm[j] && inrange1p(pc, currchar[j]) && (j!=socket)) wornitems(j, pc); }
pc->updateWornItems();
static void reverseIncognito(P_CHAR pc){	if(pc->incognito())//let's ensure it's under incognito effect!	{		pc->setId(pc->xid());				pc->setSkin( pc->xskin() );	// SKIN COLOR				pc->name = pc->orgname().latin1();	// NAME				if(pc->hairserial() != INVALID_SERIAL)//if hairs exist, restore hair style/color		{			P_ITEM pHair = FindItemBySerial(pc->hairserial());			if(pHair)			{				if(pHair->incognito) //let's ensure it was marked as under incognito effect				{					//stores old hair values					pHair->setColor( static_cast<unsigned short>(pHair->moreb1() << 8) + pHair->moreb2() );					pHair->setId( static_cast<UI16>( pHair->moreb3() << 8 ) + pHair->moreb4() );					pHair->incognito=false;				}			}		}				if(pc->beardserial()>-1)//if beard exists, restore beard style/color		{			P_ITEM pBeard = FindItemBySerial(pc->beardserial());			if(pBeard)			{				if(pBeard->incognito) //let's ensure it was marked as under incognito effect				{					//restores old beard values					pBeard->setColor( static_cast<unsigned short>(pBeard->moreb1()<<8) + pBeard->moreb2() );					pBeard->setId( static_cast<UI16>( pBeard->moreb3() << 8 ) + pBeard->moreb4() );					pBeard->incognito=false;				}			}		}				//only refresh once, when poly finished		teleport(pc);		int socket=calcSocketFromChar(pc);//calculate only once		if (socket!=-1)		{			wornitems(socket, pc);//send update to current socket			int j;			for (j=0;j<now;j++)			{//and to all inrange sockets (without re-sending to current socket)//AntiChrist				if (perm[j] && inrange1p(pc, currchar[j]) && (j!=socket))					wornitems(j, pc);			}		}		pc->setIncognito(false);//AntiChrist	}}