Jump to content
  • 0
Sign in to follow this  
Alexandria

Healer small edition

Question

4 answers to this question

Recommended Posts

  • 0

@@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

Share this post


Link to post
Share on other sites
  • 0

@@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

Share this post


Link to post
Share on other sites
  • 0

@@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,5
and 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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.