Hey guys, I'm trying to set up a tag for the ingame staff. I have searched the forums found 1 or 2 posts that looked promising but they don't explain in great detail what is required. (there was one which was spoon fed But I did not want to use their code as that's no way to learn).
Any how lets get on with it.
This is my MoverRender.cpp file.
Now let me explain the issue before going into my code.
I know that the Admin - Game Master 3 & 2 colour work. My issue is a bit further down where the tags are added.
When I add the code small code below under the "ViP Developer" tag it compiles fine no issue BUT! when I log into the game there is either no tag or no name.
Here is me being set as the GameMaster2 (which is my Head GM authroity) in the database:
The funny thing is, when I set myself as the 'ADMIN' (Z Authority in DB) this happens:
So here is the main code, AUTH_GAMEMASTER2 is the Head GM. I have removed it from the code below as it was throwing the above picture error.
I have not changed the Authorization.h file this has been left as as normal. But here it is just incase:
Any help would be great, if I have not explained this very well please just reply and I will try and explain a bit clearer.
Many thanks
- Josh
Any how lets get on with it.
This is my MoverRender.cpp file.
Now let me explain the issue before going into my code.
I know that the Admin - Game Master 3 & 2 colour work. My issue is a bit further down where the tags are added.
When I add the code small code below under the "ViP Developer" tag it compiles fine no issue BUT! when I log into the game there is either no tag or no name.
Code:
else
{
strName += " [ViP Head GM]";
}
Here is me being set as the GameMaster2 (which is my Head GM authroity) in the database:
![tenchh - GM - ADMIN ingame tags - Help - RaGEZONE Forums tenchh - GM - ADMIN ingame tags - Help - RaGEZONE Forums](http://i1140.photobucket.com/albums/n575/greeny100/flyff00012.jpg)
The funny thing is, when I set myself as the 'ADMIN' (Z Authority in DB) this happens:
![tenchh - GM - ADMIN ingame tags - Help - RaGEZONE Forums tenchh - GM - ADMIN ingame tags - Help - RaGEZONE Forums](http://i1140.photobucket.com/albums/n575/greeny100/flyff00013.jpg)
So here is the main code, AUTH_GAMEMASTER2 is the Head GM. I have removed it from the code below as it was throwing the above picture error.
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 = 0xff99CCFF;
else if( m_dwAuthorization >= AUTH_GAMEMASTER3 )
dwColor = 0xffFFFF00;
else if( m_dwAuthorization >= AUTH_GAMEMASTER2 )
dwColor = 0xffFFFF00;
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_GAMEMASTER3)
{
CString strName;
strName = szName;
if(m_dwAuthorization >= AUTH_ADMINISTRATOR)
{
strName += " [ViP Owner]";
}
else
{
strName += " [ViP Developer]";
}
strcpy( szName, (LPCTSTR)strName );
}
#else
I have not changed the Authorization.h file this has been left as as normal. But here it is just incase:
Code:
#ifndef __AUTHORIZATION_H#define __AUTHORIZATION_H
// AUTHORAZATION 정의들. ADMINISTRATOR에 가까울 수룩 수퍼 계정이다.
#define AUTH_OBSERVER 'D' // 관찰자 계정 ; 방송용, 모니터링, 감시용
#define AUTH_GENERAL 'F' // 일반 사용자 유저
#define AUTH_LOGCHATTING 'G' // 채팅로그를 남길 일반유저
#define AUTH_JOURNALIST 'H' // Youtubers - Gives ViP YouTube Tag
#define AUTH_HELPER 'J' // MODERATOR/ViP Helper - Gives ViP Helper Tag
#define AUTH_GAMEMASTER 'L' // NORMAL GM - RESTRICTED POWERS - Gives ViP GM Tag
#define AUTH_GAMEMASTER2 'M' // HEAD GM - HAS ADMIN POWERS - Gives ViP Head GM Tag
#define AUTH_GAMEMASTER3 'N' // ADMIN POWERS - USED FOR DEVELOPER - Gives ViP Developer Tag
#define AUTH_OPERATOR 'O' // System Operator - Not used**
#define AUTH_ADMINISTRATOR 'P' // VIP OWNER - FULL COMMANDS - GIVES ViP Owner Tag
Any help would be great, if I have not explained this very well please just reply and I will try and explain a bit clearer.
Many thanks
- Josh