• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

OTClient Show emblem on character name in-game?

archer32

Member
Joined
Feb 3, 2011
Messages
89
Solutions
1
Reaction score
9
Hi,

Is there a way to show a emblem on certain vocations in-game? Such as emblem_blue for Mage and emblem_red for Druid? Have it show up next to their name in-game, so everybody sees it.

Thanks in advanced

TFS 1.3, Client 10.98
 
It will override the war system emblems which I suppose is the point

Comment this line

Under the previous line, paste:
C++:
    GuildEmblems_t emblem = GUILDEMBLEM_NONE;
    if (otherPlayer && player != otherPlayer) {
        if (otherPlayer->getVocationId() == 1)
            emblem = GUILDEMBLEM_NEUTRAL;
        else if (otherPlayer->getVocationId() == 2)
            emblem = GUILDEMBLEM_ENEMY;
    }
    msg.addByte(emblem);
 
It will override the war system emblems which I suppose is the point

Comment this line

Under the previous line, paste:
C++:
    GuildEmblems_t emblem = GUILDEMBLEM_NONE;
    if (otherPlayer && player != otherPlayer) {
        if (otherPlayer->getVocationId() == 1)
            emblem = GUILDEMBLEM_NEUTRAL;
        else if (otherPlayer->getVocationId() == 2)
            emblem = GUILDEMBLEM_ENEMY;
    }
    msg.addByte(emblem);
Thanks for the info, I did the change and re-compiled, it "worked" sorta.. there is a black box around the characters and it looks like the creature summon icon, lol... but vocation 2 shows up invisible. And GM account is all goofed (since no longer has a vocation).. I will keep testing, let me know if you have any other ideas though.
 
Last edited:
It will override the war system emblems which I suppose is the point

Comment this line

Under the previous line, paste:
C++:
    GuildEmblems_t emblem = GUILDEMBLEM_NONE;
    if (otherPlayer && player != otherPlayer) {
        if (otherPlayer->getVocationId() == 1)
            emblem = GUILDEMBLEM_NEUTRAL;
        else if (otherPlayer->getVocationId() == 2)
            emblem = GUILDEMBLEM_ENEMY;
    }
    msg.addByte(emblem);
Wybór silnika do gier w 2025 roku zależy mocno od tego, czy planujesz gry 2D czy 3D i jak ważna jest dla ciebie społeczność oraz wsparcie. Ja używam Godot do małych projektów, a w przerwach lubię gry o szybszym tempie, jak automaty online. Na MarathonBet: Obstawiaj i Wygrywaj w Marathon Bet Już Dziś! (https://marathonbet-casino.pl/) można znaleźć sporo slotów i bonusów, które pozwalają trochę się odstresować między sesjami kodowania.
Thanks for sharing.
 

Similar threads

Back
Top