• 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!

[Help] Hide all players level on look

belier140

New Member
Joined
Apr 7, 2010
Messages
36
Reaction score
2
Hello, can someone tell me which files do i have to edit to succesfully do this? (if possible) . I tried to delete this
Code:
s << nameDescription;
        if(!hasCustomFlag(PlayerCustomFlag_HideLevel))
            s << " (Level " << level << ")";
from player.cpp but it seems like i need something else... Thnx for your help.
 
Did you try changing the code you posted? Could make it like:

Code:
s << nameDescription;
    if(!hasCustomFlag(PlayerCustomFlag_HideLevel))
        s << "";

Just for testing :)
 
Oh yep, srry i felt slep while compiling... that makes the trick, can u help me erasing the lvl from the chat aswell? =)
 
havent tried but in protocolgame.cpp find this:
Code:
if(speaker && type != SPEAK_RVR_ANSWER && !speaker->isAccountManager()
            && !speaker->hasCustomFlag(PlayerCustomFlag_HideLevel))
            msg->put<uint16_t>(speaker->getPlayerInfo(PLAYERINFO_LEVEL));
        else
            msg->put<uint16_t>(0x00);
and delete most of it so it just looks like this:
Code:
            msg->put<uint16_t>(0x00);
 
Back
Top