UOXSOCKET s=ps->GetSocket();
UOXSOCKET s=ps->socket();
static void ItemTarget(P_CLIENT ps, PKGx6C *pt){	UOXSOCKET s=ps->GetSocket();	P_ITEM pi=FindItemBySerial(pt->Tserial);	if (pi==NULL) return;	switch(pt->Tnum)	{	case 10://MoreTarget		pi->more1=addid1[s];		pi->more2=addid2[s];		pi->more3=addid3[s];		pi->more4=addid4[s];		RefreshItem(pi);		break;	case  28://MovableTarget	case 111://yes, it's duplicate		pi->magic=addx[s];		RefreshItem(pi);		break;	case 31://ColorsTarget		if (pi->id()==0x0FAB ||						//dye vat			pi->id()==0x0EFF || pi->id()==0x0E27 )	//hair dye			SndDyevat(s,pi->serial,pi->id());		else			sysmessage(s, "You can only use this item on a dye vat.");		break;	case 63://MoreXTarget		pi->morex=addx[s];		break;	case 64://MoreYTarget		pi->morey=addx[s];		break;	case 65://MoreZTarget		pi->morez=addx[s];		break;	case 66://MoreXYZTarget		pi->morex=addx[s];		pi->morey=addy[s];		pi->morez=addz[s];		break;	case 89://ObjPrivTarget		if (addid1[s]==0) pi->priv=pi->priv&0xFE; // lb ...		if (addid1[s]==1) pi->priv=pi->priv|0x01;		if (addid1[s]==3) pi->priv=addid2[s];		break;	case 122://SetValueTarget		pi->value=addx[s];		break;	case 123://SetRestockTarget		pi->restock=addx[s];		break;	case 129://SetAmount2Target		if (addx[s] > 64000) //Ripper..to fix a client bug for over 64k.		{			sysmessage(s, "No amounts over 64k in a pile!");			return;		}		pi->setAmount2( addx[s] );		RefreshItem(pi);		break;	case 133://SetWipeTarget		pi->setWipe( addid1[s] != 0 ? true : false );		RefreshItem(pi);		break;	}}