danhakhavro 42 Posted April 22, 2021 Share Posted April 22, 2021 (edited) Hello, Does anyone know how and where to remove the kingdom name from normal chat? But do not remove the kingdom name when we talk with " ! ". Thanks! Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
danhakhavro 42 Posted April 26, 2021 Author Share Posted April 26, 2021 I suppose it's somewhere around here: #ifdef ENABLE_CHAT_COLOR_SYSTEM static const char* colorbuf[] = {"|cFFffa200|H|h[Staff]|h|r", "|cFFff0000|H|h[Shinsoo]|h|r", "|cFFffc700|H|h[Chunjo]|h|r", "|cFF000bff|H|h[Jinno]|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...
danhakhavro 42 Posted May 9, 2021 Author Share Posted May 9, 2021 Or is not there? Link to comment Share on other sites More sharing options...
danhakhavro 42 Posted May 14, 2021 Author Share Posted May 14, 2021 Bump Link to comment Share on other sites More sharing options...
Premium WeedHex 635 Posted May 14, 2021 Premium Share Posted May 14, 2021 innput_main.cpp yeah Link to comment Share on other sites More sharing options...
danhakhavro 42 Posted May 19, 2021 Author Share Posted May 19, 2021 On 5/14/2021 at 11:09 PM, WeedHex said: innput_main.cpp yeah Yes but how should i change ? Maybe somebody have ideia? Bump Link to comment Share on other sites More sharing options...
Cunoo 210 Posted May 19, 2021 Share Posted May 19, 2021 1 hour ago, danhakhavro said: Yes but how should i change ? Maybe somebody have ideia? Bump Learn some basic of c/c++ then go start metin Link to comment Share on other sites More sharing options...
Active Member iMerv3 768 Posted May 19, 2021 Active Member Share Posted May 19, 2021 (edited) #ifdef ENABLE_CHAT_COLOR_SYSTEM static const char* colorbuf[] = {"|cFFffa200|H|h[Staff]|h|r", "|cFFff0000|H|h[Shinsoo]|h|r", "|cFFffc700|H|h[Chunjo]|h|r", "|cFF000bff|H|h[Jinno]|h|r"}; int len; if (CHAT_TYPE_SHOUT == pinfo->type) { len = snprintf(chatbuf, sizeof(chatbuf), "%s %s : %s", (ch->IsGM()?colorbuf[0]:colorbuf[MINMAX(0, ch->GetEmpire(), 3)]), ch->GetName(), buf); } else { len = snprintf(chatbuf, sizeof(chatbuf), "%s : %s", ch->GetName(), buf); } #else int len = snprintf(chatbuf, sizeof(chatbuf), "%s : %s", ch->GetName(), buf); #endif or #ifdef ENABLE_CHAT_COLOR_SYSTEM static const char* colorbuf[] = {"|cFFffa200|H|h [Staff]|h|r", "|cFFff0000|H|h [Shinsoo]|h|r", "|cFFffc700|H|h [Chunjo]|h|r", "|cFF000bff|H|h [Jinno]|h|r"}; int len = snprintf(chatbuf, sizeof(chatbuf), "%s%s : %s", pinfo->type == CHAT_TYPE_SHOUT ? (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 Edited May 19, 2021 by iMerv3 1 Link to comment Share on other sites More sharing options...
danhakhavro 42 Posted May 20, 2021 Author Share Posted May 20, 2021 (edited) 9 hours ago, Cunoo said: Learn some basic of c/c++ then go start metin Thanks for your answer, I don't know what I would do without it. I have to learn c ++, tell me that a person who doesn't know how to compile a source. Thanks you iMerv3 it works! Edited May 20, 2021 by danhakhavro 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