Jump to content
  • 0

Question

Posted

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

9 answers to this question

Recommended Posts

  • 0
Posted

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;

  • 0
Posted
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 ?

  • 0
Posted
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

  • 0
Posted
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

 

  • 0
Posted (edited)
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
  • 0
Posted

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.

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