Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Help Admin tag + Colors

Newbie Spellweaver
Joined
May 6, 2016
Messages
15
Reaction score
0
Code:
// ¸í¼º¿¡ µû¸¥ »öÇ¥½Ã.
#if __VER >= 13 // __HONORABLE_TITLE
        if( IsChaotic() )
            dwColor = prj.m_PKSetting.dwChaoColor;
        else if( IsPKPink() )
            dwColor = prj.m_PKSetting.dwReadyColor;
        else if( m_dwAuthorization >= AUTH_ADMINISTRATOR ) // GM / Admin colors
            dwColor = 0x00000000;
        else if( m_dwAuthorization >= AUTH_GAMEMASTER )
            dwColor = 0xffffffff;
        else
            dwColor = prj.m_PKSetting.dwGeneralColor;


        CString strFameName = GetTitle();
        if( strFameName.IsEmpty() == FALSE )
        {
            CString strName;
            strName = "[";
            strName += strFameName;
            strName += "] ";
            strName += m_szName;
            strcpy( szName, (LPCTSTR)strName );
        }


        // GM / Admin tag
        if(m_dwAuthorization >= AUTH_GAMEMASTER)
        {
            CString strName;
            strName = szName;
            if(m_dwAuthorization >= AUTH_ADMINISTRATOR)
            {
                strName += " [Admin]";
            }
            else
            {
                strName += " [GM]";
            }
            strcpy( szName, (LPCTSTR)strName );
        }


#else
vincentfrancis - Help Admin tag + Colors - RaGEZONE Forums




I have this code and when compiled = success. How come I am seeing myself as a normal char but with gm powers?
 
Owner
Loyal Member
Joined
May 13, 2011
Messages
1,497
Reaction score
157
Depends on what m_dwAuthorization level you are on.
 
Owner
Loyal Member
Joined
May 13, 2011
Messages
1,497
Reaction score
157
Check Authorization.h file to see what letter is with AUTH_ADMINISTRATOR
 
Newbie Spellweaver
Joined
May 6, 2016
Messages
15
Reaction score
0
Check Authorization.h file to see what letter is with AUTH_ADMINISTRATOR

#define AUTH_ADMINISTRATOR 'P' // 관리자 계정 ; 모든 기능을 사용할 수 있음. GM_LEVEL_4

I changed m_chLoginAuthority = P and still not working ):
 
Junior Spellweaver
Joined
Nov 21, 2015
Messages
180
Reaction score
21
default is there a Z authorization level or did you set one to that, from what I can recall the Z authority level will still have GM commands however since it's checking for a set AUTH_LEVEL does it need to match the Letter value? in this case I think AUTH_ADMINISTRATOR is = to S by default? or am I way off base.
 
Newbie Spellweaver
Joined
Dec 13, 2014
Messages
12
Reaction score
6
Which LANG are you using?
If you are using LANG_ENG / USA, try to check the file DPDatabaseClient.cpp
On function:
Code:
CDPDatabaseClient::OnJoin
Remove / Edit the following code:
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;
        }
 
Back
Top