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

TFS 1.X+ TFS 1.5 HELP leveling up 1 level makes the player immortal

VagosClubTM

Active Member
Joined
Aug 16, 2019
Messages
219
Reaction score
32
Location
Chile
hello friends from otland I come to ask or if it has happened to someone else that when leveling up the player is completely regenerated, for example I use TFS 1.5 NEKIRO 860, at the time the player goes up 1 level and if the creature does not It deals enough damage, it regenerates to the point of never dying, the only way for it to die is for the other creature to hit it with double damage.

my creatures hit about 3 million attack and the player has 5 million mana, he shouldn't be able to heal that fast from that hit however he does I want to know what I can do.
 
Its called data overflow so you should check data types in database and in all cpp/header files
Do you mean the full HP/MP on level up? I can't understand.
Hello, thank you all for your answers, specifically what should I look for? And if this is for the database, perhaps increasing the limit of numbers allowed in the mana and life table will be greater?
 
Hello, thank you all for your answers, specifically what should I look for? And if this is for the database, perhaps increasing the limit of numbers allowed in the mana and life table will be greater?
yes increasing the numbers(or even changing types) in database will help, below data that will help you hopefully.

sql databyse size of variable types:
cpp variable type sizes:

if it goes for int16 int32 etc the number at the end is how much bytes are allocated for it

example below for cpp
Int16
: -32767 to 32767
uInt16: 0 to 65534
Int32: -2,147,483,648 to +2,147,483,647
uInt32: 0 to 4,294,967,295
Int64: -9,223,372,036,854,775,808 to +9,223,372,036,854,775,807
uInt64: 0 to 18,446,744,073,709,551,615

example below for sql
Smallint
: -32767 to 32767
Int: -2,147,483,648 to +2,147,483,647 (same as Small Money)
Bigint: -9,223,372,036,854,775,808 to +9,223,372,036,854,775,807 (same as Money)
Decimal: its float point number and it depends on precision you set
Numeric: same as Decimal
 
Back
Top