Jump to content
  • 0

increasing max_hp on battle.c


cahadeyelo

Question


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  170
  • Reputation:   1
  • Joined:  11/13/14
  • Last Seen:  

I'm planning to increase the maximum hp on battle.c up to 900b but when i tried to recompile the server i always got this error.

 

trunk\src\map\battle.c(7332): warning C4305: 'initializing' : truncation from '__int64' to 'int'

 

my revision is 17726 of rathena trunk, please help....

Edited by cahadeyelo
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

my ignorance deceives me sometimes, sorry...and i was hoping for a different answer coz I've done that

Hp can not exceed 2.1 (2^32-1 to be exact) bil as that is the limitations of the system you would have to change it from int32 to int 64 which is honestly not that easy

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  170
  • Reputation:   1
  • Joined:  11/13/14
  • Last Seen:  

or you can just tell me how to properly edit the max_hp capped on my server

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  80
  • Reputation:   1
  • Joined:  10/08/13
  • Last Seen:  

Just change max hp in player.conf.

// Maximum HP. (Default is 1000000)
max_hp: 1000000

Next time post in general support as this isn't a scripting issue and probably why you didn't get a fast reply.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  170
  • Reputation:   1
  • Joined:  11/13/14
  • Last Seen:  

my ignorance deceives me sometimes, sorry...and i was hoping for a different answer coz I've done that
 

Edited by cahadeyelo
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  170
  • Reputation:   1
  • Joined:  11/13/14
  • Last Seen:  

thanks sir Stalao for  clearing my questions, sad to say that my client ditched me up but the information you gave are in my future's use.

Link to comment
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.   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.

×
×
  • Create New...