Jump to content
  • 0

Help me guys


Dev Blaze

Question


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  212
  • Reputation:   5
  • Joined:  01/24/12
  • Last Seen:  

Player.conf setting

// The amount of HP a player will respawn with, 0 is default.
// (Unit is in percentage of total HP, 100 is full heal of HP, 0 is respawn with 1HP total.)
restart_hp_rate: 50

// The amount of SP a player will respawn with, 0 is default.
// (Unit is in percentage of total SP, 100 is full heal of SP, 0 is respawn with 1SP total.)
restart_sp_rate: 50

How to set On respawn, 50% of Max HP/SP will be restored.??

When i try to set restart_hp_rate: 50  the formula not working any idea how fix restart_hp_rate & restart_sp_rate? im using old revision thanks

hlUBRb7.png

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  212
  • Reputation:   5
  • Joined:  01/24/12
  • Last Seen:  

I try this script its not working any one help me

The amount of HP a player will respawn with 50%HP and SP

-    script    Heal    -1,{
OnPCDieEvent:
sleep2 1300;
if(killerrid != getcharid(3)) {
   dispbottom "50% of Max HP/SP will be restored";
   if(HP == 0);
   percentheal 50,50;

end;

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1536
  • Reputation:   237
  • Joined:  08/03/12
  • Last Seen:  

11 minutes ago, Dev Blaze said:

I try this script its not working any one help me

The amount of HP a player will respawn with 50%HP and SP

-    script    Heal    -1,{
OnPCDieEvent:
sleep2 1300;
if(killerrid != getcharid(3)) {
   dispbottom "50% of Max HP/SP will be restored";
   if(HP == 0);
   percentheal 50,50;

end;

why didnt u just set the restart hp and sp rate ?

https://github.com/rathena/rathena/blob/9f4587a652791c43cfa6f055d82e1293216d8b8b/conf/battle/player.conf

and... i think if restart respawn rate = 0, thats mean player will respawn with 1hp total

so change the script HP == 1 maybe ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  212
  • Reputation:   5
  • Joined:  01/24/12
  • Last Seen:  

1 minute ago, Chaos92 said:

why didnt u just set the restart hp and sp rate ?

https://github.com/rathena/rathena/blob/9f4587a652791c43cfa6f055d82e1293216d8b8b/conf/battle/player.conf

and... i think if restart respawn rate = 0, thats mean player will respawn with 1hp total

so change the script HP == 1 maybe ?

Hi sir i setup already but still nothing happen when i respawn i refer to this issue click LINK

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1536
  • Reputation:   237
  • Joined:  08/03/12
  • Last Seen:  

Just now, Dev Blaze said:

Hi sir i setup already but still nothing happen when i respawn i refer to this issue click LINK

which revision was that ? o.O

change 0 to 1

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  212
  • Reputation:   5
  • Joined:  01/24/12
  • Last Seen:  

6 minutes ago, Chaos92 said:

which revision was that ? o.O

change 0 to 1

 

I tried more >.< nothing happen still 1HP when i respawned

 

ZWsgc35.png

 

 

lfZMD2g.png

Edited by Dev Blaze
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   3
  • Joined:  05/22/12
  • Last Seen:  

restart_hp_rate: 50

restart_sp_rate: 50

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  212
  • Reputation:   5
  • Joined:  01/24/12
  • Last Seen:  

7 minutes ago, chibikyle said:

restart_hp_rate: 50

restart_sp_rate: 50

I did already MR Chibi same nothing happen still 1HP

Edited by Dev Blaze
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  83
  • Reputation:   11
  • Joined:  11/28/11
  • Last Seen:  

If the issue is caused by bad code, you'd have to go through the source code of your "old revision" and find the mistake, but I doubt this to be the case. It is likelier that you are overlooking something, or have a configured a wrong setting elsewhere.

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...