prontera,155,180,5 script Weekly Reward 100,{ if ( #weekly_item == .today || !.today ) { mes "Didnt have any reward available for you now."; } else { #weekly_item = .today; getitembound .today_item,1,1; mes "Gained "+getitemname( .today_item ); } close; OnInit: setarray .item_id, 5001, 5002, 5003, 5004; .item_id_size = getarraysize( .item_id ); .npc_name$ = strnpcinfo(0); OnMon0000: delwaitingroom; hideonnpc .npc_name$; .today = 0; if ( gettime(4) ) end; OnSun0000: .today = atoi( gettimestr( "%Y%m%d",21 ) ); .today_item = .item_id[ rand( .item_id_size ) ]; if ( getitemname( .today_item ) != "null" ) { hideoffnpc .npc_name$; delwaitingroom; waitingroom "Weekly: "+getitemname( .today_item ),0; } end; }