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."; } close; 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; .@name$ = .@name$ + .name_list$[.@i] + ","; } detachrid; announce "Congratulations "+.@name$+" you have been selected as winner for 2X event for today.",bc_all; end; }