Jump to content
  • 0
ThyroDree

Healer NPC with SC_END

Question

Anyone knows why my script is not working? No errors when I tried to run but it doesn't remove status like Hallucination

//===== Hercules Script ======================================
//= Healer
//===== By: ==================================================
//= Euphy
//===== Current Version: =====================================
//= 1.2
//===== 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	FAKE_NPC,{

	[email protected] = 0;	// Zeny required for heal
	[email protected] = 1;	// Also buff players? (1: yes / 0: no)
	[email protected] = 3;	// Heal delay, in seconds

	if (@HD > gettimetick(2)) end;
	if ([email protected]) {
		message strcharinfo(PC_NAME),"Healing costs "[email protected]+" Zeny.";
		if (Zeny < [email protected]) end;
		if(select("^0055FFHeal^000000", "^777777Cancel^000000") == 2) close;
		Zeny -= [email protected];
	}
	percentheal 100,100;
	getinventorylist;
	for( set [email protected],0; [email protected] < @inventorylist_count; set [email protected], [email protected] + 1 ) {
	if ( @inventorylist_identify[[email protected]] == 1 ) continue;
	delitem2 @inventorylist_id[[email protected]],1,0,0,0,0,0,0,0;
	getitem @inventorylist_id[[email protected]],1;
	}
        // Remove negative status effects
        for ( [email protected] = 0; [email protected] < getarraysize( .debuffs ); [email protected] ) {
            sc_end .debuffs[ [email protected] ];
        }
        // Repair equipment
        while( getbrokenid(1) ) {
            repairall;
        }
	if ([email protected]) {
		sc_start SC_INC_AGI,240000,10;
		sc_start SC_BLESSING,240000,10;
	sc_end SC_STONE;
	sc_end SC_SLOWDOWN;
	sc_end SC_FREEZE;
	sc_end SC_SLEEP;
	sc_end SC_CURSE;
	sc_end SC_SILENCE;
	sc_end SC_CONFUSION;
	sc_end SC_BLIND;
	sc_end SC_BLEEDING;
	sc_end SC_DECREASEAGI;
	sc_end SC_POISON;
	sc_end SC_HALLUCINATION;
	sc_end SC_STRIPWEAPON;
	sc_end SC_STRIPARMOR;
	sc_end SC_STRIPHELM;
	sc_end SC_STRIPSHIELD;
	sc_end SC_CHANGEUNDEAD;
	sc_end SC_ORCISH;
	sc_end SC_BERSERK;
	sc_end SC_SKE;
	sc_end SC_SWOO;
	sc_end SC_SKA;

//		specialeffect(EF_INCAGILITY, AREA, playerattached()); sc_start SC_INC_AGI,240000,10;
//		specialeffect(EF_BLESSING, AREA, playerattached()); sc_start SC_BLESSING,240000,10;
	}
	if ([email protected]) @HD = gettimetick(2)[email protected];
	end;
}


// Duplicates
//============================================================
alberta,186,143,6	duplicate(Healer)	Healer#alb	1_F_PRIEST
aldebaran,135,118,6	duplicate(Healer)	Healer#alde	1_F_PRIEST
amatsu,200,79,4	duplicate(Healer)	Healer#ama	1_F_PRIEST
ayothaya,207,169,6	duplicate(Healer)	Healer#ayo	1_F_PRIEST
comodo,184,158,6	duplicate(Healer)	Healer#com	1_F_PRIEST
einbech,57,36,6	duplicate(Healer)	Healer#einbe	1_F_PRIEST
einbroch,57,202,6	duplicate(Healer)	Healer#einbr	1_F_PRIEST
geffen,115,72,6	duplicate(Healer)	Healer#gef	1_F_PRIEST
gonryun,156,122,6	duplicate(Healer)	Healer#gon	1_F_PRIEST
hugel,89,150,6	duplicate(Healer)	Healer#hug	1_F_PRIEST
izlude,125,118,5	duplicate(Healer)	Healer#izl	1_F_PRIEST
jawaii,250,139,4	duplicate(Healer)	Healer#jaw	1_F_PRIEST
lighthalzen,152,100,6	duplicate(Healer)	Healer#lhz	1_F_PRIEST
louyang,212,43,5	duplicate(Healer)	Healer#lou	1_F_PRIEST
manuk,272,144,6	duplicate(Healer)	Healer#man	1_F_PRIEST
mid_camp,203,289,6	duplicate(Healer)	Healer#mid	1_F_PRIEST
moc_ruins,72,164,4	duplicate(Healer)	Healer#moc	1_F_PRIEST
morocc,153,97,6	duplicate(Healer)	Healer#mor	1_F_PRIEST
moscovia,220,191,4	duplicate(Healer)	Healer#mos	1_F_PRIEST
niflheim,212,182,5	duplicate(Healer)	Healer#nif	1_F_PRIEST
payon,179,106,4	duplicate(Healer)	Healer#pay	1_F_PRIEST
payon,163,229,4	duplicate(Healer)	Healer#pay2	1_F_PRIEST
prontera,150,185,5	duplicate(Healer)	Healer#prt	1_F_PRIEST
rachel,125,116,6	duplicate(Healer)	Healer#rac	1_F_PRIEST
splendide,201,153,4	duplicate(Healer)	Healer#spl	1_F_PRIEST
thor_camp,249,74,4	duplicate(Healer)	Healer#thor	1_F_PRIEST
umbala,105,148,3	duplicate(Healer)	Healer#umb	1_F_PRIEST
veins,217,121,4	duplicate(Healer)	Healer#ve	1_F_PRIEST
xmas,143,136,4	duplicate(Healer)	Healer#xmas	1_F_PRIEST
yuno,164,45,4	duplicate(Healer)	Healer#yuno	1_F_PRIEST

// Duplicates (Renewal)
//============================================================
brasilis,194,221,6	duplicate(Healer)	Healer#bra	1_F_PRIEST
dewata,195,187,4	duplicate(Healer)	Healer#dew	1_F_PRIEST
dicastes01,201,194,4	duplicate(Healer)	Healer#dic	1_F_PRIEST
ecl_in01,45,60,4	duplicate(Healer)	Healer#ecl	1_F_PRIEST
malangdo,132,114,6	duplicate(Healer)	Healer#mal	1_F_PRIEST
malaya,205,205,6	duplicate(Healer)	Healer#ma	1_F_PRIEST
mora,55,152,4	duplicate(Healer)	Healer#mora	1_F_PRIEST

 

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

The constants being used in Hercules is not the same in rAthena. Try below script

//===== Hercules Script ======================================
//= Healer
//===== By: ==================================================
//= Euphy
//===== Current Version: =====================================
//= 1.2
//===== 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	FAKE_NPC,{

	[email protected] = 0;	// Zeny required for heal
	[email protected] = 1;	// Also buff players? (1: yes / 0: no)
	[email protected] = 3;	// Heal delay, in seconds

	if (@HD > gettimetick(2)) end;
	if ([email protected]) {
		message strcharinfo(PC_NAME),"Healing costs "[email protected]+" Zeny.";
		if (Zeny < [email protected]) end;
		if(select("^0055FFHeal^000000", "^777777Cancel^000000") == 2) close;
		Zeny -= [email protected];
	}
	percentheal 100,100;
	getinventorylist;
	for( set [email protected],0; [email protected] < @inventorylist_count; set [email protected], [email protected] + 1 ) {
	if ( @inventorylist_identify[[email protected]] == 1 ) continue;
	delitem2 @inventorylist_id[[email protected]],1,0,0,0,0,0,0,0;
	getitem @inventorylist_id[[email protected]],1;
	}
        // Remove negative status effects
        //for ( [email protected] = 0; [email protected] < getarraysize( .debuffs ); [email protected] ) {
        //    sc_end .debuffs[ [email protected] ];
        //}
        // Repair equipment
        while( getbrokenid(1) ) {
            repairall;
        }
	if ([email protected]) {
		sc_start SC_INC_AGI,240000,10;
		sc_start SC_BLESSING,240000,10;
		sc_end SC_STONE;
		sc_end SC_SLOWDOWN;
		sc_end SC_FREEZE;
		sc_end SC_SLEEP;
		sc_end SC_CURSE;
		sc_end SC_SILENCE;
		sc_end SC_CONFUSION;
		sc_end SC_BLIND;
		sc_end SC_BLOODING;
		sc_end SC_DEC_AGI;
		sc_end SC_POISON;
		sc_end SC_ILLUSION;
		sc_end SC_NOEQUIPWEAPON;
		sc_end SC_NOEQUIPARMOR;
		sc_end SC_NOEQUIPHELM;
		sc_end SC_NOEQUIPSHIELD;
		sc_end SC_PROPERTYUNDEAD;
		sc_end SC_ORCISH;
		sc_end SC_BERSERK;
		sc_end SC_SKE;
		sc_end SC_SWOO;
		sc_end SC_SKA;

		specialeffect(EF_INCAGILITY, AREA, playerattached()); sc_start SC_INC_AGI,240000,10;
		specialeffect(EF_BLESSING, AREA, playerattached()); sc_start SC_BLESSING,240000,10;
	}
	if ([email protected]) @HD = gettimetick(2)[email protected];
	end;
}


// Duplicates
//============================================================
alberta,186,143,6	duplicate(Healer)	Healer#alb	1_F_PRIEST
aldebaran,135,118,6	duplicate(Healer)	Healer#alde	1_F_PRIEST
amatsu,200,79,4	duplicate(Healer)	Healer#ama	1_F_PRIEST
ayothaya,207,169,6	duplicate(Healer)	Healer#ayo	1_F_PRIEST
comodo,184,158,6	duplicate(Healer)	Healer#com	1_F_PRIEST
einbech,57,36,6	duplicate(Healer)	Healer#einbe	1_F_PRIEST
einbroch,57,202,6	duplicate(Healer)	Healer#einbr	1_F_PRIEST
geffen,115,72,6	duplicate(Healer)	Healer#gef	1_F_PRIEST
gonryun,156,122,6	duplicate(Healer)	Healer#gon	1_F_PRIEST
hugel,89,150,6	duplicate(Healer)	Healer#hug	1_F_PRIEST
izlude,125,118,5	duplicate(Healer)	Healer#izl	1_F_PRIEST
jawaii,250,139,4	duplicate(Healer)	Healer#jaw	1_F_PRIEST
lighthalzen,152,100,6	duplicate(Healer)	Healer#lhz	1_F_PRIEST
louyang,212,43,5	duplicate(Healer)	Healer#lou	1_F_PRIEST
manuk,272,144,6	duplicate(Healer)	Healer#man	1_F_PRIEST
mid_camp,203,289,6	duplicate(Healer)	Healer#mid	1_F_PRIEST
moc_ruins,72,164,4	duplicate(Healer)	Healer#moc	1_F_PRIEST
morocc,153,97,6	duplicate(Healer)	Healer#mor	1_F_PRIEST
moscovia,220,191,4	duplicate(Healer)	Healer#mos	1_F_PRIEST
niflheim,212,182,5	duplicate(Healer)	Healer#nif	1_F_PRIEST
payon,179,106,4	duplicate(Healer)	Healer#pay	1_F_PRIEST
payon,163,229,4	duplicate(Healer)	Healer#pay2	1_F_PRIEST
prontera,150,185,5	duplicate(Healer)	Healer#prt	1_F_PRIEST
rachel,125,116,6	duplicate(Healer)	Healer#rac	1_F_PRIEST
splendide,201,153,4	duplicate(Healer)	Healer#spl	1_F_PRIEST
thor_camp,249,74,4	duplicate(Healer)	Healer#thor	1_F_PRIEST
umbala,105,148,3	duplicate(Healer)	Healer#umb	1_F_PRIEST
veins,217,121,4	duplicate(Healer)	Healer#ve	1_F_PRIEST
xmas,143,136,4	duplicate(Healer)	Healer#xmas	1_F_PRIEST
yuno,164,45,4	duplicate(Healer)	Healer#yuno	1_F_PRIEST

// Duplicates (Renewal)
//============================================================
brasilis,194,221,6	duplicate(Healer)	Healer#bra	1_F_PRIEST
dewata,195,187,4	duplicate(Healer)	Healer#dew	1_F_PRIEST
dicastes01,201,194,4	duplicate(Healer)	Healer#dic	1_F_PRIEST
ecl_in01,45,60,4	duplicate(Healer)	Healer#ecl	1_F_PRIEST
malangdo,132,114,6	duplicate(Healer)	Healer#mal	1_F_PRIEST
malaya,205,205,6	duplicate(Healer)	Healer#ma	1_F_PRIEST
mora,55,152,4	duplicate(Healer)	Healer#mora	1_F_PRIEST

 

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

×
×
  • Create New...

Important Information

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