void CRaklionBattleUserMng::CheckUserState() { for (int iCount = 0; iCount < m_vtUserInfo.size(); iCount++) { int nIndex = m_vtUserInfo[iCount]; if (!gObjIsConnected(nIndex)) { LogAddTD("[ RAKLION ][ BattleUser ] Delete User - Disconnect [%s][%s]", gObj[nIndex].AccountID, gObj[nIndex].Name); DeleteUserData(nIndex); } if (gObj[nIndex].MapNumber != MAP_INDEX_RAKLIONBOSS && gObj[nIndex].m_State == 2 && gObj[nIndex].Live == 1 && gObj[nIndex].SkillRecallParty_MapNumber != MAP_INDEX_RAKLIONBOSS) { LogAddTD("[ RAKLION ][ BattleUser ] Delete User - Map Move [%s][%s]", gObj[nIndex].AccountID, gObj[nIndex].Name); DeleteUserData(nIndex); } } }
static void ProfileClearFunction( void *theEnv) { struct FunctionDefinition *theFunction; int i; for (theFunction = GetFunctionList(theEnv); theFunction != NULL; theFunction = theFunction->next) { theFunction->usrData = DeleteUserData(theEnv,ProfileFunctionData(theEnv)->ProfileDataID,theFunction->usrData); } for (i = 0; i < MAXIMUM_PRIMITIVES; i++) { if (EvaluationData(theEnv)->PrimitivesArray[i] != NULL) { EvaluationData(theEnv)->PrimitivesArray[i]->usrData = DeleteUserData(theEnv,ProfileFunctionData(theEnv)->ProfileDataID,EvaluationData(theEnv)->PrimitivesArray[i]->usrData); } } }