Akbare Posted May 3, 2016 Share Posted May 3, 2016 (edited) my idea under 30% HP npc can use heal upper 30% HP npc can't heal this my script my problem : he did heal continuous prontera,166,66,4 script Free Healer 113,{ if (MaxHprate < 30) dispbottom "free healer"; percentheal 30,30; skilleffect 28,0; } else { mes "Maaf kamu tidak bisa menggunakan layanan ini"; close; } thanks for advance Edited May 3, 2016 by Akbare Quote Link to comment Share on other sites More sharing options...
0 benching Posted May 3, 2016 Share Posted May 3, 2016 percentheal 100,100; 1 Quote Link to comment Share on other sites More sharing options...
0 sotf Posted May 3, 2016 Share Posted May 3, 2016 (edited) prontera,166,66,4 script Free Healer 113,{ if (Hp = MaxHP*0.3) { dispbottom "free healer"; percentheal 30,30; skilleffect 28,0; } else { mes "Maaf kamu tidak bisa menggunakan layanan ini"; close; } Not sure if that's right, but there you go. (not really sure if 0.3 will work or not hahaha). other special variables: https://rathena.org/board/topic/72019-where-i-can-find-default-variables-of-game/?p=143798 Edited May 3, 2016 by sotf 1 Quote Link to comment Share on other sites More sharing options...
0 Akbare Posted May 3, 2016 Author Share Posted May 3, 2016 (edited) prontera,166,66,4 script Free Healer 113,{ if (Hp = MaxHP*0.3) { dispbottom "free healer"; percentheal 30,30; skilleffect 28,0; } else { mes "Maaf kamu tidak bisa menggunakan layanan ini"; close; } Not sure if that's right, but there you go. (not really sure if 0.3 will work or not hahaha). other special variables: https://rathena.org/board/topic/72019-where-i-can-find-default-variables-of-game/?p=143798 hahhaa thanks for help but there is error if (Hp = MaxHP*0.3) { i can try other variables, maybe someone can help me Edited May 3, 2016 by Akbare Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted May 3, 2016 Share Posted May 3, 2016 if ( Hp < ( Hp * 3 / 10 ) ) { percentheal 100,100; } end; 1 Quote Link to comment Share on other sites More sharing options...
0 Akbare Posted May 3, 2016 Author Share Posted May 3, 2016 if ( Hp < ( Hp * 3 / 10 ) ) { percentheal 100,100; } end; not working sir HP < 30% npc can heal player but HP >30% npc can't heal prontera,166,66,4 script Free Healer 113,{ if ( Hp < ( Hp * 3 / 10 ) ) { percentheal 100,100; mes "THis Heal power for you"; close; } mes "can't heal"; close; } Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted May 3, 2016 Share Posted May 3, 2016 if ( Hp < ( MaxHp * 3 / 10 ) ) { Quote Link to comment Share on other sites More sharing options...
my idea
under 30% HP npc can use heal
upper 30% HP npc can't heal
this my script
my problem : he did heal continuous
prontera,166,66,4 script Free Healer 113,{ if (MaxHprate < 30) dispbottom "free healer"; percentheal 30,30; skilleffect 28,0; } else { mes "Maaf kamu tidak bisa menggunakan layanan ini"; close; }thanks for advance
Edited by AkbareLink to comment
Share on other sites