Jump to content
  • 0

Question

Posted

I tried the guide and still not working. Anyone would like to help me? The thing I want is both hp to be max to 20mil. So like, Max Hp 20mil and when heal hp goes 20mil.

6 answers to this question

Recommended Posts

Posted

i think it's the SQL datatype for HP and MAXHP column are not enough to cover 20,000,000 HP...since it can only hold up to around 8,000,000 mil++ HP only..because it's mediumint(8)

 

 

try run this SQL query.

ALTER TABLE `char` CHANGE COLUMN `max_hp` `max_hp` INT UNSIGNED NOT NULL DEFAULT '0'  , CHANGE COLUMN `hp` `hp` INT UNSIGNED NOT NULL DEFAULT '0'  ;

 

Please do a back up before you run this..just in case anything unusual happen ~

Posted

I am not exactly sure where to put that

i think it's the SQL datatype for HP and MAXHP column are not enough to cover 20,000,000 HP...since it can only hold up to around 8,000,000 mil++ HP only..because it's mediumint(8)

try run this SQL query.

ALTER TABLE `char` CHANGE COLUMN `max_hp` `max_hp` INT UNSIGNED NOT NULL DEFAULT '0'  , CHANGE COLUMN `hp` `hp` INT UNSIGNED NOT NULL DEFAULT '0'  ;

Please do a back up before you run this..just in case anything unusual happen ~

I am not sure where to put that. I am sorry for being noob.

Posted

so I run that "ALTER TABLE `char` CHANGE COLUMN `max_hp` `max_hp` INT UNSIGNED NOT NULL DEFAULT '0' , CHANGE COLUMN `hp` `hp` INT UNSIGNED NOT NULL DEFAULT '0' ;" in the machine.....

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...