Jump to content
  • 0

Walking Healer


Question

Posted

My Walking Healer doesn't work! :(

Can anyone help me?

 

farebury,152,133,4	script	Healer Angeling	1096,2,2,{


OnInit:
    initnpctimer;
    end;
OnTimer15000: //15 seconds
    npcwalkto 175,230;
    end;
OnTimer30000:
    npcwalkto 162,230;
    stopnpctimer;
    initnpctimer;
    end;
OnTouch:
    if (Hp == MaxHp && Sp == MaxSp) {
    end;
    }
    npctalk "You're now healed ["+strcharinfo(0)+"]!";
    skilleffect 28,9999;
    percentheal 100,100;
    sc_start SC_ANGELUS,.duration,10; // Angelus lvl 10
    sc_start SC_BLESSING,.duration,10; // Blessing lvl 10
    sc_start SC_INCREASEAGI,.duration,10; // Increase agi lvl 10
    end;
}

 

 

3 answers to this question

Recommended Posts

Posted (edited)

farebury,152,133,0	script	Healer Angeling	1096,2,2,{

end;

OnInit:

initnpctimer;

setarray .x[0],175,162;

setarray .y[0],230,230;

set .a,0;

set .m$,"farebury";

end;

OnTimer1000:

getmapxy(.m$,.nowx,.nowy,1);

if (.nowx != .x[.a] && .nowy != .y[.a] && .stop != 1) {

npcwalkto .x[.a],.y[.a];

} else {

set .a,.a+1; set .b,.b+1;

if (.b < 15) end;

set .b,0;

if (.a >= getarraysize(.x)) set .a,0; }

initnpctimer;

end;

OnTouch:

if (Hp == MaxHp && Sp == MaxSp) end;

npctalk "You're now healed ["+strcharinfo(0)+"]!";

skilleffect 28,9999;

percentheal 100,100;

sc_start SC_ANGELUS,.duration,10; // Angelus lvl 10

sc_start SC_BLESSING,.duration,10; // Blessing lvl 10

sc_start SC_INCREASEAGI,.duration,10; // Increase agi lvl 10

end;

}

Hope this helps ;) Edited by nanakiwurtz
Posted

Change .duration (not set)

    sc_start SC_ANGELUS,60000,10; // Angelus lvl 10
    sc_start SC_BLESSING,60000,10; // Blessing lvl 10
    sc_start SC_INCREASEAGI,60000,10; // Increase agi lvl 10

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...