HP of a Char

You can do this VIA your SQL DB. The table you're looking for should be 'char' and you look for the column "max_hp":

`max_hp` mediumint(8) unsigned NOT NULL default '0'
 and change accordingly.

 
Last edited by a moderator:
If you want SQL version then try the post above, if you want it via script then something like this :

Code:
Hp = Hp + 500; // Add 500 hit points on current amount of hit points.MaxHp = MaxHP + 500; // Add 500 hit points on maximum available amount of hit points.
Code:
Hp - Current amount of hit points.MaxHP - Maximum amount of hit points.
 
Last edited by a moderator:
Main problems on those answers is (i believe), maxHP returns to normal when recalculated, say a VIT change or any other thing.

Don't know a way of solving that issue, though.

 
Last edited by a moderator:
Main problems on those answers is (i believe), maxHP returns to normal when recalculated, say a VIT change or any other thing.

Don't know a way of solving that issue, though.
Yes, I tried to edit the max_hp in  char table but the hp still revert back when I logged in. 

1 create item and

2 use itemeffect function
I think this will do, or create a passive skill that will add HP to your char (might work but, never tried this though) 
default_biggrin.png


 
Maybe you set a maximum hp that exceeds the max_hp config here

 
Back
Top