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

Compiling [Source-Edit] Player name contains his level?

slavi

#define SLAVI32 _WIN32
Senator
Joined
Sep 9, 2015
Messages
681
Solutions
11
Reaction score
560
GitHub
slavidodo
Hello everybody.
I need to make player's name containing his level.
I've check the player.cpp, player.h and i've found
Code:
void setName(std::string name) {
            this->name = name;
        }
So to use this ?? how? i think i should edit protocolgame.cpp in :
Code:
player = new Player(this);
        player->setName(name);
and editing when player levels up in player.cpp so the name matches the level, Hope someone help me :D
 
Why do you assume it is not possible with regular client?
VCgd1hkiK.gif


I quote what Scarlet metion:


So only way to get around this is to update creature info to the spectators.
bump , help me do that , please
 
Why do you assume it is not possible with regular client?
VCgd1hkiK.gif


I quote what Scarlet metion:


So only way to get around this is to update creature info to the spectators.
When i tried to make it depend on Scarlet's idea, the console crashes once start.
maybe i did something wrong because i don't got mush experience, so some help could be useful.
Greetings , slavi.
 
Back
Top