0
私は1つのサイトに "自動ベットスクリプト"を作成していますが、スクリプトは完了していますが、私はそこに追加したい "Statics"に関するいくつかの問題があります。だから私は毎回のX値を取得する、私は次のラウンドのためにそれを保存する必要がありますので、私は次のラウンド番号に5.2を追加することができますので、5.2番号を取得すると言うので、ラウンド2番号は7.2ですので、ラウンドとそれに7.2を追加し、3ラウンド、それは12.4にX番号を追加する必要があります(つまり、5.2 + 7.2から来ている)前の数字にX番号を追加する
ここでは、/私のコード
$('#case_test').click(function(){
setTimeout(function(){
$('#case_item_win .case_item_name br').remove();
var name = $('#case_item_win .case_item_name').text().replace(/<\/?[^>]+(>|$)/g, "");
console.log('%cCase number: #' + nb , 'color:#C585DE; font-size:15px;');
console.log('%cName: ' + name.replace(/(\r\n|\n|\r)/gm,""), 'color: #FF0000; font-size:15px');
console.log('%cWear: ' + $('#case_item_win .case_item_wear').text(), 'color: #036CFF; font-size:15px');
console.log('%cPrice: ' + $('#case_item_win .case_item_price').text(), 'color: #FF9603; font-size:15px');
caseCosts = $('.case_price').text();
skinPrice = $('#case_item_win .case_item_price').text();
totalUsedtoCases = nb * caseCosts;
console.log('%c=============================================', 'color: #000;');
console.log('%cSTATICS', 'font-size:25px; text-align:center;font-weight:bold;color:cyan;');
console.log('\n');
console.log('Used to cases: $' + totalUsedtoCases + '\nAll skins: SOON \nResult: **');
console.log('%c=============================================', 'color: #000;');
}, 10000)
})
nb = 0;
interval = setInterval(function(){
$('#case_test').trigger('click');
nb += 1;
if(nb >= 100) {
clearInterval(interval);
}
}, 14000)
そしてskinPrice = $('#case_item_win .case_item_price').text();
は、現在のラウンド値であります数。