int x,pos,j;
int x,pos;
void enlist(int s, int listnum) // listnum is stored in items morex{	int x,pos,j;	char sect[50];	openscript("items.scp");	sprintf(sect, "ITEMLIST %i", listnum);	if (!i_scripts[items_script]->find(sect))	{		closescript();		if (n_scripts[custom_item_script][0]!=0)		{			openscript(n_scripts[custom_item_script]);			if (!i_scripts[custom_item_script]->find(sect))			{				clConsole.send("WOLFPACK: ITEMLIST not found, aborting.\n");				closescript();//AntiChrist				return;			} else strcpy(sect,n_scripts[custom_item_script]);		} else {			clConsole.send("WOLFPACK: ITEMLIST not found, aborting.\n");			return;		}	} else strcpy(sect, "items.scp");	unsigned long loopexit=0;	do	{		read2();		if (script1[0]!='}')		{			x=str2num(script1);			pos=ftell(scpfile);			closescript();//AntiChrist			P_ITEM pi_j = Items->SpawnItemBackpack2(s, x, 0);			if(pi_j == NULL) return;//AntiChrist to preview crashes			openscript(sect);			fseek(scpfile, pos, SEEK_SET);			strcpy((char*)script1, "DUMMY");			RefreshItem(pi_j);//AntiChrist		}	}	while((strcmp((char*)script1,"}")) && (++loopexit < MAXLOOPS) );	closescript();//AntiChrist}