if (!pi->isInWorld ()) { P_ITEM bpack = GetOutmostCont (pi); if (bpack != NULL) { if (bpack->contserial == pc_currchar->serial) { return true; } } }
bool iteminrange (const UOXSOCKET s, const P_ITEM pi, const int distance){	P_CHAR pc_currchar = currchar[s];	if (pc_currchar->isGM()) return true;	return inRange(pc_currchar->pos.x,pc_currchar->pos.y,pi->pos.x,pi->pos.y,distance);}