One of the most aske questions to me here the fix.
GameMaster Auth Fix
Look for
Code:
if( ::GetLanguage() == LANG_ENG && ::GetSubLanguage() == LANG_SUB_USA )
{
CString strIp = pUser->m_playAccount.lpAddr;
if( strIp.Find( "116.125.62.148" ) < 0 && strIp.Find( "64.71.27.34" ) < 0 )
pUser->m_dwAuthorization = AUTH_GENERAL;
}
You can read what it does ? then you know what to do :P
It checks if your ip isn't 116.125.62.148 or 64.71.27.34
If it isn't 116.125.62.148 or 64.71.27.34 then your auth is AUTH_GENERAL
change to
Code:
if( ::GetLanguage() == LANG_ENG && ::GetSubLanguage() == LANG_SUB_USA )
{
CString strIp = pUser->m_playAccount.lpAddr;
}
Now your auth goes trough the database