0% found this document useful (0 votes)
468 views2 pages

Freebitco - in Auto Bet, Auto Play

This document defines variables and functions for placing bets in Bitcoin. It initializes variables like the payout multiplier, current bet, and bet mode. The placeBetBitcoin function takes the bet mode and amount as parameters and makes an API call to place the bet. Based on the result, it updates elements on the page like the balance, previous rolls, and enables/disables buttons for the next bet.

Uploaded by

Ahmet
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
468 views2 pages

Freebitco - in Auto Bet, Auto Play

This document defines variables and functions for placing bets in Bitcoin. It initializes variables like the payout multiplier, current bet, and bet mode. The placeBetBitcoin function takes the bet mode and amount as parameters and makes an API call to place the bet. Based on the result, it updates elements on the page like the balance, previous rolls, and enables/disables buttons for the next bet.

Uploaded by

Ahmet
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

var payout_double = 2; var payout_bet = 2; var base_bet = parseFloat(0.

00000003);
var cntWin = 0; var stopPlay = 10; var arrLost = []; var arrPrevious = []; var
betMode = "lo"; function placeBetBitcoin(mode, bet) { let lenLost = arrLost.length;
if(lenLost > 0) { bet = parseFloat(bet * payout_bet).toFixed(8); } else { bet =
parseFloat(base_bet).toFixed(8); } var len = arrPrevious.length; if(bet ==
undefined || bet == NaN) { bet = base_bet; } autobet_win_increase_bet_percent = $
("#autobet_win_increase_bet_percent").val(); minValue = $('.lt').text(); maxValue =
$('.gt').text(); $('#double_your_btc_digits').show(); var intervalID =
setInterval(function() { $("#multiplier_first_digit").html(Math.floor(Math.random()
* 10)); $("#multiplier_second_digit").html(Math.floor(Math.random() * 10)); $
("#multiplier_third_digit").html(Math.floor(Math.random() * 10)); $
("#multiplier_fourth_digit").html(Math.floor(Math.random() * 10)); $
("#multiplier_fifth_digit").html(Math.floor(Math.random() * 10)); }, 1); $
("#double_your_btc_bet_hi_button").attr("disabled", true); $
("#double_your_btc_bet_lo_button").attr("disabled", true); var jackpot = 0; var
jackpot_arr = $('.play_jackpot:checkbox:checked').map(function() { return
this.value; }).get(); if (jackpot_arr.length > 0) { jackpot =
jackpot_arr.toString(); } var client_seed = $('#next_client_seed').val(); let
payout_multi = payout_double; $.get('/cgi-bin/bet.pl?m=' + mode + '&client_seed=' +
client_seed + '&jackpot=' + jackpot + '&stake=' + bet + '&multiplier=' +
payout_multi + '&rand=' + Math.random(), function(data) { var result =
data.split(":"); $('#double_your_btc_error').html(""); $
('#double_your_btc_error').hide(); $('#double_your_btc_stake').removeClass('input-
error'); $('#double_your_btc_bet_win').html(""); $
('#double_your_btc_bet_lose').html(""); $('#double_your_btc_bet_win').hide(); $
('#double_your_btc_bet_lose').hide(); $('#jackpot_message').removeClass('green'); $
('#jackpot_message').removeClass('red'); $('#jackpot_message').html(''); $
('#jackpot_message').hide(); $('#double_your_btc_result').show(); if (result[0] ==
"s1") { var number = result[2]; var single_digit = number.split(""); if
(number.toString().length < 5) { var remaining = 5 - number.toString().length; for
(var i = 0; i < remaining; i++) { single_digit.unshift('0'); } }
clearInterval(intervalID); $("#multiplier_first_digit").html(single_digit[0]); $
("#multiplier_second_digit").html(single_digit[1]); $
("#multiplier_third_digit").html(single_digit[2]); $
("#multiplier_fourth_digit").html(single_digit[3]); $
("#multiplier_fifth_digit").html(single_digit[4]); num1 = single_digit[0]; num2 =
single_digit[1]; num3 = single_digit[2]; num4 = single_digit[3]; num5 =
single_digit[4]; fullNum = parseInt(num1 + num2 + num3 + num4 + num5); if(len ===
5) { arrPrevious.splice(0, 1); } arrPrevious.push(fullNum); $
('#balance').html(result[3]); $('#balance2').html(result[3]); $
('#next_server_seed_hash').val(result[6]); $('#next_nonce').html(result[8]); $
('.previous_server_seed').html(result[9]); $
('.previous_server_seed').val(result[9]); $
('#previous_server_seed_hash').val(result[10]); $
('.previous_client_seed').html(result[11]); $
('.previous_client_seed').val(result[11]); $('.previous_nonce').html(result[12]); $
('#previous_roll').html(result[2]); $('#no_previous_rolls_msg').hide(); $
('#previous_rolls_table').show(); $('#previous_roll_strings').show(); if
(parseFloat(result[16]) > 0 && parseFloat(result[16]) < 5000000) { $
('.multiply_max_bet').html(result[16]); $('.multiply_max_bet').val(result[16]);
max_win_amount = parseFloat(result[16]); } $("#verify_rolls_link").attr("href",
"https://s3.amazonaws.com/roll-verifier/verify.html?server_seed=" + result[9] +
"&client_seed=" + result[11] + "&server_seed_hash=" + result[10] + "&nonce=" +
result[12]); var capsmode = mode.toUpperCase(); if (result[1] == "w") { cntWin++; $
('#double_your_btc_bet_win').show(); $('#double_your_btc_bet_win').html("You BET "
+ capsmode + " so you win " + result[4] + " BTC!"); bet =
parseFloat(base_bet).toFixed(8); arrLost = []; } if (result[1] == "l") { $
('#double_your_btc_bet_lose').show(); $('#double_your_btc_bet_lose').html("You BET
" + capsmode + " so you lose " + result[4] + " BTC"); arrLost.push(fullNum); } if
(jackpot != 0) { $('#jackpot_message').show(); if (result[13] == "1") { $
('#jackpot_message').addClass('green'); $
('#jackpot_message').html("Congratulations! You have won the jackpot of " +
result[15] + " BTC"); } else { $('#jackpot_message').addClass('red'); $
('#jackpot_message').html("Sorry, you did not win the jackpot."); } } $
("#double_your_btc_bet_hi_button").attr("disabled", false); $
("#double_your_btc_bet_lo_button").attr("disabled", false); new_mode = betMode;
if(cntWin == stopPlay) { console.log("Đã thắng đủ " + stopPlay); } else
{ placeBetBitcoin(new_mode, bet); } } else { $('#double_your_btc_error').show(); $
('#double_your_btc_digits').hide(); if (parseFloat(result[1]) > 0 &&
parseFloat(result[1]) < 5000000) { $('.multiply_max_bet').html(result[1]); $
('.multiply_max_bet').val(result[1]); max_win_amount = parseFloat(result[1]); }
BetErrors(result[0]); clearInterval(intervalID); if (result[0] == "e6") { $
("#double_your_btc_bet_hi_button").attr("disabled", true); $
("#double_your_btc_bet_lo_button").attr("disabled", true); } else { $
("#double_your_btc_bet_hi_button").attr("disabled", false); $
("#double_your_btc_bet_lo_button").attr("disabled", false); } } }).fail(function()
{ $('#double_your_btc_result').show(); $('#double_your_btc_error').show(); $
('#double_your_btc_digits').hide(); $('#double_your_btc_error').html("Request timed
out. Please try again."); clearInterval(intervalID); $
("#double_your_btc_bet_hi_button").attr("disabled", false); $
("#double_your_btc_bet_lo_button").attr("disabled", false); }); }
placeBetBitcoin(betMode, base_bet);

You might also like