prontera,152,183,0 script Poring#test1 1002,2,2,{
end;
OnInit:
initnpctimer;
setarray .x[0],160,152,159,152;
setarray .y[0],187,175,169,183;
set .a,0;
set .m$,"prontera";
end;
OnTimer2000:
getmapxy(.m$,.nowx,.nowy,1);
if (.nowx != .x[.a] && .nowy != .y[.a]) {
npcwalkto .x[.a],.y[.a];
} else {set .a,.a+1; if (.a >= getarraysize(.x)) set .a,0; }
initnpctimer;
end;
OnTouch:
npctalk "Hey! Toi!";
mes "Line 1";
next;
mes "Don't block me!","Now I'll continue to walk..","Even though if you haven't press the next or the close button.";
close;
}
Here you go!
Oh.... I think I have misread your second request
Anyway, here you go:
prontera,152,183,0 script Poring#test1 1002,2,2,{
end;
OnInit:
initnpctimer;
setarray .x[0],160,152,159,152;
setarray .y[0],187,175,169,183;
set .a,0;
set .m$,"prontera";
end;
OnTimer2000:
getmapxy(.m$,.nowx,.nowy,1);
if (.nowx != .x[.a] && .nowy != .y[.a] && .stop != 1) {
npcwalkto .x[.a],.y[.a];
} else {set .a,.a+1; if (.a >= getarraysize(.x)) set .a,0; }
initnpctimer;
end;
OnTouch:
set .stop,1;
npctalk "Hey! Toi!";
mes "I'll stop right here.";
next;
mes "Now I'll continue to walk after you press the close button.";
close2;
set .stop,0;
end;
}
For delay between points, just add a delay by using
sleep 1000 //Delay by 1 second.
sleep 60000 //Delay by 1 minute.
Hope it is solved now..