srisaard / wax-farm-bot

For farmersworld/farmingtales/nftpanda/officeland
https://officepandafarmbot.vercel.app
25 stars 26 forks source link

Farmersworld Tokens #4

Closed ghostprize closed 2 years ago

ghostprize commented 2 years ago

1641452428945

Equipment repairs or food refills are not available for accounts with different currency positions. ex: const current_gold = balance.balances[2].split(" ")[0];

i use for mornitor my account I'm not good at coding Please help fix this request.

        substringG = "GOLD"
        substringW = "WOOD"
        substringF = "FOOD"

        if (token_0.includes(substringG) === true){
            var token_G = parseFloat((JSON.parse(xhr4.responseText).rows[0].balances[0]).slice(0,-5))
            console.log(token_G);
        }
        if (token_0.includes(substringW) === true){
            var token_W = parseFloat((JSON.parse(xhr4.responseText).rows[0].balances[0]).slice(0,-5))
            console.log(token_W);
        }
        if (token_0.includes(substringF) === true){
            var token_F = parseFloat((JSON.parse(xhr4.responseText).rows[0].balances[0]).slice(0,-5))
            console.log(token_F);
        }

        if (token_1.includes(substringG) === true){
            var token_G = parseFloat((JSON.parse(xhr4.responseText).rows[0].balances[1]).slice(0,-5))
            console.log(token_G);
        }
        if (token_1.includes(substringW) === true){
            var token_W = parseFloat((JSON.parse(xhr4.responseText).rows[0].balances[1]).slice(0,-5))
            console.log(token_W);
        }
        if (token_1.includes(substringF) === true){
            var token_F = parseFloat((JSON.parse(xhr4.responseText).rows[0].balances[1]).slice(0,-5))
            console.log(token_F);
        }

        if (token_2.includes(substringG) === true){
            var token_G = parseFloat((JSON.parse(xhr4.responseText).rows[0].balances[2]).slice(0,-5))
            console.log(token_G);
        }
        if (token_2.includes(substringW) === true){
            var token_W = parseFloat((JSON.parse(xhr4.responseText).rows[0].balances[2]).slice(0,-5))
            console.log(token_W);
        }
        if (token_2.includes(substringF) === true){
            var token_F = parseFloat((JSON.parse(xhr4.responseText).rows[0].balances[2]).slice(0,-5))
            console.log(token_F);
        }
srisaard commented 2 years ago

Done, please confirm the latest update.

ghostprize commented 2 years ago

Thank you it work..

i donate to u Capture thk