Renco 19 Posted December 17, 2016 Share Posted December 17, 2016 (edited) Someone knows how can I do to be colored name depending on kingdom on the global chat? 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 19, 2016 Author Share Posted December 19, 2016 UP! Link to comment Share on other sites More sharing options...
MORTE 78 Posted December 19, 2016 Share Posted December 19, 2016 https://metin2dev.org/board/index.php?/topic/884-cglobal-chat/ https://metin2dev.org/board/index.php?/topic/884-cglobal-chat/ Link to comment Share on other sites More sharing options...
Renco 19 Posted December 19, 2016 Author Share Posted December 19, 2016 31 minutes ago, MORTE said: https://metin2dev.org/board/index.php?/topic/884-cglobal-chat/ https://metin2dev.org/board/index.php?/topic/884-cglobal-chat/ I don't want how you gave me, I want the name to have directly the respective kingdom's colour. Link to comment Share on other sites More sharing options...
Premium North 1175 Posted December 19, 2016 Premium Share Posted December 19, 2016 (edited) 50 minutes ago, Renco said: I don't want how you gave me, I want the name to have directly the respective kingdom's colour. Use a variable and exchange shinsoo jinno n stuff with the nickname We are not gonna do the work for you so you better start learning and stop being that rude if people wants to help you, say a thanks at least. You so will have "|cFFff0000|H|h" getnickname "|cFFff0000|H|h" (for red) This is an idea, i didnt test it but thats a simple way i think to do that 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 19, 2016 Author Share Posted December 19, 2016 I'll give 5E paypal for anyone who helps me. Link to comment Share on other sites More sharing options...
MORTE 78 Posted December 21, 2016 Share Posted December 21, 2016 char chatbuf[CHAT_MAX_LEN + 1]; int len; if (pinfo->type == CHAT_TYPE_SHOUT) { if (ch->GetGMLevel() == GM_IMPLEMENTOR) { len = snprintf(chatbuf, sizeof(chatbuf), "|cFFFFA500|H|h%s|h|r : %s", ch->GetName(), buf); } else { if (ch->GetEmpire() == 0) { len = snprintf(chatbuf, sizeof(chatbuf), "|cFFff0000|H|h%s|cFFA7FFD4|H|h : %s", ch->GetName(), buf); // SHINSOO } else if (ch->GetEmpire() == 1) { len = snprintf(chatbuf, sizeof(chatbuf), "|cFFFFFF00|H|h%s|cFFA7FFD4|H|h : %s", ch->GetName(), buf); // CHUNJO } else { len = snprintf(chatbuf, sizeof(chatbuf), "|cFF0080FF|H|h%s|cFFA7FFD4|H|h : %s", ch->GetName(), buf); // JINNO } } } else { len = snprintf(chatbuf, sizeof(chatbuf), "%s : %s", ch->GetName(), buf); } I did not test. 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