• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] Player Chat Tag

Status
Not open for further replies.

Black Ace

Insane Member
Hello , I have an idea but I'm not sure how to start working on it or how it is done :homerdoh:

You've seen the small picture behind Game master's name , " A blue icon saying Blizz " . it appears behind the game master's name on public channels , chat boxes and whispers.

I want to add a picture behind player's names as well so it would show on public channels , whispers and all just the way Blizz tag does.
and I want to add faction to it so ally and horde will have different Icons behind their names. ( also keep it mind that it has to be without option to .on and .off the icon )

Anyone knows how to make such thing? If so please explain :3
 

Tommy

Founder
Take a look at this thread: http://emudevs.com/showthread.php/1...ld-Chat-for-each-class-an-icon?highlight=Chat

It relates to your question; however, all you need to do is find the Blizzard GM Tag path and replace the other icon paths with that.

I didn't see "public channel" and chats. All you need to do is:

1. Go into ChatHandler.cpp
2. Find Line 240 and below
3. Check their permissions, faction, race, etc -- to give them different icons
4.

Code:
if (HasPermission(rbac::RBAC_PERMISSION) ) // GM, Admin
{
     std::string icon = "|TInterface\\icons\\INV_Staff_30:15|t|r";
     chn->Say(_player->GetGUID(), icon + msg.c_str(), lang);
}
else
    // Player, Moderator

Instead of RBAC:

Code:
if (player->GetSession()->GetSecuirty() >= 2 ) // GM, Admin
{
     std::string icon = "|TInterface\\icons\\INV_Staff_30:15|t|r";
     chn->Say(_player->GetGUID(), icon + msg.c_str(), lang);
}
else
    // Player, Moderator

And your outcome:

tufc.png


Kinda looks gay on the side of the message, but you get the jest on how to do it at least. \o/
 
Last edited:
Status
Not open for further replies.
Top