Make steel bars

by Manawe

JavaScript

var smeltWG = function () {
    
    console.log("Call");
    
    touch_hold_i = 0;
    touch_hold_j = -1;
    touch_hold = true;
    
    setTimeout(function () {
        touch_hold = false;
        Chest.deposit_all();
        
        setTimeout(function () {
            selected_chest = "0";
            Chest.withdraw(40);
            setTimeout(function () {
                inventoryClick(0);
                inventoryClick(39);
            }, 700);
        }, 1000);
        
        setTimeout(function () {
            touch_hold_i = 0;
            touch_hold_j = 1;
            touch_hold = true;
            inventoryClick(39);            
            setTimeout(function () {
                touch_hold = false;
            }, 1000);
        }, 1000);
    }, 1000);

};
smeltWG();
setInterval(function () {
    if(players[0].temp.busy === false){
        smeltWG();
    }
}, 3000);