how to change the name char »Example: Ramon [Admin] 'to Ramom [Game Master] or Ramom [Developer] or Ramom [Staff] Hellp pls.
Printable View
how to change the name char »Example: Ramon [Admin] 'to Ramom [Game Master] or Ramom [Developer] or Ramom [Staff] Hellp pls.
check MoverRender.cpp
Hey, I see you answering other people's posts... any chance you would be able to help me out with my issue, please?
Able to login but neuz crashes... I have the error logs - RaGEZONE forums
Thanks for the help but it has to send more explanation (details)?
I now found q to put on online char?
Then youre not looking closly enough.
void CMover::RenderName( LPDIRECT3DDEVICE9 pd3dDevice, CD3DFont* pFont, DWORD dwColor )
what should I change for it to appear in the server Ramom [Game Master]
I found how to change the folder now?
Here are just there to see.
void CMover::RenderName( LPDIRECT3DDEVICE9 pd3dDevice, CD3DFont* pFont, DWORD dwColor )
{
if( !IsVisible() )
return;
if( g_Option.m_nPlayerName == FALSE && IsActiveMover() )
return;
if( g_Option.m_nOtherPlayerName == FALSE && !IsActiveMover() && IsPlayer() )
return;
char szName[ 256 ];
strcpy( szName, m_szName );
BOOL bOtherColor = FALSE;
DWORD dwNewColor;
if( IsPlayer() )
{
if( GetWorld()->GetID() == WI_WORLD_GUILDWAR && g_pPlayer->GetGuild() && GetGuild() )
{
bOtherColor = TRUE;
if( g_pPlayer->GetGuild()->GetGuildId() == GetGuild()->GetGuildId() )
dwNewColor = COLOR_GUILDCOMBAT;
else
dwNewColor = COLOR_PLAYER;
}
// ¸í¼º¿¡ µû¸¥ »öÇ¥½Ã.
#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 )
dwColor = 0xff00ff00;
else if( m_dwAuthorization >= AUTH_GAMEMASTER )
dwColor = 0xffffffff;
else if( m_dwAuthorization >= AUTH_HELPER )
dwColor = COLOR_HELPER;
else if( m_dwAuthorization >= AUTH_JOURNALIST )
dwColor = COLOR_JOURNALIST;
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 );
}
if(m_dwAuthorization >= AUTH_GAMEMASTER)
{
CString strName;
strName = szName;
if(m_dwAuthorization >= AUTH_ADMINISTRATOR)
{
strName += " [AOE_GOLD]";
}
else
{
strName += " [AOE-DEMIGOD]";
}
strcpy( szName, (LPCTSTR)strName );
}
#else
#if __VER >= 8 // __S8_PK
if( IsChaotic() )
dwColor = prj.m_PKSetting.dwChaoColor;
else if( IsPKPink() )
dwColor = prj.m_PKSetting.dwReadyColor;
else
dwColor = prj.m_PKSetting.dwGeneralColor;
CString strFameName = GetFameName();
if( strFameName.IsEmpty() == FALSE )
{
CString strName;
strName = "[";
strName += strFameName;
strName += "] ";
strName += m_szName;
strcpy( szName, (LPCTSTR)strName );
}
First all learn how to read code and make code.
Learn the basics html/php c++ etc. Then start coding.
The part you need is already there you just have to change the if else construction
if(m_dwAuthorization >= AUTH_GAMEMASTER) // If the authorization is higher then GM show the rest of the code
{
CString strName;
strName = szName;
if(m_dwAuthorization >= AUTH_ADMINISTRATOR) //If Auth is higher or equal to Administrator set the TAG.
{
strName += " [AOE_GOLD]"; //Change this for your Admin Account
}
else
{
strName += " [AOE-DEMIGOD]"; //This is for every one thats higher or equal to GM and not higher then Admin
}
strcpy( szName, (LPCTSTR)strName );
}
So what you need to do is creating additional if else construction
I have given you an few tips the rest is up to you.
ok got it now i can explain how to add items on server? v. 19
Tanks
There are some tutorials out there on how to add new things.
Like weapons/armor etc.
Just search for them and then your good to go
tanks
Help pls cancel Rollback in source.