viewing paste daily random bonus 2x to player | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
 
prontera,155,181,5      script  2X NPC  -1,{
if( .name_list_size ){
        for( .@i = 0; .@i < .name_list_size; .@i++ )
                mes ""+.name_list$[.@i];
}
else{
        mes "Doesnt have any record yet.";
}
 
 
OnClock0000:
.@hour = 12;
.@player = 5;
 
query_sql( "SELECT `account_id`,`name` FROM `char` WHERE `online` = 1 ORDER BY RAND() LIMIT "+.@player,.@aid,.name_list$ );
.name_list_size = getarraysize( .@aid );
for( .@i = 0; .@i < .name_list_size; .@i++ )
        if( attachrid( .@aid[.@i] ) ){
                dispbottom "Gained 2X EXP/DROP for next "+.@hour+" Hours.";
                sc_start SC_ITEMBOOST,( .@hour * 3600000 ),100;
                sc_start SC_EXPBOOST,( .@hour * 3600000 ),100;
        }
}
Viewed 790 times, submitted by Emistry.