MMOCoin

Likes Likes:  1
Results 1 to 2 of 2

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Graphics Guru

    Join Date
    Feb 2009
    Posts
    1,377
    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;

    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

 

 

Tags for this Thread

Posting Permissions

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