Likes: 1
Results 1 to 2 of 2
Thread: <GM> Tag in Who List
-
19-05-13, 11:58 PM #1
<GM> Tag in Who List
Register to remove this adHello 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 tosrc\server\game\Handlers, and openMiscHandler.cpp.
Go to line 305, and try to find something like this:
Code:std::string pname = target->GetName(); std::wstring wpname;
When you find it, try to make it look like this:
Code: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.
------
Also if you want for the actual gm tag image
Change
Code:pname = "|cffff0000<GM>|r";
to
Code:pname ="|TInterface\\ChatFrame\\UI-ChatIcon-Blizz.blp:0:2:0:-3|t;
› See More: <GM> Tag in Who ListLast edited by Wise; 20-05-13 at 12:01 AM.
-
20-05-13, 09:51 AM #2
Register to remove this adThat's pretty nice, thanks for sharing!
-
Post Thanks / Like - 1 Likes6yTblJIka liked this post