Jump to content

Color name chat global!


Recommended Posts

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Premium
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
 

8htRk.png

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.