HelloWorld 0 Posted May 22 Share Posted May 22 Hello, i was wondering if i can make players name color to be the same for all players in a certain map. Link to comment Share on other sites More sharing options...
HelloWorld 0 Posted May 24 Author Share Posted May 24 up Link to comment Share on other sites More sharing options...
Active+ Member HFWhite 497 Posted May 24 Active+ Member Share Posted May 24 (edited) yes you can! // TUTORIAL FOR NAME CHANGE ABOVE PC In InstanceBaseEffect.cpp find: UINT CInstanceBase::GetNameColorIndex() below this: if (m_isKiller) { return NAMECOLOR_PK; } add: std::string stringMapName = CPythonBackground::Instance().GetWarpMapName(); if (stringMapName == "season1/metin2_map_oxevent") { return NAMECOLOR_PK; } change NAMECOLOR_PK with other NAMECOLOR or make your own. import this at the top: #include "PythonBackground.h" // TUTORIAL FOR NAME COLOR IN CHAT: in input_main.cpp find: int CInputMain::Chat(LPCHARACTER ch, const char * data, size_t uiBytes) below find: len = snprintf(chatbuf, sizeof(chatbuf), "%s : %s", ch->GetName(), buf); (this line might be different if you have global chat/multi language or other systems, but it's pretty much the same principle) and modify the function like this: if (ch->GetMapIndex() == 113) { len = snprintf(chatbuf, sizeof(chatbuf), "|cFFffa200%s|h|r : %s", ch->GetName(), buf); } else { len = snprintf(chatbuf, sizeof(chatbuf), "%s : %s", ch->GetName(), buf); } now, config your line as you want: |cFFffa200 ffa200 --> change with another HEX Color from the internet. (Search for HEX color generator) if (ch->GetMapIndex() == 113) 113 --> change with your map index now you have to do the binary part so that the name above the character is the same. Edited May 24 by HFWhite 1 Link to comment Share on other sites More sharing options...
HelloWorld 0 Posted May 25 Author Share Posted May 25 Thank you that did work perfectly, can i make an exception for duel ? Link to comment Share on other sites More sharing options...
HelloWorld 0 Posted May 30 Author Share Posted May 30 It worked, but i want to make some changes to it so that my name and the duel are not included, the whole idea is that i want to create a special map for dueling so that no player can hit other players or he sees them as enemies only if there is a duel. Link to comment Share on other sites More sharing options...
HelloWorld 0 Posted June 1 Author Share Posted June 1 up Link to comment Share on other sites More sharing options...
HelloWorld 0 Posted June 3 Author Share Posted June 3 up 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