Jump to content
  • 0

Walking Healer


Ninjamon

Question


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   2
  • Joined:  03/06/12
  • Last Seen:  

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;
}

 

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  11/27/13
  • Last Seen:  

not working 

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

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
Link to comment
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.   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.

×
×
  • Create New...