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

Windows TFS 0.4 Skills Windows

Syiko

Scripter/Developer
Joined
Aug 28, 2017
Messages
474
Solutions
3
Reaction score
108
SKills Windows Give players Debug after Level such as : >2200000
I think It's From this >
Code:
    uint64_t experience = player->getExperience();
    if(experience > 0x7FFFFFFF) // client debugs after 2,147,483,647 exp
        msg->put<uint32_t>(0x7FFFFFFF);
    else
        msg->put<uint32_t>(experience);
i Tried Too Many Before Down This Thread
 
Last edited:
Because 2,147,483,647 is the max value for an unsigned 32 bit.
You have to change the source code to use 64 bit insted and check if the client can handle a 64bit value otherwise don't display it.
With hp, mana etc you can show a percentage of the value insted.

There are numerous threads about this exact same issue if you wanna find more info.
 
How could i make the experience Stage Value no change means > 100 never change .. ?
 
How could i make the experience Stage Value no change means > 100 never change .. ?

Not 100% sure what you mean, but if you want a max stage this is what you do;
Lua:
<stage minlevel="100" multiplier="x" />

If a player is over 100 they will have x times more exp (just remove maxLevel)
 
Not 100% sure what you mean, but if you want a max stage this is what you do;
Lua:
<stage minlevel="100" multiplier="x" />

If a player is over 100 they will have x times more exp (just remove maxLevel)
I mean Experience get high values i need to do it percent or make it one value never change even i got level 100million .
 
Back
Top