int ci=0, loopexit=0;
unsigned int ci=0;
static void MoveBelongingsToBp(P_CHAR pc, CHARACTER c){	P_ITEM pPack = Packitem(pc);	if (pPack == NULL)	{		pPack = Items->SpawnItem(calcSocketFromChar(c),c,1,"#",0,0x0E,0x75,0,0,0,0);		if (pPack == NULL)			return;		pc->packitem = pPack->serial; 		pPack->SetContSerial(chars[c].serial);		pPack->layer=0x15;		pPack->type=1;		pPack->dye=1;	}	int ci=0, loopexit=0;	P_ITEM pi;	vector<SERIAL> vecContainer = contsp.getData(pc->serial);	for ( ci = 0; ci < vecContainer.size(); ci++)	{		pi = FindItemBySerial(vecContainer[ci]);		if (pi->layer!=0x15 && pi->layer!=0x1D &&			pi->layer!=0x10 && pi->layer!=0x0B && (pi->free==0))		{			if ((pi->trigon==1) && (pi->trigtype==2) && (pi->layer<19))// -Frazurbluu- Trigger Type 2 is my new trigger type *-			{				triggerwitem(c, pi, 1); // trigger is fired			}			pi->pos.x=(rand()%80)+50;			pi->pos.y=(rand()%80)+50;			pi->pos.z=9;			pi->SetContSerial(pPack->serial);			pi->layer=0x00;			SndRemoveitem(pi->serial);			RefreshItem(pi);		}		else if (pc->Wears(pi) &&			(pi->layer==0x0B || pi->layer==0x10))	// hair & beard (Duke)		{			Items->DeleItem(pi);		}	}	updatechar(c);}