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

Programmer Unlimited HP/MP

_Aion_

Nothing Else
Joined
Jan 19, 2010
Messages
401
Solutions
4
Reaction score
10
Location
Jequie,Bahia,Brazil
Hello, i'm buying an modification for my sourcer.
I need "unlimited" HP/MP, i'm using TFS 0.3.7, the problem is, when the player reach 2,1kkk of life or mana, dont give more, if he pass give error, and life/mana back from zero.
Is possible made this, because have one server with this feature highexp.eu have all unlimited(mana, life and level).

Sorry for my bad english.
 
simple way to do this - change hp/mana/level from int32 to long long long int and all done.
Here the values table (sizes!):
Code:
    signed char: -127 to 127 (note, not -128 to 127; this accommodates 1's-complement platforms)
    unsigned char: 0 to 255
    "plain" char: -127 to 127 or 0 to 255 (depends on default char signedness)
    signed short: -32767 to 32767
    unsigned short: 0 to 65535
    signed int: -32767 to 32767
    unsigned int: 0 to 65535
    signed long: -2147483647 to 2147483647
    unsigned long: 0 to 4294967295
    signed long long: -9223372036854775807 to 9223372036854775807
    unsigned long long: 0 to 18446744073709551615

you need a unsigned long long value =) Find defenitions of mp/hp/lvl/ in player.cpp of you server and change it! Simple "task" very simple...
 
Back
Top