TFS 0.X TFS 0.4 Hp/Mp in Percent on HIGH EXP server with rebirth system.

Aurolio

Premium User
Premium User
Joined
Aug 26, 2018
Messages
44
Best answers
0
Reaction score
3
OP
Aurolio

Aurolio

Premium User
Premium User
Joined
Aug 26, 2018
Messages
44
Best answers
0
Reaction score
3
Bump
 

roriscrave

Intermediate OT User
Joined
Dec 7, 2011
Messages
609
Best answers
16
Reaction score
71
the max hp/mp is 65536, because it is uint16, if u need more u need to change to uin32, hp and mana
probably need to change the source code and the client.exe too
 
OP
Aurolio

Aurolio

Premium User
Premium User
Joined
Aug 26, 2018
Messages
44
Best answers
0
Reaction score
3
I found out something interesing. So the % are working correctly until my character reach 21.7kk HP/MP. After this value, it shows 65535 again. Anyone know how to fix that?
 
OP
Aurolio

Aurolio

Premium User
Premium User
Joined
Aug 26, 2018
Messages
44
Best answers
0
Reaction score
3
BUMP
 

tetra20

DD
Joined
Jan 17, 2009
Messages
1,304
Best answers
3
Reaction score
286
Location
Egypt
If I recall correctly, It shouldn't stop at 21.7kk but 2.14kkk(you are missing a k) and that's probably because servers are limited by int32_t, you should change that to int64_t to avoid overflow.
 
OP
Aurolio

Aurolio

Premium User
Premium User
Joined
Aug 26, 2018
Messages
44
Best answers
0
Reaction score
3
Well, I am not missing a k, that's the point.
 
OP
Aurolio

Aurolio

Premium User
Premium User
Joined
Aug 26, 2018
Messages
44
Best answers
0
Reaction score
3
BUMP
 
Top