CHARACTER cc = currchar[s];
static bool ForgeInRange(int s){	CHARACTER cc = currchar[s];	P_CHAR pc = MAKE_CHARREF_LRV(currchar[s], false);	bool rc = false;	unsigned int StartGrid=mapRegions->StartGrid(pc->pos.x,pc->pos.y);	unsigned int getcell=mapRegions->GetCell(pc->pos.x,pc->pos.y);	unsigned int increment=0, checkgrid, a;	for (checkgrid=StartGrid+(increment*mapRegions->GetColSize());increment<3;increment++, checkgrid=StartGrid+(increment*mapRegions->GetColSize()))	{		for (a=0;a<3;a++)		{			vector<SERIAL> vecEntries = mapRegions->GetCellEntries(checkgrid+a);			for ( unsigned int k = 0; k < vecEntries.size(); k++)			{				P_ITEM pi = FindItemBySerial(vecEntries[k]);				if (pi != NULL)					if(IsForge(pi->id()))						if(iteminrange(s,pi,3))							rc = true;			}		}	}	return rc;}