Likes Likes:  1
Results 1 to 2 of 2
  1. #1
    Graphics Guru

    Join Date
    Feb 2009
    Posts
    1,372
    Post Thanks / Like
    Rep Power
    24
    Reputation
    382

    <GM> Tag in Who List

    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:


    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 List
    Last edited by Wise; 20-05-13 at 12:01 AM.



  2. Related Threads - Scroll Down after related threads if you are only interested to view replies for above post/thread

  3. #2
    Sergeant
    Laladin's Avatar
    Join Date
    Apr 2010
    Location
    Athens, Greece
    Posts
    90
    Post Thanks / Like
    Rep Power
    17
    Reputation
    26

    Register to remove this ad
    That's pretty nice, thanks for sharing!

  4. Likes 6yTblJIka liked this post
 

 

Tags for this Thread

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •