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

[TFS 1.5] Change experience to Level

Lokinho23

Member
Joined
Jan 15, 2025
Messages
21
Reaction score
8
I want to change this 1739417590188.webp
to this 1739417605543.webp
Post automatically merged:

The level up on experience not on level
 
Last edited:
Solution

Right now you got on experience bar the level and on level the reborn amount
If you want to change it back to default then change

C++:
msg.add<uint32_t>(std::min<uint32_t>(player->getLevel(), 0x7FFFFFFF));
to
C++:
msg.add<uint64_t>(player->getExperience());
and

C++:
msg.add<uint16_t>(player->getReborn());
to
C++:
msg.add<uint16_t>(player->getLevel());

and enable this in client:
LUA:
g_game.enableFeature(GameDoubleExperience)

Right now you got on experience bar the level and on level the reborn amount
If you want to change it back to default then change

C++:
msg.add<uint32_t>(std::min<uint32_t>(player->getLevel(), 0x7FFFFFFF));
to
C++:
msg.add<uint64_t>(player->getExperience());
and

C++:
msg.add<uint16_t>(player->getReborn());
to
C++:
msg.add<uint16_t>(player->getLevel());

and enable this in client:
LUA:
g_game.enableFeature(GameDoubleExperience)
 
Solution
Back
Top