Renco 19 Posted December 24, 2016 Share Posted December 24, 2016 (edited) How can I make to appear the kingdom for name on normal chat like it appears on the global one? Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Renco 19 Posted December 25, 2016 Author Share Posted December 25, 2016 UP! Link to comment Share on other sites More sharing options...
Hesher 3 Posted December 25, 2016 Share Posted December 25, 2016 char chatbuf[CHAT_MAX_LEN + 1]; #ifdef ENABLE_CHAT_COLOR_SYSTEM // static const char* colorbuf[] = {" |h|r[寔햇?|cFFffa200|h", " |h|r[遁鞍?|cFFff0000|h", " |h|r[讀安?|cFFffc700|h", " |h|r[警仰]|cFF000bff|h"}; // Arab static const char* colorbuf[] = {"|cFFffa200|H|h[STAFF]|h|r", "|cFFff0000|H|h[Rosu]|h|r", "|cFFffc700|H|h[Galben]|h|r", "|cFF000bff|H|h[Albastru]|h|r"}; int len = snprintf(chatbuf, sizeof(chatbuf), "%s %s : %s", (ch->IsGM()?colorbuf[0]:colorbuf[MINMAX(0, ch->GetEmpire(), 3)]), ch->GetName(), buf); #else int len = snprintf(chatbuf, sizeof(chatbuf), "%s : %s", ch->GetName(), buf); #endif Link to comment Share on other sites More sharing options...
Renco 19 Posted December 25, 2016 Author Share Posted December 25, 2016 1 hour ago, Hesher said: char chatbuf[CHAT_MAX_LEN + 1]; #ifdef ENABLE_CHAT_COLOR_SYSTEM // static const char* colorbuf[] = {" |h|r[寔햇?|cFFffa200|h", " |h|r[遁鞍?|cFFff0000|h", " |h|r[讀安?|cFFffc700|h", " |h|r[警仰]|cFF000bff|h"}; // Arab static const char* colorbuf[] = {"|cFFffa200|H|h[STAFF]|h|r", "|cFFff0000|H|h[Rosu]|h|r", "|cFFffc700|H|h[Galben]|h|r", "|cFF000bff|H|h[Albastru]|h|r"}; int len = snprintf(chatbuf, sizeof(chatbuf), "%s %s : %s", (ch->IsGM()?colorbuf[0]:colorbuf[MINMAX(0, ch->GetEmpire(), 3)]), ch->GetName(), buf); #else int len = snprintf(chatbuf, sizeof(chatbuf), "%s : %s", ch->GetName(), buf); #endif In what file from source must put and what must be replaced? Link to comment Share on other sites More sharing options...
Hesher 3 Posted December 25, 2016 Share Posted December 25, 2016 Input_main.cpp Link to comment Share on other sites More sharing options...
Renco 19 Posted December 25, 2016 Author Share Posted December 25, 2016 39 minutes ago, Hesher said: Input_main.cpp I said normal chat no global chat Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now