What's new

Name link and class color for world chat

jangm0

Verified Member
25
2015
1
Hello Emucoach!

So I got this world chat for /o patch 5.4.2
I managed to give ranks the color. I dont know any C++.
Anyways my questions is can I add namelink to the name so you can click the player and whisper him?
Also give the names their class color.

This is the first part of the script:
Code:
std::string msgs = "";
		switch (GetPlayer()->GetSession()->GetSecurity())
		{
		case SEC_PLAYER: // Player [ Default ]
			msgs += "[World] - ";
			msgs += GetPlayer()->GetName();
			msgs += ": |cfffaeb00";
			break;

I found this in another script and tried adding it:
Code:
msgs += GetNameLink(player);

But I got something say identifier is undefined.

Anything else I can try adding?
 
Last edited:
Top