unmounthorse(targSocket);
pc->unmount();
static void GMTarget(P_CLIENT ps, P_CHAR pc){	UOXSOCKET s = ps->socket();	int i;		if (SrvParams->gmLog())	{		sprintf((char*)temp, "%s.gm_log",currchar[s]->name.c_str());		sprintf((char*)temp2, "%s has made %s a GM.\n",currchar[s]->name.c_str(),pc->name.c_str());		savelog((char*)temp2, (char*)temp);	}	UOXSOCKET targSocket = calcSocketFromChar(pc);	if ( targSocket == -1 )		return;	unmounthorse(targSocket);	//AntiChrist bugfix		pc->setId(0x03DB);	pc->setSkin(0x8021);	pc->setXid(0x03DB);	pc->setXSkin(0x8021);	pc->setPriv(0xF7);	pc->setPriv2((unsigned char) (0xD9));		pc->setMenupriv(-1); // LB, disabling menupriv stuff for gms per default		for (i = 0; i < TRUESKILLS; i++)	{		pc->setBaseSkill(i,1000);		pc->setSkill(i, 1000);	}		// All stats to 100	pc->setSt( 100 );	pc->setSt2( 100 );	pc->setHp( 100 );	pc->setStm( 100 );	pc->setIn( 100 );	pc->setIn2( 100 );	pc->setMn( 100 );	pc->setMn2( 100 );	pc->setDex( 100 );		if (strncmp(pc->name.c_str(), "GM", 2))	{		sprintf((char*)temp, "GM %s", pc->name.c_str());		pc->name = (char*)temp;	}	MoveBelongingsToBp(pc, pc);}