void ProtocolGame::AddPlayerStats(NetworkMessage* msg)
{
msg->AddByte(0xA0);
msg->AddU16(player->getHealth());
msg->AddU16(player->getPlayerInfo(PLAYERINFO_MAXHEALTH));
msg->AddU16((int32_t)player->getFreeCapacity());
if (player->getLevel() >= 0xFFFF) {
msg->AddU32(player->getPlayerInfo(PLAYERINFO_LEVEL));
msg->AddU16(0);
} else {
if(player->getExperience() > 0x7FFFFFFF) {
msg->AddU32(0x7FFFFFFF);
} else {
msg->AddU32(player->getExperience());
}
msg->AddU16(player->getPlayerInfo(PLAYERINFO_LEVEL));
}
msg->AddByte(player->getPlayerInfo(PLAYERINFO_LEVELPERCENT));
msg->AddU16(player->getMana())...
Do not succeedI'd suggest you follow the steps given by Gesior, however I'm not sure if this applies to all tfs versions.
- [C++] How to increase maximum level on server
We'll need some more info to bite our teeth into before we can help you. What is the exact problem you are stumbling upon?Do not succeed
i want edit my max level to 777,777 ok? now level stuck in 65 at clientWe'll need some more info to bite our teeth into before we can help you. What is the exact problem you are stumbling upon?
Ok, i will waitWhen I get on pc I will help y
Reduce the amount of experience needed for the next level, that is the easiest way to to increase the max level.hello how to change level instead of experience to make level come up caus i wanna make high exp level, level at my server stuck in 65 k in client i want make experience calculate level instead of level how?
thanks
can you explain with some example please?Reduce the amount of experience needed for the next level, that is the easiest way to to increase the max level.
Level is gained based on experience, we all know this, the thing most people do not know is that there is a limited range of numbers which can be used for experience, this range is based on a data type, the larger the data type the larger the range which can be used, however when you use larger data types you also use more memory. Not only that but converting data types from one type to another can lead to unexpected results.can you explain with some example please?
yeah, you came to what I wanted to say a long time ago.. thanksYou guys dont understand him.
At the level info it stops at level 65K or something, here a picture what I mean
Screenshot - 23a5a0bdc4705493ac23c69ea9ccd8a8 - Gyazo
and he wants to break that limit so it shows up 100.000 or something like that
after u reach level 65.353 or something it resets back to 1.
here a gif:
Screen capture - f624085efc2cf0a056a4292acefcdc02 - Gyazo
I do understand but unfortunately you & @MaR0 didn't comprehend the explanation i gave about breaking the limit.You guys dont understand him.
At the level info it stops at level 65K or something, here a picture what I mean
Screenshot - 23a5a0bdc4705493ac23c69ea9ccd8a8 - Gyazo
and he wants to break that limit so it shows up 100.000 or something like that
after u reach level 65.353 or something it resets back to 1.
here a gif:
Screen capture - f624085efc2cf0a056a4292acefcdc02 - Gyazo
i want change level to experienceI'm pretty sure that limit is on the client, not the engine itself