Code:
#ifdef __STAT_HACKFIX_RH
if( IsValidObj( this ) )
{
if( !IsAuthHigher( AUTH_GAMEMASTER ) )
{
if( ( ( m_nSta-15 ) + ( m_nInt -15 ) + ( m_nDex -15 ) + ( m_nStr - 15 ) ) > 400 )
{
g_dpDBClient.SendBan( m_playAccount.lpszAccount, 9999 );
FILEOUT( "Hack.txt", "UserID = %07d, UserName = %s [STA:%d, INT:%d, DEX:%d, STR:%d] stats stat points, login returned", m_idPlayer, GetName(), m_nSta, m_nInt, m_nDex, m_nStr );
g_UserMng.RemoveUser( m_dwSerial );
}
}
}
//Stats-Check recoded!
if( IsValidObj( this ) )
{
if( !IsAuthHigher( AUTH_GAMEMASTER ) )
{
if( this->GetSta() > 1850 || this->GetInt() > 1850 || this->GetDex() > 1850 || this->GetStr() > 1850 )
{
//g_dpDBClient.SendBan( m_playAccount.lpszAccount, 9999 );
FILEOUT( "Hacktemp.txt", "UserID = %07d, UserName = %s [STA:%d, INT:%d, DEX:%d, STR:%d] stats stat points, login returned", m_idPlayer, GetName(), m_nSta + GetParam( DST_STA, 0 ), m_nInt + GetParam( DST_INT, 0 ), m_nDex + GetParam( DST_DEX, 0 ), m_nStr + GetParam( DST_STR, 0 ));
g_UserMng.RemoveUser( m_dwSerial );
}
}
}
#endif