How to change the dynamic time?
I want to make the script run minimum every 1 hours + randomly minute.
//http://rathena.org/board/topic/53877-lucky-pick-event/
//emistry script
- script AutoFunEvent -1,{
OnInit:
OnClock0000:
set .LuckyTime,rand(24);
OnMinute60:
if( gettime(3) == .LuckyTime ){
set .DelayMin,rand(60);
sleep ( .DelayMin * 60000 );
while(1){
query_sql "select account_id from `char` where online = 1 order by rand() limit 1", .@aid;
attachrid .@aid;
if( CheckVending() ){
De