Jhosef Posted May 21, 2012 Posted May 21, 2012 (edited) i request a buffer npc with 10 sec delay... Edited May 21, 2012 by Jhosef Quote
XenaNyx Posted May 21, 2012 Posted May 21, 2012 prontera,100,100,4 script DelayBuff 100,{ if ( Delay_Heal > gettimetick(2) ) goto deley; percentheal 100,100; skilleffect 34,0; sc_start SC_BLESSING,1800000,10; skilleffect 29,0; sc_start SC_INCREASEAGI,1800000,10; percentheal 100,100; set Delay_Heal,gettimetick(2)+10; end; deley: dispbottom "Wait 10 mins"; end; } Quote
Docubo Posted May 21, 2012 Posted May 21, 2012 change the dispottom into this if you wanna see how much seconds left: dispbottom "Sorry you have to wait for " + ((Delay_Heal - gettimetick(2)) % 10) + " seconds"; it was already set to 10 seconds.. just the message was wrong. Quote
Emistry Posted May 22, 2012 Posted May 22, 2012 ur calculation.....wrong ? ((Delay_Heal - gettimetick(2)) % 10) this will lead to a wrong message if the users have set to a delay that is higher than 10.. because the value will shown are only in the range of 0 ~ 9 use this...it is more than enough ~ xD ( Delay_Heal - gettimetick(2) ) Quote
XenaNyx Posted May 24, 2012 Posted May 24, 2012 ahh, sorry i don't use english in my npc , i forgot a little bit Quote
Question
Jhosef
i request a buffer npc with 10 sec delay...
Edited by Jhosef5 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.