Jump to content
  • 0
Sign in to follow this  
skenywitdafer

HP of a Char

Question

6 answers to this question

Recommended Posts

  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

If you want SQL version then try the post above, if you want it via script then something like this :

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.

 

Hp - Current amount of hit points.MaxHP - Maximum amount of hit points.
Edited by Patskie

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

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)  :D

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.