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!

Flyff font in source?

Newbie Spellweaver
Joined
May 14, 2013
Messages
21
Reaction score
0
Hello there, how can I make Admin & GM font bold? (Not all text, only staff)

This is my MoverRender.cpp file:
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 = COLOR_ADMINISTRATOR;
else if( m_dwAuthorization >= AUTH_GAMEMASTER )
dwColor = COLOR_GAMEMASTER;
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 );
}


Thanks!
Bartjak
 
One word! Im Fawkin Pro!
Loyal Member
Joined
Jul 1, 2010
Messages
1,254
Reaction score
359
Those are only for names...
Try to find font , I think it is in EditString.cpp or Itheme.cpp
find where the color is set, and add a similar code for admins/gms
try it out with for example change color etc..

Can't help more as for now but I'll try too look it up whenever I got time
 
Last edited:
Inactive
Joined
Jan 20, 2009
Messages
1,015
Reaction score
1,830
Itheme.cpp & .h to define the font.
World3D.cpp to attach it to character names.
 
Newbie Spellweaver
Joined
May 14, 2013
Messages
21
Reaction score
0
Okay thank, i've been looking for some days right now, but I can not find where I have to add it into the source.
There's also no release from anyone doing it. I know that mazeyflyff has it in its source atm.
I've started coding for some days ago, and Im trying to learn the logics about it.
In my ITheme.cpp i currenly have this:
Code:
#ifdef __LANG_1013	PLANG_DATA pLangData	= CLangMan::GetInstance()->GetLangData( ::GetLanguage() );	CD3DFont* pFont;	pFont = new CD3DFont( pLangData->font.afi[0].szFont, 9 );	m_mapFont.SetAt( _T( "gulim9"), pFont );	pFont = new CD3DFont( pLangData->font.afi[1].szFont, 8 );	m_mapFont.SetAt( _T( "gulim8"), pFont );	pFont = new CD3DFont( pLangData->font.afi[2].szFont, 13 );	m_mapFont.SetAt( _T( "gulim13"), pFont );	pFont = new CD3DFont( pLangData->font.afi[3].szFont, 9);	pFont->m_nOutLine	= pLangData->font.afi[3].nOutLine;	pFont->m_dwColor	= 0xffffffff;	pFont->m_dwBgColor	= pLangData->font.afi[3].dwBgColor;	m_mapFont.SetAt( _T( "Arial Black9"), pFont );	pFont = new CD3DFont( pLangData->font.afi[4].szFont, 9);	pFont->m_nOutLine	= pLangData->font.afi[4].nOutLine;	pFont->m_dwColor	= 0xffffffff;	pFont->m_dwBgColor	= pLangData->font.afi[4].dwBgColor;	m_mapFont.SetAt( _T( "FontWorld"), pFont );	pFont = new CD3DFont( pLangData->font.afi[5].szFont, 15 );	pFont->m_nOutLine = pLangData->font.afi[5].nOutLine;	pFont->m_dwColor	= 0xffffffff;	pFont->m_dwBgColor	= pLangData->font.afi[5].dwBgColor;	pFont->m_dwFlags	= pLangData->font.afi[5].dwFlags;	m_mapFont.SetAt( _T( "gulim20"), pFont );#if __VER >= 12 // __SECRET_ROOM	pFont = new CD3DFont( pLangData->font.afi[2].szFont, 11, D3DFONT_BOLD );	pFont->m_nOutLine = 1;	m_mapFont.SetAt( _T( "gulim11"), pFont );	pFont = new CD3DFont( pLangData->font.afi[2].szFont, 9, D3DFONT_BOLD );	pFont->m_nOutLine = 1;	m_mapFont.SetAt( _T( "gulim9_2"), pFont );
Do you guys think I have to add something like this?

if( m_dwAuthorization >= AUTH_GAMEMASTER )
pFont = new CD3DFont( pLangData->font.afi[2].szFont, 11, D3DFONT_BOLD );


I think D3DFONT_BOLD is bold text? Seems logic to me...

Anyways, thanks for your help guys.
 
Back
Top