Help me guys

* Blaze *

New member
Messages
110
Points
0
Emulator
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;


 
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
 

 
Last edited by a moderator:
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 

 
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 ?

 
Emm try this one

Code:
-    script    Heal    FAKE_NPC,{
OnPCDieEvent:
	sleep2 1300;
	dispbottom "50% of Max HP/SP will be restored";
	percentheal 50,50;
	end;
}
 
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
z0ttGZc.png


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

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


 
Back
Top