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

Level in Experience Table

Pniakk

New Member
Joined
Jul 22, 2018
Messages
6
Reaction score
0
Hi, i have Question, How to make our level shown in the Experience table? In Server Source or Client Source?
 
Hello, its client side based so it won't be hard to edit. Don't know if it work, but let's try.
1. On Your protocolgame search for the function.
Code:
void ProtocolGame::AddPlayerStats(NetworkMessage& msg)
2. You will see there are two lines about level and exp.
Code:
msg.add<uint64_t>(player->getExperience());
msg.add<uint16_t>(player->getLevel());
3. Edit it to this and take a look if it working perfectly with Your client.

Code:
if (player->getLevel() >= std::numeric_limits<uint16_t>::max()) {
     msg.add<uint64_t>(player->getLevel());
     msg.add<uint16_t>(0);
} else {
     msg.add<uint64_t>(player->getExperience());
     msg.add<uint16_t>(player->getLevel())
}
 
Back
Top