Jump to content
  • 0
Sign in to follow this  
Hit`

R> Healer with Heal/Buff/Identify/Repair/Removes Status Ailments

Question

Hello everyone. I would like to request for a healer npc that can heal, buff, identify, repair and removes negative status ailments.

 

I've found several topics from here to rathena but it does not fit what I am looking, it's missing a feature or two.

 

Or could someone please just kindly edit the default script made by Euphy to match the features missing.

 

//===== 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,{

	.@price = 0;	// Zeny required for heal
	.@Buffs = 1;	// Also buff players? (1: yes / 0: no)
	.@Delay = 0;	// Heal delay, in seconds

	if (@HD > gettimetick(2)) end;
	if (.@price) {
		message strcharinfo(PC_NAME),"Healing costs "+.@price+" Zeny.";
		if (Zeny < .@price) end;
		if(select("^0055FFHeal^000000", "^777777Cancel^000000") == 2) close;
		Zeny -= .@price;
	}
	specialeffect2 EF_HEAL2; percentheal 100,100;
	if (.@Buffs) {
		specialeffect2 EF_INCAGILITY; sc_start SC_INC_AGI,240000,10;
		specialeffect2 EF_BLESSING; sc_start SC_BLESSING,240000,10;
	}
	if (.@Delay) @HD = gettimetick(2)+.@Delay;
	end;
}


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

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

Hoping for your responses. Thank you!

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

 

 

Here is a script I am currently using that might help you.

 

// Healer
// Author: Lulupard
// Version: 1.0
// Compatible With: Hercules

-   script  Healer  FAKE_NPC,{

    // Check if heal delay has expired
    if ( healdelay <= gettimetick(2) ) {

        // Set heal delay, in seconds
        healdelay = gettimetick(2) + 30;

        // Remove negative status effects
        for ( .@i = 0; .@i < getarraysize( .debuffs ); ++.@i ) {
            sc_end .debuffs[ .@i ];
        }

        // Repair equipment
        while( getbrokenid(1) ) {
            repairall;
        }

        // Blessing
        specialeffect2 EF_BLESSING;
        sc_start SC_BLESSING, 240000, 10;

        // Increase agility
        specialeffect2 EF_INC_AGI;
        sc_start SC_INC_AGI, 240000, 10;

        // Kyrie Eleison
        specialeffect2 EF_KYRIE;
        sc_start SC_KYRIE, 120000, 0;

        // Impositio Manus
        specialeffect2 EF_IMPOSITIO;
        sc_start SC_IMPOSITIO, 60000, 0;

        // Gloria
        specialeffect2 EF_GLORIA;
        sc_start SC_GLORIA, 30000, 0;

        // Heal
        // Accounts for mana increase from Blessing
        specialeffect2 EF_HEAL2;
        percentheal 100, 100;
    }
    else {
        // Add cutin
        cutin "ra_gwoman", 2;

        mes "[Priestess of Freya]";
        mes "Patience, child.";
        mes "Visit me again in " + ( healdelay - gettimetick(2) ) + " seconds.";
              
        close2;
        cutin "", 255;
        end;
    }

    end;

    OnInit:
        // List of negative debuffs to be removed
        setarray .debuffs[0], SC_LEXAETERNA, SC_DEC_AGI, SC_POISON, SC_CURSE, SC_SILENCE, SC_BLIND, SC_VENOMBLEED, SC_DPOISON, SC_BURNING;

        end;
}


// Duplicates
//============================================================
alberta,25,240,6    duplicate(Healer)   Priestess of Freya#alb  4_F_MADAME
aldebaran,135,118,6 duplicate(Healer)   Priestess of Freya#alde 4_F_MADAME
amatsu,200,79,4 duplicate(Healer)   Priestess of Freya#ama  4_F_MADAME
ayothaya,207,169,6  duplicate(Healer)   Priestess of Freya#ayo  4_F_MADAME
brasilis,194,221,6  duplicate(Healer)   Priestess of Freya#bra  4_F_MADAME
comodo,184,158,6    duplicate(Healer)   Priestess of Freya#com  4_F_MADAME
dicastes01,201,194,4    duplicate(Healer)   Priestess of Freya#dic  4_F_MADAME
einbech,57,36,6 duplicate(Healer)   Priestess of Freya#einbe    4_F_MADAME
einbroch,57,202,6   duplicate(Healer)   Priestess of Freya#einbr    4_F_MADAME
geffen,115,72,6 duplicate(Healer)   Priestess of Freya#gef  4_F_MADAME
gonryun,156,122,6   duplicate(Healer)   Priestess of Freya#gon  4_F_MADAME
hugel,89,150,6  duplicate(Healer)   Priestess of Freya#hug  4_F_MADAME
izlude,125,118,6    duplicate(Healer)   Priestess of Freya#izl  4_F_MADAME
jawaii,250,139,4    duplicate(Healer)   Priestess of Freya#jaw  4_F_MADAME
lighthalzen,151,100,6   duplicate(Healer)   Priestess of Freya#lhz  4_F_MADAME
louyang,226,103,4   duplicate(Healer)   Priestess of Freya#lou  4_F_MADAME
manuk,272,144,6 duplicate(Healer)   Priestess of Freya#man  4_F_MADAME
mid_camp,203,288,6  duplicate(Healer)   Priestess of Freya#mid  4_F_MADAME
moc_ruins,72,164,4  duplicate(Healer)   Priestess of Freya#moc  4_F_MADAME
morocc,153,97,6 duplicate(Healer)   Priestess of Freya#mor  4_F_MADAME
moscovia,220,191,4  duplicate(Healer)   Priestess of Freya#mos  4_F_MADAME
niflheim,212,182,5  duplicate(Healer)   Priestess of Freya#nif  4_F_MADAME
payon,179,106,4 duplicate(Healer)   Priestess of Freya#pay  4_F_MADAME

prontera,152,191,6  duplicate(Healer)   Priestess of Freya#prtc 4_F_MADAME // Center
prontera,159,326,4  duplicate(Healer)   Priestess of Freya#prtn 4_F_MADAME // North
prontera,278,208,4  duplicate(Healer)   Priestess of Freya#prte 4_F_MADAME // East
prontera,146,93,6   duplicate(Healer)   Priestess of Freya#prts 4_F_MADAME // South
prontera,33,208,6   duplicate(Healer)   Priestess of Freya#prtw 4_F_MADAME // West

rachel,123,117,6    duplicate(Healer)   Priestess of Freya#rac  4_F_MADAME
splendide,201,153,4 duplicate(Healer)   Priestess of Freya#spl  4_F_MADAME
thor_camp,249,74,4  duplicate(Healer)   Priestess of Freya#thor 4_F_MADAME
umbala,105,148,3    duplicate(Healer)   Priestess of Freya#umb  4_F_MADAME
veins,217,121,4 duplicate(Healer)   Priestess of Freya#ve   4_F_MADAME
xmas,143,136,4  duplicate(Healer)   Priestess of Freya#xmas 4_F_MADAME
yuno,164,45,4   duplicate(Healer)   Priestess of Freya#yuno 4_F_MADAME

Sweet! But how do I remove ailments such as Stunned, Frozen, Stone Cursed? I've tried adding SC_STUN, SC_FREEZE and SC_STONE in the list but the NPC won't talk to me.

 

Hello you might want to try sc_end sc_all

Share this post


Link to post
Share on other sites
  • 0

Here is a script I am currently using that might help you.

 

// Healer
// Author: Lulupard
// Version: 1.0
// Compatible With: Hercules

-   script  Healer  FAKE_NPC,{

    // Check if heal delay has expired
    if ( healdelay <= gettimetick(2) ) {

        // Set heal delay, in seconds
        healdelay = gettimetick(2) + 30;

        // Remove negative status effects
        for ( .@i = 0; .@i < getarraysize( .debuffs ); ++.@i ) {
            sc_end .debuffs[ .@i ];
        }

        // Repair equipment
        while( getbrokenid(1) ) {
            repairall;
        }

        // Blessing
        specialeffect2 EF_BLESSING;
        sc_start SC_BLESSING, 240000, 10;

        // Increase agility
        specialeffect2 EF_INC_AGI;
        sc_start SC_INC_AGI, 240000, 10;

        // Kyrie Eleison
        specialeffect2 EF_KYRIE;
        sc_start SC_KYRIE, 120000, 0;

        // Impositio Manus
        specialeffect2 EF_IMPOSITIO;
        sc_start SC_IMPOSITIO, 60000, 0;

        // Gloria
        specialeffect2 EF_GLORIA;
        sc_start SC_GLORIA, 30000, 0;

        // Heal
        // Accounts for mana increase from Blessing
        specialeffect2 EF_HEAL2;
        percentheal 100, 100;
    }
    else {
        // Add cutin
        cutin "ra_gwoman", 2;

        mes "[Priestess of Freya]";
        mes "Patience, child.";
        mes "Visit me again in " + ( healdelay - gettimetick(2) ) + " seconds.";
              
        close2;
        cutin "", 255;
        end;
    }

    end;

    OnInit:
        // List of negative debuffs to be removed
        setarray .debuffs[0], SC_LEXAETERNA, SC_DEC_AGI, SC_POISON, SC_CURSE, SC_SILENCE, SC_BLIND, SC_VENOMBLEED, SC_DPOISON, SC_BURNING;

        end;
}


// Duplicates
//============================================================
alberta,25,240,6    duplicate(Healer)   Priestess of Freya#alb  4_F_MADAME
aldebaran,135,118,6 duplicate(Healer)   Priestess of Freya#alde 4_F_MADAME
amatsu,200,79,4 duplicate(Healer)   Priestess of Freya#ama  4_F_MADAME
ayothaya,207,169,6  duplicate(Healer)   Priestess of Freya#ayo  4_F_MADAME
brasilis,194,221,6  duplicate(Healer)   Priestess of Freya#bra  4_F_MADAME
comodo,184,158,6    duplicate(Healer)   Priestess of Freya#com  4_F_MADAME
dicastes01,201,194,4    duplicate(Healer)   Priestess of Freya#dic  4_F_MADAME
einbech,57,36,6 duplicate(Healer)   Priestess of Freya#einbe    4_F_MADAME
einbroch,57,202,6   duplicate(Healer)   Priestess of Freya#einbr    4_F_MADAME
geffen,115,72,6 duplicate(Healer)   Priestess of Freya#gef  4_F_MADAME
gonryun,156,122,6   duplicate(Healer)   Priestess of Freya#gon  4_F_MADAME
hugel,89,150,6  duplicate(Healer)   Priestess of Freya#hug  4_F_MADAME
izlude,125,118,6    duplicate(Healer)   Priestess of Freya#izl  4_F_MADAME
jawaii,250,139,4    duplicate(Healer)   Priestess of Freya#jaw  4_F_MADAME
lighthalzen,151,100,6   duplicate(Healer)   Priestess of Freya#lhz  4_F_MADAME
louyang,226,103,4   duplicate(Healer)   Priestess of Freya#lou  4_F_MADAME
manuk,272,144,6 duplicate(Healer)   Priestess of Freya#man  4_F_MADAME
mid_camp,203,288,6  duplicate(Healer)   Priestess of Freya#mid  4_F_MADAME
moc_ruins,72,164,4  duplicate(Healer)   Priestess of Freya#moc  4_F_MADAME
morocc,153,97,6 duplicate(Healer)   Priestess of Freya#mor  4_F_MADAME
moscovia,220,191,4  duplicate(Healer)   Priestess of Freya#mos  4_F_MADAME
niflheim,212,182,5  duplicate(Healer)   Priestess of Freya#nif  4_F_MADAME
payon,179,106,4 duplicate(Healer)   Priestess of Freya#pay  4_F_MADAME

prontera,152,191,6  duplicate(Healer)   Priestess of Freya#prtc 4_F_MADAME // Center
prontera,159,326,4  duplicate(Healer)   Priestess of Freya#prtn 4_F_MADAME // North
prontera,278,208,4  duplicate(Healer)   Priestess of Freya#prte 4_F_MADAME // East
prontera,146,93,6   duplicate(Healer)   Priestess of Freya#prts 4_F_MADAME // South
prontera,33,208,6   duplicate(Healer)   Priestess of Freya#prtw 4_F_MADAME // West

rachel,123,117,6    duplicate(Healer)   Priestess of Freya#rac  4_F_MADAME
splendide,201,153,4 duplicate(Healer)   Priestess of Freya#spl  4_F_MADAME
thor_camp,249,74,4  duplicate(Healer)   Priestess of Freya#thor 4_F_MADAME
umbala,105,148,3    duplicate(Healer)   Priestess of Freya#umb  4_F_MADAME
veins,217,121,4 duplicate(Healer)   Priestess of Freya#ve   4_F_MADAME
xmas,143,136,4  duplicate(Healer)   Priestess of Freya#xmas 4_F_MADAME
yuno,164,45,4   duplicate(Healer)   Priestess of Freya#yuno 4_F_MADAME
Edited by Lulupard

Share this post


Link to post
Share on other sites
  • 0

 

Here is a script I am currently using that might help you.

 

// Healer
// Author: Lulupard
// Version: 1.0
// Compatible With: Hercules

-   script  Healer  FAKE_NPC,{

    // Check if heal delay has expired
    if ( healdelay <= gettimetick(2) ) {

        // Set heal delay, in seconds
        healdelay = gettimetick(2) + 30;

        // Remove negative status effects
        for ( .@i = 0; .@i < getarraysize( .debuffs ); ++.@i ) {
            sc_end .debuffs[ .@i ];
        }

        // Repair equipment
        while( getbrokenid(1) ) {
            repairall;
        }

        // Blessing
        specialeffect2 EF_BLESSING;
        sc_start SC_BLESSING, 240000, 10;

        // Increase agility
        specialeffect2 EF_INC_AGI;
        sc_start SC_INC_AGI, 240000, 10;

        // Kyrie Eleison
        specialeffect2 EF_KYRIE;
        sc_start SC_KYRIE, 120000, 0;

        // Impositio Manus
        specialeffect2 EF_IMPOSITIO;
        sc_start SC_IMPOSITIO, 60000, 0;

        // Gloria
        specialeffect2 EF_GLORIA;
        sc_start SC_GLORIA, 30000, 0;

        // Heal
        // Accounts for mana increase from Blessing
        specialeffect2 EF_HEAL2;
        percentheal 100, 100;
    }
    else {
        // Add cutin
        cutin "ra_gwoman", 2;

        mes "[Priestess of Freya]";
        mes "Patience, child.";
        mes "Visit me again in " + ( healdelay - gettimetick(2) ) + " seconds.";
              
        close2;
        cutin "", 255;
        end;
    }

    end;

    OnInit:
        // List of negative debuffs to be removed
        setarray .debuffs[0], SC_LEXAETERNA, SC_DEC_AGI, SC_POISON, SC_CURSE, SC_SILENCE, SC_BLIND, SC_VENOMBLEED, SC_DPOISON, SC_BURNING;

        end;
}


// Duplicates
//============================================================
alberta,25,240,6    duplicate(Healer)   Priestess of Freya#alb  4_F_MADAME
aldebaran,135,118,6 duplicate(Healer)   Priestess of Freya#alde 4_F_MADAME
amatsu,200,79,4 duplicate(Healer)   Priestess of Freya#ama  4_F_MADAME
ayothaya,207,169,6  duplicate(Healer)   Priestess of Freya#ayo  4_F_MADAME
brasilis,194,221,6  duplicate(Healer)   Priestess of Freya#bra  4_F_MADAME
comodo,184,158,6    duplicate(Healer)   Priestess of Freya#com  4_F_MADAME
dicastes01,201,194,4    duplicate(Healer)   Priestess of Freya#dic  4_F_MADAME
einbech,57,36,6 duplicate(Healer)   Priestess of Freya#einbe    4_F_MADAME
einbroch,57,202,6   duplicate(Healer)   Priestess of Freya#einbr    4_F_MADAME
geffen,115,72,6 duplicate(Healer)   Priestess of Freya#gef  4_F_MADAME
gonryun,156,122,6   duplicate(Healer)   Priestess of Freya#gon  4_F_MADAME
hugel,89,150,6  duplicate(Healer)   Priestess of Freya#hug  4_F_MADAME
izlude,125,118,6    duplicate(Healer)   Priestess of Freya#izl  4_F_MADAME
jawaii,250,139,4    duplicate(Healer)   Priestess of Freya#jaw  4_F_MADAME
lighthalzen,151,100,6   duplicate(Healer)   Priestess of Freya#lhz  4_F_MADAME
louyang,226,103,4   duplicate(Healer)   Priestess of Freya#lou  4_F_MADAME
manuk,272,144,6 duplicate(Healer)   Priestess of Freya#man  4_F_MADAME
mid_camp,203,288,6  duplicate(Healer)   Priestess of Freya#mid  4_F_MADAME
moc_ruins,72,164,4  duplicate(Healer)   Priestess of Freya#moc  4_F_MADAME
morocc,153,97,6 duplicate(Healer)   Priestess of Freya#mor  4_F_MADAME
moscovia,220,191,4  duplicate(Healer)   Priestess of Freya#mos  4_F_MADAME
niflheim,212,182,5  duplicate(Healer)   Priestess of Freya#nif  4_F_MADAME
payon,179,106,4 duplicate(Healer)   Priestess of Freya#pay  4_F_MADAME

prontera,152,191,6  duplicate(Healer)   Priestess of Freya#prtc 4_F_MADAME // Center
prontera,159,326,4  duplicate(Healer)   Priestess of Freya#prtn 4_F_MADAME // North
prontera,278,208,4  duplicate(Healer)   Priestess of Freya#prte 4_F_MADAME // East
prontera,146,93,6   duplicate(Healer)   Priestess of Freya#prts 4_F_MADAME // South
prontera,33,208,6   duplicate(Healer)   Priestess of Freya#prtw 4_F_MADAME // West

rachel,123,117,6    duplicate(Healer)   Priestess of Freya#rac  4_F_MADAME
splendide,201,153,4 duplicate(Healer)   Priestess of Freya#spl  4_F_MADAME
thor_camp,249,74,4  duplicate(Healer)   Priestess of Freya#thor 4_F_MADAME
umbala,105,148,3    duplicate(Healer)   Priestess of Freya#umb  4_F_MADAME
veins,217,121,4 duplicate(Healer)   Priestess of Freya#ve   4_F_MADAME
xmas,143,136,4  duplicate(Healer)   Priestess of Freya#xmas 4_F_MADAME
yuno,164,45,4   duplicate(Healer)   Priestess of Freya#yuno 4_F_MADAME

Sweet! But how do I remove ailments such as Stunned, Frozen, Stone Cursed? I've tried adding SC_STUN, SC_FREEZE and SC_STONE in the list but the NPC won't talk to me.

Share this post


Link to post
Share on other sites
  • 0

Hello you might want to try sc_end sc_all

 

Doesn't that end all status effects, including things like AT and Wind Walk?

Edited by Lulupard

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.