Akbare Posted May 3, 2016 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
0 sotf Posted May 3, 2016 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
0 Akbare Posted May 3, 2016 Author 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
0 Emistry Posted May 3, 2016 Posted May 3, 2016 if ( Hp < ( Hp * 3 / 10 ) ) { percentheal 100,100; } end; 1 Quote
0 Akbare Posted May 3, 2016 Author 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
Question
Akbare
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
thanks for advance
Edited by Akbare6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.