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

[TFS 1.5] Change experience to Level

Lokinho23

Banned User
Joined
Jan 15, 2025
Messages
29
Reaction score
31
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