Alexandria 53 Posted November 13, 2015 Hello guys, I would like to a delay to this healer (60 secs) and also a dispbottom about the time remaining http://upaste.me/690a21952c4dae7f7 something like: dispbottom "You can be healed again in +time+."; Thank you! Quote Share this post Link to post Share on other sites
0 Winterfox 83 Posted November 13, 2015 @@Alexandria //===== Description: =========================================//= Basic healer script.//===== Additional Comments: =================================//= 1.0 Initial script.//= 1.1 Aligned coordinates with @go.//= 1.2 Fix variables and character stuck at healing//============================================================- script Healer -1,{ if( gettimetick( 2 ) < HEALCD ) { dispbottom "You need wait for " + gettimetick( 2 ) - HEALCD + " seconds."; end; } sc_end SC_STONE; sc_end SC_FREEZE; sc_end SC_STUN; sc_end SC_SLEEP; sc_end SC_POISON; sc_end SC_CURSE; sc_end SC_SILENCE; sc_end SC_CONFUSION; sc_end SC_BLIND; sc_end SC_BLEEDING; percentheal 100,100; specialeffect2 EF_INCAGILITY; sc_start SC_INC_AGI,240000,10; specialeffect2 EF_BLESSING; sc_start SC_BLESSING,240000,10; emotion e_lv; HEALCD = gettimetick( 2 ) + 60; end;}// Duplicates//============================================================alberta,25,240,6 duplicate(Healer) Healer#alb 4_F_ACOLYTE,5,5 Quote Share this post Link to post Share on other sites
0 Alexandria 53 Posted November 13, 2015 Thank you. [Error]: script:op_2: invalid data for operator C_SUB[Debug]: Data: string value="You need wait for 1447438021"[Debug]: Data: number value=1447438079 Quote Share this post Link to post Share on other sites
0 Winterfox 83 Posted November 13, 2015 @@Alexandria //===== Description: =========================================//= Basic healer script.//===== Additional Comments: =================================//= 1.0 Initial script.//= 1.1 Aligned coordinates with @go.//= 1.2 Fix variables and character stuck at healing//============================================================- script Healer -1,{ if( gettimetick( 2 ) < HEALCD ) { dispbottom "You need wait for " + ( gettimetick( 2 ) - HEALCD ) + " seconds."; end; } sc_end SC_STONE; sc_end SC_FREEZE; sc_end SC_STUN; sc_end SC_SLEEP; sc_end SC_POISON; sc_end SC_CURSE; sc_end SC_SILENCE; sc_end SC_CONFUSION; sc_end SC_BLIND; sc_end SC_BLEEDING; percentheal 100,100; specialeffect2 EF_INCAGILITY; sc_start SC_INC_AGI,240000,10; specialeffect2 EF_BLESSING; sc_start SC_BLESSING,240000,10; emotion e_lv; HEALCD = gettimetick( 2 ) + 60; end;}// Duplicates//============================================================alberta,25,240,6 duplicate(Healer) Healer#alb 4_F_ACOLYTE,5,5 Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted November 13, 2015 @@Winterfox that's opposite, I got negative value anyways, I prefer when set the permanent player variable, I set the time, without + or - //===== Description: =========================================//= Basic healer script.//===== Additional Comments: =================================//= 1.0 Initial script.//= 1.1 Aligned coordinates with @go.//= 1.2 Fix variables and character stuck at healing//============================================================- script Healer -1,{ if ( HEALCD + 60 > gettimetick(2) ) { dispbottom "You need wait for " + ( HEALCD + 60 - gettimetick(2) ) + " seconds."; end; } sc_end SC_STONE; sc_end SC_FREEZE; sc_end SC_STUN; sc_end SC_SLEEP; sc_end SC_POISON; sc_end SC_CURSE; sc_end SC_SILENCE; sc_end SC_CONFUSION; sc_end SC_BLIND; sc_end SC_BLEEDING; percentheal 100,100; specialeffect2 EF_INCAGILITY; sc_start SC_INC_AGI,240000,10; specialeffect2 EF_BLESSING; sc_start SC_BLESSING,240000,10; emotion e_lv; HEALCD = gettimetick(2); end;}// Duplicates//============================================================alberta,25,240,6 duplicate(Healer) Healer#alb 4_F_ACOLYTE,5,5prontera,155,185,5 duplicate(Healer) Healer#prt 1_F_MARIA,5,5and only do the + or - on the condition because I learned it through my mvp ladder I did like winterfox on my mvp ladder (years ago) to deny entrance for 1 week then the owner (the server I work on) want to change into 5 hours then the player complain why those who had play before, can't go in immediately, still need to wait another 6 days ... so by then I only set a fixed time then 1 Alexandria reacted to this Quote Share this post Link to post Share on other sites
Hello guys,
I would like to a delay to this healer (60 secs) and also a dispbottom about the time remaining
http://upaste.me/690a21952c4dae7f7
something like:
dispbottom "You can be healed again in +time+.";
Thank you!
Share this post
Link to post
Share on other sites