Jump to content
×
×
  • Create New...
  • 0

Color name chat global!


Renco

Question

  • Answers 6
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

6 answers to this question

Recommended Posts

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

Link to comment
  • 0
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Announcements

  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021


  • Read our Rules
  • Activity

    1. 3

      Quest Craft

    2. 3

      Quest Craft

    3. 414

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    4. 11

      Metin2 Patcher with Electron

    5. 17

      I Want Find freebsd 11.4 with remove unnecessary codes

    6. 17

      I Want Find freebsd 11.4 with remove unnecessary codes

    7. 3

      Quest Craft

  • Recently Browsing

    • No registered users viewing this page.

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.