Weight->NewCalc(pc_currchar); statwindow(ts, pc_currchar);
static void handle_IADD(UOXSOCKET const ts, int const ttype, const int coloring,const unsigned short memcolor, char* scpname){	cline = &script2[0];	splitline();//	unsigned int ItemNum = makenumber(0);	unsigned int InBackpack = makenumber(1);	P_CHAR pc_currchar = currchar[ts];		switch (pc_currchar->dir)	{	case 0: 		triggerx = pc_currchar->pos.x;		triggery = pc_currchar->pos.y - 1;		break;	case 1: 		triggerx = pc_currchar->pos.x + 1;		triggery = pc_currchar->pos.y - 1;		break;	case 2: 		triggerx = pc_currchar->pos.x + 1;		triggery = pc_currchar->pos.y;		break;	case 3: 		triggerx = pc_currchar->pos.x + 1;		triggery = pc_currchar->pos.y + 1;		break;	case 4: 		triggerx = pc_currchar->pos.x;		triggery = pc_currchar->pos.y + 1;		break;	case 5: 		triggerx = pc_currchar->pos.x - 1;		triggery = pc_currchar->pos.y + 1;		break;	case 6: 		triggerx = pc_currchar->pos.x - 1;		triggery = pc_currchar->pos.y;		break;	case 7: 		triggerx = pc_currchar->pos.x - 1;		triggery = pc_currchar->pos.y - 1;		break;	default: 		triggerx = pc_currchar->pos.x + 1;		triggery = pc_currchar->pos.y + 1;		break;	}	triggerz = pc_currchar->pos.z;	long pos = ftell(scpfile);	closescript();	// first create the item on the ground	P_ITEM pi_i = Targ->AddMenuTarget(ts, 1, str2num(script2));	triggerx = 0;	P_ITEM pPack = Packitem(pc_currchar);		if (pPack != NULL && pi_i != NULL)	{		// if player has a backpack		if (InBackpack)		{			// and item has to be added in player's backpack			pPack->AddItem(pi_i);			Weight->NewCalc(pc_currchar);			statwindow(ts, pc_currchar);		}	}// if player has backpack	// else leave it where it is (on the ground)	// Added colormem token here! by Magius(CHE) 	if (pi_i != NULL && coloring>-1)	{		pi_i->setColor( memcolor );		RefreshItem(pi_i);	}	// end addons	if (ttype)		openscript(scpname);	else 		openscript("wtrigrs.scp");	fseek(scpfile, pos, SEEK_SET);	strcpy((char*)script1, "DUMMY");}