Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var chance = 49.5;
- var arr_of_bets = [];
- var s_bets = $(".statspanel>.bets").text();
- var s_b = 0,num_bets=5;
- var bT;
- var bb = 0.00000001;
- s_bets = parseFloat(s_bets.replace(/\,/g,''));
- function dobet()
- {
- if(s_b<num_bets-1){
- s_b = s_b+1;
- $("#pct_chance").val(chance);
- $("#pct_bet").val((bb).toFixed(8));
- $("#a_hi").click();
- add_bets();
- }
- else {
- clearInterval(bT);
- arr_of_bets.shift();
- var balance = $("#pct_balance").val();
- var betid = parseFloat($($('#me.results>div>.betid')[0]).text());
- var lucky = parseFloat($($("#me>div>.lucky")[0]).text());
- var target = String($($("#me>div>.chance")[0]).text());
- var bet = parseFloat($($("#me>div>.bet")[0]).text());
- var profit_from_bet = parseFloat($($("#me>div>.profit")[0]).text());
- arr_of_bets.push(String('BET_ID => '+betid+' LUCKY => '+lucky+' TARGET => '
- +target+' BET_AMOUNT => '+(bet).toFixed(8)+' THIS_PROFIT => '+(profit_from_bet).toFixed(8)+' BALANCE => '+balance));
- }
- }
- function add_bets() {
- var balance = $("#pct_balance").val();
- var bets = $(".statspanel>.bets").text();
- bets = parseFloat(bets.replace(/\,/g,''));
- s_b = bets - s_bets;
- var betid = parseFloat($($('#me.results>div>.betid')[0]).text());
- var lucky = parseFloat($($("#me>div>.lucky")[0]).text());
- var target = String($($("#me>div>.chance")[0]).text());
- var bet = parseFloat($($("#me>div>.bet")[0]).text());
- var profit_from_bet = parseFloat($($("#me>div>.profit")[0]).text());
- if(s_b>0){
- arr_of_bets[s_b] = String('BET_ID => '+betid+' LUCKY => '+lucky+' TARGET => '
- +target+' BET_AMOUNT => '+(bet).toFixed(8)+' THIS_PROFIT => '+(profit_from_bet).toFixed(8)+' BALANCE => '+balance);}
- }
- bT = setInterval(() => dobet(), 200);
- //SHOW ARRAY : arr_of_bets;
- //SHOW 5TH BET IN ARRAY : arr_of_bets[4];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement