Ninjamon Posted February 27, 2013 Posted February 27, 2013 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; } Quote
nanakiwurtz Posted February 27, 2013 Posted February 27, 2013 (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 February 27, 2013 by nanakiwurtz Quote
Capuche Posted December 24, 2013 Posted December 24, 2013 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 Quote
Question
Ninjamon
My Walking Healer doesn't work!
Can anyone help me?
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.