- script Sample -1,{
OnInit:
// event hour
set .minute,120;
// map list
setarray .map$,"prontera","izlude","geffen";
set .map_size,getarraysize( .map$ );
set .npc_name$,strnpcinfo(0);
end;
OnClock0000:
OnClock1200:
if( !.status ){
set .status,1;
announce "Happy Hours - "+.minute+" minutes ",bc_all;
for( set .@i,0; .@i < .map_size; set .@i,.@i + 1 )
monster .map$[.@i],0,0,"--ja--",1002,10,.npc_name$+"::OnMobDied";
sleep ( .minute * 60000 );
set .status,0;
announce "Happy Hours - END",bc_all;
for( set .@i,0; .@i < .map_size; set .@i,.@i + 1 )
killmonster .map$[.@i],.npc_name$+"::OnMobDied";
}
end;
OnMobDied:
if( .status ){
if( rand(100) )< 10 ){
getitem 512,100;
}
}
end;
}