How to add custom chat color for GM's

07/24/2015 10:24 blacksystem1990#1
Is there any way to change the chat text color from GM's?

Like:

Code:
if($player >= AUTH_GAMEMASTER) {
//the $player write in red color
}
I tried in WndManager.cpp but actually there is only defines for general colors.
So I'm actually confused.
07/25/2015 23:58 KetchupSamurai#2
BOOL TextCmd_shout( CScanner& scanner )

Find...
Code:
#if __VER >= 12 // __LORD
	DWORD dwColor	= 0xffff99cc;
	if( pUser->HasBuff(  BUFF_ITEM, II_SYS_SYS_LS_SHOUT ) )
		dwColor		= 0xff00ff00;
	arBlock << dwColor;
#endif	// __LORD
Edit away..
07/26/2015 02:18 blacksystem1990#3
Quote:
Originally Posted by KetchupSamurai View Post
BOOL TextCmd_shout( CScanner& scanner )

Find...
Code:
#if __VER >= 12 // __LORD
	DWORD dwColor	= 0xffff99cc;
	if( pUser->HasBuff(  BUFF_ITEM, II_SYS_SYS_LS_SHOUT ) )
		dwColor		= 0xff00ff00;
	arBlock << dwColor;
#endif	// __LORD
Edit away..
Uhm, this will only change /shout messages, I wanted to change ALL chats color for GMs, like, general chat, /say chat, shout, etc etc
07/26/2015 21:25 raventh1984#4
Here Inside this function
void CDPSrvr::OnChat

You could have found that with this code II_SYS_SYS_SCR_FONTEDIT

Cause that scroll will change the font color and font style.

Also FuncText for the /say/whisper/shout/guildchat etc.