Forums WoW Modding Discussion Miscellaneous [Archive] Name link and class color for world chat

[Archive] Name link and class color for world chat

[Archive] Name link and class color for world chat

rektbyfaith
Administrator
0
11-04-2025, 05:17 PM
#1
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:Confusedtring 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?
rektbyfaith
11-04-2025, 05:17 PM #1

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:Confusedtring 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?

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)