function script getmercenary { set .Hour,24; if( #dailymercenary < gettimetick(2) ) { mes "Here your Mercenary Contract for today."; set #dailymercenary,gettimetick(2) + ( .Hour * 3600 ); getitem 12160,5; //set the price here }else{ set .@last,#dailymercenary - gettimetick(2); set .@hour, .@last % ( 24 * 3600 ) / 3600; set .@min, .@last % ( 24 * 3600 ) % 3600 / 60; set .@sec, .@last % ( 24 * 3600 ) % 3600 % 60; mes "You have to wait ^FF0000"+.@hour+":"+.@min+":"+.@sec+"^000000 countdown to get next Mercenary Contract"; } close; }