sysmessage(s, "You are no longer under the protection of the guards.");
sysmessage(s, 0x37, "You are no longer under the protection of the guards.");
void checkregion(int i){	int calcreg, s, j;	calcreg=calcRegionFromXY(chars[i].pos.x, chars[i].pos.y);	if (calcreg!=chars[i].region)	{		s=calcSocketFromChar(i);		if (s!=-1)		{			if (region[chars[i].region].name[0]!=0)			{				sprintf((char*)temp, "You have left %s, race owner %s.",region[chars[i].region].name, Races[region[chars[i].region].RaceOwner]->RaceName.c_str());				sysmessage(s, (char*)temp);			}			if (region[calcreg].name[0]!=0)			{				sprintf((char*)temp, "You have entered %s,race owner %s.",region[calcreg].name, Races[region[calcreg].RaceOwner]->RaceName.c_str());				sysmessage(s, (char*)temp);			}			j=strcmp(region[calcreg].guardowner, region[chars[i].region].guardowner);			if ( (region[calcreg].priv&0x01)!=(region[chars[i].region].priv&0x01) ||				(region[calcreg].priv&0x01 && j))			{				if (region[calcreg].priv&0x01)				{					if (region[calcreg].guardowner[0]==0)					{						sysmessage(s, "You are now under the protection of the guards.");					}					else					{						sprintf((char*)temp, "You are now under the protection of %s guards.", region[calcreg].guardowner);						sysmessage(s,(char*) temp);					}				}				else				{					if (region[chars[i].region].guardowner[0]==0)					{						sysmessage(s, "You are no longer under the protection of the guards.");					}					else					{						sprintf((char*)temp, "You are no longer under the protection of %s guards.", region[chars[i].region].guardowner);						sysmessage(s, (char*)temp);					}				}			}		}		chars[i].region=calcreg;		if (s!=-1) dosocketmidi(s);		if (indungeon(i)) dolight(s,dungeonlightlevel);	}}