Jump to content
  • 0
Sign in to follow this  
* Blaze *

Help me guys

Question

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;

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Hercules > Conf / Map / Battle /Player.conf
 

// 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: 0  << Change to 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: 0  << Change to 50



// 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
 
Edited by ace9010

Share this post


Link to post
Share on other sites
  • 0

 

Hercules > Conf / Map / Battle /Player.conf

 

// 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: 0  << Change to 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: 0  << Change to 50

 

 

 

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

I did already bug 

Share this post


Link to post
Share on other sites
  • 0

 

 

Hercules > Conf / Map / Battle /Player.conf

 

// 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: 0  << Change to 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: 0  << Change to 50

 

 

 

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

I did already bug 

what's the bug ?

Share this post


Link to post
Share on other sites
  • 0

Emm try this one

-    script    Heal    FAKE_NPC,{
OnPCDieEvent:
	sleep2 1300;
	dispbottom "50% of Max HP/SP will be restored";
	percentheal 50,50;
	end;
} 

Share this post


Link to post
Share on other sites
  • 0

Yeah, i dont think this is possible using script because even if you get healed while you're dead which is the case to tigger OnPCDieEvent your hp gonna get rested when you revive so you should use the battle config restart_hp_rate (try to change the value and restart the server instead of using reloadbattleconf).

Share this post


Link to post
Share on other sites
  • 0

Using Asheraf's script, why not add @raise after "sleep2"? so percentheal may take effect. Just an idea :)

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.