JSFiddle - React, Tailwind, and code Playground
by Manawe
JavaScript
var smeltWG = function () {
touch_hold_i = 1;
touch_hold_j = 0;
touch_hold = true;
setTimeout(function () {
touch_hold = false;
selected_chest = "2";
Chest.deposit(30);
setTimeout(function () {
selected_chest = "0";
Chest.withdraw(20);
selected_chest = "1";
Chest.withdraw(20);
setTimeout(function () {
inventoryClick(2);
inventoryClick(39);
}, 700);
}, 1000);
setTimeout(function () {
touch_hold_i = -1;
touch_hold_j = 0;
touch_hold = true;
setTimeout(function () {
touch_hold = false;
}, 2000);
}, 2000);
}, 2000);
};
smeltWG();
setInterval(function () {
smeltWG();
}, 58000);