viewing paste [func] item delay | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
 
// 607,..........,{ callfunc( "Sample",607,86400 ); percentheal 100,100; },{},{}
 
function        script  Sample  {
        set .@item_id,getarg(0);
        set .@delay,getarg(1);
        set .@current_delay,getd( "ITEMDELAY_"+.@item_id );
        set .@gettimetick,gettimetick(1);
       
        if( .@current_delay > .@gettimetick ){
                dispbottom "Item Delay for "+( .@current_delay - .@gettimetick )+" seconds.";
                end;
        }else{
                delitem .@item_id,1;
                setd( "ITEMDELAY_"+.@item_id ),( .@gettimetick + .@delay );
        }
        return;
}
Viewed 752 times, submitted by Emistry.