viewing paste [func] item delay ( specific job ) | Athena

Posted on the | Last edited on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
// 607,..........,{ callfunc( "Sample",607,2,4060 ); 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;
        if( Class && Class == getarg(2) && .@delay )
            setd( "ITEMDELAY_"+.@item_id ),( .@gettimetick + .@delay );
    }
    return;
}
Viewed 1400 times, submitted by Emistry.