[Archive] Name link and class color for world chat
[Archive] Name link and class color for world chat
tring msgs = "";Archived author: jangm0 • Posted: 2025-11-04T18:17:48.099968
Original source
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:
tring 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?