循环计数器无法自动止盈

时间:2018-09-08 23:07:36

标签: javascript html css web-applications

伙计们,我一直在研究简化freebitco.in赌博和博彩的程序,但是只停留在计数器循环的一部分上,我创建了脚本并开始工作,但是我成功了,但是现在我想完成的是自动停止获利代码,我希望脚本以某个特定的金额停止,但是它只会以我希望其停止的金额停止(也就是说,如果它在代码的前9个循环内,)但是,如果它不在代码的前9个循环内,它将不会停止!请提供以下脚本代码的人,请签出它们,然后您可以声称自己的freebitco.infreebitcoin上进行测试,请告诉我做错了什么,这不会使自动止损功能正常工作!

var PhyzyProgrammer = 'Script Creator',

//主要设置

 startValue = '0.00000002', // Don't lower the decimal point more than 4x of current balance
    stopPercentage = 0.00000001, // In %. I wouldn't recommend going past 0.08
    maxWait = 100, // In milliseconds
    stopped = false, // debugging
    stopBettingAfterProfit = 0.00000010, // In Profit Value
    stopBefore = 3, // In minutes // In minutes for timer before stopping redirect on webpage
    betMode='hi',

//延迟和舍入计数

countTimes = 10,
counterDelay = 900;

$('body').append('<div style="position:fixed;overflow: auto;top:0;left:0;width:100%;height:100%;min-height:100%;text-align: center;z-index:100000;background-image:linear-gradient(gold, black);" class=""><section class="top-bar-section"> <ul class="right tabs">  <li class="divider"></li> <li class="balanceli"><span id="balance">421.79258102</span> BTC</li><li class="divider"></li><li><a href="javascript:void(0);" class="logout_link"><img src="/images/logout.png" border="0" style="padding-bottom:5px;" alt="LOGOUT" title="LOGOUT"></a></li> <li class="divider"></li></ul></section><div  class="large-12 large-centered small-12 small-centered columns" style="margin:0 !important; padding:0 !important;"> <div id="main_content" class="large-9 small-7 large-centered new_border_shadow columns"><div id="deposit_withdraw_container" class="deposit_withdraw_container"><div class="row center" style="margin:0; margin-top:20px; padding-top:10px;"> <style> p#demo{color:white;}</style><style> #grad1{height: 100px; background-color:red; background-image: linear-gradient(gold, black)</style><style>h4{font-family: "Comic Sans MS", cursive, sans-serif;}</style><table style="margin:0 auto;"><tr><th>BOT STATISTICS</th></tr><tr><td>balance</td><td id="balance_b"></td></tr><tr><td>win</td><td id="roundwin_b"></td><p id="demo">COUNTDOWN TO YOUR SCRIPT EXPIRY DATE</p><h id="r507"><span style="color: rgb(255, 229, 0);">C</span><span style="color: rgb(217, 255, 0);">O</span><span style="color: rgb(153, 255, 0);">N</span><span style="color: rgb(90, 255, 0);">G</span><span style="color: rgb(26, 255, 0);">R</span><span style="color: rgb(0, 255, 38);">A</span><span style="color: rgb(0, 255, 102);">T</span><span style="color: rgb(0, 255, 165);">U</span><span style="color: rgb(0, 255, 229);">L</span><span style="color: rgb(0, 217, 255);"></span><span style="color: rgb(0, 153, 255);">A</span><span style="color: rgb(0, 90, 255);"></span><span style="color: rgb(0, 26, 255);"> </span><span style="color: rgb(38, 0, 255);"></span><span style="color: rgb(102, 0, 255);">T</span><span style="color: rgb(165, 0, 255);">I</span><span style="color: rgb(229, 0, 255);">O</span><span style="color: rgb(255, 0, 217);">N</span><span style="color: rgb(255, 0, 153);">S</span><span style="color: rgb(255, 0, 90);"> </span><span style="color: rgb(255, 0, 26);">YOU HAVE SUCCESSFULLY ACTIVATED</span><span style="color: rgb(255, 38, 0);">0</span><span style="color: rgb(255, 102, 0);">THE</span><span style="color: rgb(255, 165, 0);">SCRIPT BOT! &#9745;</span></h></tr>&#9745;<tr><td>bet</td><td id="current_bet_b"></td></tr><tr><td>time</td><td id="time_b"></td></tr></table><body style="background-color:black"><div class="GreenBlock" align="center"><font color="#FF0000">P</font><font color="#FFff00">r</font><font color="#00ff00">o</font><font color="#00ffff">u</font><font color="#0000ff">d</font><font color="#FF00ff">l</font><font color="#FF0000">y</font><font color="#FFff00"> </font><font color="#00ff00">D</font><font color="#00ffff">e</font><font color="#0000ff">s</font><font color="#FF00ff">i</font><font color="#FF0000">g</font><font color="#FFff00">n</font><font color="#00ff00">e</font><font color="#00ffff">d</font><font color="#0000ff"> </font><font color="#FF00ff">b</font><font color="#FF0000">y</font><font color="#FFff00">:</font><font color="#00ff00"> </font><font color="#00ffff">P</font><font color="#ffff00">H</font><font color="#0000ff">Y</font><font color="#00ff00">Z</font><font color="#00ffff">Y</font><font color="#FF00ff">P</font><font color="#00fff0">R</font><font color="#FF0000">O</font><font color="#FFff00"> </font><font color="#00ff00">G</font><font color="#00ffff">R</font><font color="#0000ff">A</font><font color="#FF00ff">M</font><font color="#FF0000">MER</font><font color="#FFff00">™</font><font color="#00ff00"> </font></div><h4 style="color:Gold"><style="font-family:verdana"><style="font-size:5000%">FREEBITCO.IN  SCRIPT BOT! BY UseOfficial &#9989; <p>UNDERGROUND_SCRIPT_EARNERS <img src="http://elitefixed.com/wp-content/uploads/2017/11/loading.gif" alt="HTML5 Icon" style="width:300px;height:200px;"></P><p style="color:Gold"><style="font-family:verdana"><style="font-size:100%">BALANCE STATISTICS, COMING SOON!!!</P></h4><p style="color:Gold"><style="font-family:verdana"><style="font-size:100%">BOT V1.0!</p> </body><h1 style="colour:Gold"><img src="http://78.media.tumblr.com/be63345d5d48f43e5740e76e4568740f/tumblr_n85lellqWX1s6tawho1_500.gif" alt="HTML5 Icon" style="width:100px;height:100px;">FEATURES &#9989;  <a href="#"><span style="color:#97FF6B;">free</span>bitcoin</a> <img src="https://btcscriptbot.files.wordpress.com/2018/08/2.png" alt="HTML5 Icon" style="width:100px;height:100px;"></h1><table class="container"><thead><tr><th><h1>Names</h1></th><th><h1>Details</h1></th><th><h1>Statistics</h1></th><th><h1>CopyRights</h1></th></tr></thead><tbody><tr><td>Script_Bot</td><td>Status</td><td>Active/Online</td><td>2018</td></tr><tr><td>Script_Bot</td><td>Name</td><td>U-S-E_Lite</td><td>Console</td></tr><tr><td>Script_Bot</td><td>Type</td><td>PC browser</td><td>Online</td></tr><tr><td>Script_Bot</td><td>Free/Premium</td><td>Premium</td><td>None V*I*P</td></tr><tr><td>Script_Bot</td><td>Type</td><td>V*I*P</td><td>Null</td></tr><tr><td>Script_Bot</td><td>Deposit/Earning</td><td>0.05</td><td>0.005</td></tr></tbody></table><style>table#container h2 {font-size:1em; font-weight: 300;text-align: center;display: block;line-height:1em;padding-bottom: 2em;color: #FB667A;}h2 a {font-weight: 700;text-transform: uppercase;color: #FB667A;text-decoration: none;}.blue { color: #185875; }.yellow { color: #FFF842; }.container th h1 {font-weight: bold;font-size: 1em;text-align: left;color: #185875;}.container td {font-weight: normal;font-size: 1em;-webkit-box-shadow: 0 2px 2px -2px #0E1119;-moz-box-shadow: 0 2px 2px -2px #0E1119;box-shadow: 0 2px 2px -2px #0E1119;}.container {text-align: left;overflow: hidden;width: 80%;margin: 0 auto;display: table;padding: 0 0 8em 0;}.container td, .container th {padding-bottom: 2%;padding-top: 2%;padding-left:2%;  }.container tr:nth-child(odd) {background-color: #323C50;}.container tr:nth-child(even) {background-color: #2C3446;}.container th {background-color: #1F2739;}.container td:first-child { color: #FB667A; }.container tr:hover {background-color: #464A52;-webkit-box-shadow: 0 6px 6px -6px #0E1119;-moz-box-shadow: 0 6px 6px -6px #0E1119;box-shadow: 0 6px 6px -6px #0E1119;}.container td:hover {background-color: #FFF842;color: #403E10;font-weight: bold;box-shadow: #7F7C21 -1px 1px, #7F7C21 -2px 2px, #7F7C21 -3px 3px, #7F7C21 -4px 4px, #7F7C21 -5px 5px, #7F7C21 -6px 6px;transform: translate3d(6px, -6px, 0);transition-delay: 0s;transition-duration: 0.4s;transition-property: all;transition-timing-function: line;}@media (max-width: 800px) {.container td:nth-child(4),.container th:nth-child(4) { display: none; }}</style></div>');

// HTML Vars

var $hiButton = $('#double_your_btc_bet_hi_button');
var $loButton = $('#double_your_btc_bet_lo_button');
var balanceOnStart = $('#balance').text()*1;

//到期日期计时器设置我们要倒数的日期

var countDownDate = new Date("Sep 10, 2055 15:37:25").getTime();

// Update the count down every 1 second
var x = setInterval(function() {

    // Get todays date and time
    var now = new Date().getTime();

    // Find the distance between now an the count down date
    var distance = countDownDate - now;

    // Time calculations for days, hours, minutes and seconds
    var days = Math.floor(distance / (1000 * 60 * 60 * 24));
    var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
    var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
    var seconds = Math.floor((distance % (1000 * 60)) / 1000);

    // Output the result in an element with id="demo"
    document.getElementById("demo").innerHTML = days + "d " + hours + "h "
    + minutes + "m " + seconds + "s ";

    // If the count down is over, write some text 
    if (distance < 0) {
        clearInterval(x);
        document.getElementById("demo").innerHTML = "EXPIRED";
alert("EXPIRED - Contact your Group Admin to get the Updated version of the Script"); location.reload();

    }
}, 1000);

//主要功能

function startGame(modeSelection) {
    console.log('Game started!');
    reset();
    if (modeSelection == 'hi' ){$hiButton.trigger('click');} else {$loButton.trigger('click');}
    // Base Code Of the Game

    // Unbind old shit
    $('#double_your_btc_bet_lose').unbind();
    $('#double_your_btc_bet_win').unbind();
    // Loser
    $('#double_your_btc_bet_lose').bind("DOMSubtreeModified", function (event) {
        if($(event.currentTarget).is(':contains("lose")')) {
            console.log('You LOST! Multiplying your bet and betting again.');
            multiply();
            setTimeout(function () {
                $hiButton.trigger('click');
            }, getRandomWait());
            //$hiButton.trigger('click');
        }
    });
    // Winner
    $('#double_your_btc_bet_win').bind("DOMSubtreeModified", function (event) {
        if($(event.currentTarget).is(':contains("win")')) {
            if(stopBeforeRedirect()) {
                return;
            }
            if(iHaveEnoughMoni()) {
                console.log('You WON! But don\'t be greedy. Restarting!');
                reset();
                if(stopped) {
                    stopped = false;
                    return false;
                }
            } else {
                console.log('You WON! Betting again');
            }
            setTimeout(function () {
                $hiButton.trigger('click');
            }, getRandomWait());
        }
    });

}

function multiply() {
    var current = $('#double_your_btc_stake').val();
    var multiply = (current * 2.5).toFixed(8);
    $('#double_your_btc_stake').val(multiply);
}

function getRandomWait() {
    var wait = Math.floor(Math.random() * maxWait) + 100;
    console.log('Waiting for ' + wait + 'ms before next bet.');
    return wait;
}


function stopGameAfterProfit(profitValue) {
    ('stop_after_profit_value').val(value >= 0.00000010)
    console.log('Game will stop soon! Let me finish.');
    stopped = true;
}

function reset() {
    $('#double_your_btc_stake').val(startValue);
}
// quick and dirty hack if you have very little bitcoins like 0.00000001
function deexponentize(number) {
    return number * 10000000;
}

function iHaveEnoughMoni() {
    var balance = deexponentize(parseFloat($('#balance').text()));
    var current = deexponentize($('#double_your_btc_stake').val());
    return((balance * 2) / 100) * (current * 2) > stopPercentage / 100;
}

function stopBeforeRedirect() {
    var minutes = parseInt($('title').text());
    if(minutes < stopBefore) {
        console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
        stopGame();
        return true;
    }
    return false;
}

// lose: $('#double_your_btc_bet_lose').html(),
//win: $('#double_your_btc_bet_win').html() };
//balance reader 2

if(confirm("You are about to use the #USEOFFICIAL_SCRIPT, click OKAY (note: you must hv 0.05btc for you to use the script)  to use it or click cancel if u dont have the DEPOSIT OF 0.05BTC IN your ACCOUNT BALANCE, if you click OK, you will activate the script and start earning. At 0.005btc a pop up menu will show so that you can easily withdraw your earnings ENJOY!!") == true) {

runScript();


} else {
    $(function () {
        $('#time_remaining').countdown({
            until: +10,
            format: 'MS'
        });
    });
    setTimeout(function () {
        RefreshPageAfterFreePlayTimerEnds();
    }, 10 * 1000);
    $(function () {
        $('.payout_time_remaining').countdown({
            until: +153999,
            format: 'DHMS'
        });
    });
    $(function () {
        $('#lottery_round_end').countdown({
            until: +155849,
            format: 'DHMS'
        });
    });
    $(function () {
        $('#slow_payout_time_remaining').countdown({
            until: +21510,
            format: 'HMS'
        });
    });
    title_countdown(10);
}

//开始循环

var counter_i = 1;
function runScript () {
   setTimeout(function () {
      //  Main Code to Do
          if ( ($('#balance').text()*1) - balanceOnStart >= stopBettingAfterProfit)
        {alert('Good Profit please Click OK now to RELOAD FREEBITCO to WITHDRAW your EARNINGS: '+ (($('#balance').text()*1) - balanceOnStart) ); location.reload(); stopped=true;}
  if (stopped){counter_i=countTimes+1; return;}
      console.clear();
      console.log('Balance: ' +parseFloat(($('#balance').text()*1)).toFixed(8) )
    startGame(betMode);




  counter_i++;
  if (counter_i < countTimes) {
     runScript();
  }


}, counterDelay)
}

0 个答案:

没有答案