PDA

View Full Version : <GM> Tag in Who List



Wise
19-05-13, 11:58 PM
Hello everyone! I'm releasing a TrinityCore edit

.

What it does

When your GM Tag is on(.gm on), in who list you'll have a <GM> prefix before your name. Example:

<GM>

Nexus

Edit:

First browse to
src\server\game\Handlers
, and open
MiscHandler.cpp
.
Go to line 305, and try to find something like this:





std::string pname = target->GetName();
std::wstring wpname;



When you find it, try to make it look like this:





std::string pname;
if (itr->second->isGameMaster())
{
pname = "|cffff0000<GM>|r";
pname.append(itr->second->GetName());
}
else
pname = itr->second->GetName();
std::wstring wpname;


Save and recompile.

http://imageshack.us/a/img27/5162/wowscrnshot021113201743.jpg

------
Also if you want for the actual gm tag image



Change




pname = "|cffff0000<GM>|r";


to




pname ="|TInterface\\ChatFrame\\UI-ChatIcon-Blizz.blp:0:2:0:-3|t;

Laladin
20-05-13, 09:51 AM
That's pretty nice, thanks for sharing!