prontera,97,153,5 script Clemy 703,{
mes "If you can speak with me, I'm enabled!!!";
close;
//I've used On<weekdays><hour><minute>: event label.
//Weekdays are Sun,Mon,Tue,Wed,Thu,Fri,Sat.
//Days you want to ENABLE the NPC (NPC will last enabled until next disable)
OnSun0000:
OnTue0000:
enablenpc strnpcinfo(0);
end;
//Days you want to DISABLE the NPC (NPC will last disabled until next enable)
OnMon0000:
OnWed0000:
disblenpc strnpcinfo(0);
end;
OnInit:
.@interval = 5;
.@step = 5;
while (1) {
sleep .@interval * 1000;
getmapxy .@map$, .@x, .@y, 1;
while ( checkcell( .@map$, .@npc_x = .@x + rand( -.@step, .@step ), .@npc_y = .@y + rand( -.@step, .@step ), cell_chknopass ) );
npcwalkto .@npc_x, .@npc_y;
npctalk callfunc( "F_RandMes", 2,
"Heloo!!!", // 1
"Goodbye~!" // 2
);
}
}