* Blaze * 6 Posted January 16, 2017 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;} Quote Share this post Link to post Share on other sites
0 ace9010 0 Posted January 16, 2017 (edited) 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 January 16, 2017 by ace9010 Quote Share this post Link to post Share on other sites
0 * Blaze * 6 Posted January 16, 2017 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 Quote Share this post Link to post Share on other sites
0 ace9010 0 Posted January 16, 2017 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 ? Quote Share this post Link to post Share on other sites
0 * Blaze * 6 Posted January 16, 2017 still when i respawn my HP : 1 only Quote Share this post Link to post Share on other sites
0 Asheraf 123 Posted January 16, 2017 Emm try this one - script Heal FAKE_NPC,{ OnPCDieEvent: sleep2 1300; dispbottom "50% of Max HP/SP will be restored"; percentheal 50,50; end; } Quote Share this post Link to post Share on other sites
0 * Blaze * 6 Posted January 18, 2017 Emm try this one - script Heal FAKE_NPC,{ OnPCDieEvent: sleep2 1300; dispbottom "50% of Max HP/SP will be restored"; percentheal 50,50; end; } Hello not working sir Asheraf Quote Share this post Link to post Share on other sites
0 Asheraf 123 Posted January 18, 2017 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). Quote Share this post Link to post Share on other sites
0 Legend 43 Posted January 18, 2017 Using Asheraf's script, why not add @raise after "sleep2"? so percentheal may take effect. Just an idea Quote Share this post Link to post Share on other sites
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