Advertisement
coniareconio

lng

Feb 17th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $('#body').css('background', 'black');
  2. $('#main').css('min-width', '100%');
  3. $('#header').css('display', 'none');
  4. $('#news').css('display', 'none');
  5. $('#content').css('background', 'none');
  6. $('#gameContainer').html('<h2 style="margin: 0px; color: white;">SCOBRU BALLS 4 BOT </h2> <center><span id="notification">...</span></center><br> <span style="float: left;"><input id="basebetAmount" value="0.00000001" style="background: none; text-align: center; color: #fff; border: 1px solid #fff;" placeholder="basebetAmount" autocomplete="off"> <input id="overBalance" value="0.00000000" style="background: none; text-align: center; color: #fff; border: 1px solid #fff;" placeholder="overBalance" autocomplete="off"> <input id="underBalance" value="0.00000000" style="background: none; text-align: center; color: #fff; border: 1px solid #fff;" placeholder="underBalance" autocomplete="off"></span> <span style="float: right;"><button id="min" onclick="min();" style="border: 1px solid #fff; padding: 2px;">min</button> <button id="play" style="border: 1px solid #fff; padding: 2px;">start</button> <button id="reset" onclick="reset();" style="border: 1px solid #fff; padding: 2px;">reset</button> <button id="showChart" style="border: 1px solid #fff; padding: 2px;">showChart</button> <button id="showStatic" style="border: 1px solid #fff; padding: 2px;">showStatic</button></span><br><br> <div id="chart" style="height: 320px;"></div><br> <div id="static">...</div><br><br> <img src="https://image.ibb.co/k7qOhK/lucky_logo.png">');
  7. $('#gameContainer').css('width', '75%');
  8. $('#gameContainer').css('height', '100%');
  9. $('#gameContainer').css('color', '#fff');
  10. $('#gameContainer').css('font-size', '16px');
  11. $('#gameContainer').css('margin', 'auto');
  12. $('#gameContainer').css('padding', '0px');
  13. $('#notification').html('Bot has applied!');
  14. $('#static').css('text-align', 'center');
  15. $('#controlContainer').css('display', 'none');
  16. $('#listContainer').css('display', 'none');
  17. $('#frontText').css('display', 'none');
  18. $('#footer').css('display', 'none');
  19. $('#notification').html('Bot has applied');
  20. $('#static').html('...');
  21.  
  22. document.getElementById('chart').hidden = true;
  23. document.getElementById('static').hidden = true;
  24. randomizeSeed();
  25. console.clear();
  26. var run = false;
  27. hideChart = true;
  28. hideStatic = true;
  29. basebetAmount = 0;
  30. betAmount = 0;
  31. maxbetAmount = 0;
  32. ballsArray = [];
  33. direction = '';
  34. balance = 0;
  35. overBalance = 0;
  36. underBalance = 0;
  37. bet = 0;
  38. win = 0;
  39. lose = 0;
  40. winStreak = 0;
  41. loseStreak = 0;
  42. maxWinStreak = 0;
  43. maxLoseStreak = 0;
  44. wagered = 0;
  45. profitWagered = 0;
  46. profit = 0;
  47. largestProfit = 0;
  48. largestLose = 0;
  49. startTime = new Date();
  50. onTime = 0;
  51. playTime = 0;
  52. playDay = 0;
  53. playHour = 0;
  54. playMinute = 0;
  55. playSecond = 0;
  56. speed = 0;
  57. round = 0;
  58. dsp = [];
  59. chart = '';
  60. color = '';
  61.  
  62. $.getScript('https://canvasjs.com/assets/script/canvasjs.min.js').done(function (script, textStatus) {
  63. dps = [{
  64. x: 0,
  65. y: 0
  66. }
  67. ];
  68. chart = new CanvasJS.Chart('chart', {
  69. theme: 'dark1',
  70. zoomEnabled: true,
  71. backgroundColor: 'black',
  72. axisX: {
  73. title: ' ',
  74. includeZero: false,
  75. },
  76. axisY: {
  77. title: ' ',
  78. includeZero: false,
  79. },
  80. title: {
  81. text: ' ',
  82. fontColor: 'white',
  83. fontSize: 2e1,
  84. padding: 2e1
  85. },
  86. data: [{
  87. type: 'stepLine',
  88. dataPoints: dps
  89. }
  90. ]
  91. });
  92. chart.render();
  93. });
  94. function updateChart(bet, profit, color) {
  95. dps.push({
  96. x: bet,
  97. y: profit,
  98. color: color
  99. });
  100. if (dps[dps.length - 2]) {
  101. dps[dps.length - 2].lineColor = color;
  102. }
  103. if (dps.length > 1e3) {
  104. dps.shift();
  105. }
  106. chart.render();
  107. }
  108. function min() {
  109. $('#basebetAmount').val((0.00000001).toFixed(8));
  110. }
  111. $('#play').on('click', function () {
  112. run == true ? play(this, "start", false, false) : play(this, "stop", true, true);
  113. basebetAmount = parseFloat($('#basebetAmount').val());
  114. overBalance = parseFloat($('#overBalance').val());
  115. underBalance = parseFloat($('#underBalance').val());
  116. betAmount = basebetAmount;
  117. ballsArray= [0,2,4,5,7,9,10]
  118. direction = 'under';
  119. $('#basebetAmount').val(basebetAmount.toFixed(8));
  120. $('#overBalance').val(overBalance.toFixed(8));
  121. $('#underBalance').val(underBalance.toFixed(8));
  122. doBet();
  123. });
  124. function play(e, d, v) {
  125. $(e).html(d);
  126. run = v;
  127. $('#basebetAmount').prop('disabled', v);
  128. $('#overBalance').prop('disabled', v);
  129. $('#underBalance').prop('disabled', v);
  130. $('#min').prop('disabled', v);
  131. $('#reset').prop('disabled', v);
  132. }
  133. $('#showChart').on('click', function () {
  134. hideChart == true ? showChart(this, "hideChart", false) : showChart(this, "showChart", true);
  135. });
  136. function showChart(e, d, v) {
  137. $(e).html(d);
  138. hideChart = v;
  139. document.getElementById('chart').hidden = v;
  140. }
  141. $('#showStatic').on('click', function () {
  142. hideStatic == true ? showStatic(this, "hideStatic", false) : showStatic(this, "showStatic", true);
  143. });
  144. function showStatic(e, d, v) {
  145. $(e).html(d);
  146. hideStatic = v;
  147. document.getElementById('static').hidden = v;
  148. }
  149. function reset() {
  150. randomizeSeed();
  151. basebetAmount = 0;
  152. betAmount = 0;
  153. maxbetAmount = 0;
  154. ballsArray = [];
  155. direction = '';
  156. balance = 0;
  157. overBalance = 0;
  158. underBalance = 0;
  159. bet = 0;
  160. win = 0;
  161. lose = 0;
  162. winStreak = 0;
  163. loseStreak = 0;
  164. maxWinStreak = 0;
  165. maxLoseStreak = 0;
  166. wagered = 0;
  167. profitWagered = 0;
  168. profit = 0;
  169. largestProfit = 0;
  170. largestLose = 0 ;
  171. startTime = new Date();
  172. onTime = 0;
  173. playTime = 0;
  174. playDay = 0;
  175. playHour = 0;
  176. playMinute = 0;
  177. playSecond = 0;
  178. speed = 0;
  179. round = 0;
  180. dsp = [];
  181. chart = '';
  182. color = '';
  183. $.getScript('https://canvasjs.com/assets/script/canvasjs.min.js').done(function (script, textStatus) {
  184. dps = [{
  185. x: 0,
  186. y: 0
  187. }
  188. ];
  189. chart = new CanvasJS.Chart('chart', {
  190. theme: 'dark1',
  191. zoomEnabled: true,
  192. backgroundColor: 'black',
  193. axisX: {
  194. title: ' ',
  195. includeZero: false,
  196. },
  197. axisY: {
  198. title: ' ',
  199. includeZero: false,
  200. },
  201. title: {
  202. text: ' ',
  203. fontColor: 'white',
  204. fontSize: 2e1,
  205. padding: 2e1
  206. },
  207. data: [{
  208. type: 'stepLine',
  209. dataPoints: dps
  210. }
  211. ]
  212. });
  213. chart.render();
  214. });
  215. $('#notification').html('Bot has reset');
  216. $('#static').html('...');
  217. return;
  218. }
  219. function doBet() {
  220. if (run === true) {
  221. jQuery.ajax({
  222. url: "https://" + user.domain + "/play/",
  223. type: "POST",
  224. dataType: "html",
  225. timeout: 6e4,
  226. data: {
  227. game: "balls",
  228. coin: $('#coin').val(),
  229. betAmount: betAmount,
  230. ballsArray: ballsArray,
  231. direction: direction,
  232. clientSeed: $('#clientSeed').val(),
  233. serverSeedHash: $('#serverSeedHash').html(),
  234. session: getCookie("SESSION"),
  235. hash: user.hash
  236. },
  237. success: function (data) {
  238. var data = JSON.parse(data);
  239. if (data.result === true) {
  240. bet++;
  241. onTime = new Date().getTime();
  242. playTime = onTime - startTime;
  243. playDay = Math.floor(playTime / (1e3 * 6e1 * 6e1 * 24));
  244. playHour = Math.floor((playTime % (1e3 * 6e1 * 6e1 * 24)) / (1e3 * 6e1 * 6e1));
  245. playMinute = Math.floor((playTime % (1e3 * 6e1 * 6e1)) / (1e3 * 6e1));
  246. playSecond = Math.floor((playTime % (1e3 * 6e1)) / 1e3);
  247. speed = parseFloat((bet / playTime) * 1e3);
  248. balance = parseFloat(data.balance);
  249. wagered += parseFloat(betAmount);
  250. profit += parseFloat(data.profit);
  251. profitWagered = (wagered * 0.1) / 1e2;
  252. if (profit > largestProfit) {
  253. largestProfit = profit;
  254. }
  255.  
  256.  
  257.  
  258. if (profit < largestLose ){
  259. largestLose = profit;
  260.  
  261. }
  262.  
  263.  
  264. if (data.gameResult === 'win') {
  265. win++;
  266. winStreak++;
  267. loseStreak = 0;
  268. color = 'yellow';
  269. } else {
  270. lose++;
  271. loseStreak++;
  272. winStreak = 0;
  273. color = 'red';
  274. }
  275. if (winStreak >= maxWinStreak) {
  276. maxWinStreak = winStreak;
  277. }
  278. if (loseStreak >= maxLoseStreak) {
  279. maxLoseStreak = loseStreak;
  280. }
  281. if (betAmount >= maxbetAmount) {
  282. maxbetAmount = betAmount;
  283. }
  284. $('#serverSeedHash').html(data.serverSeedHash);
  285. $('#notification').html('Bot on running');
  286. $('#static').html('<span style="float: left;">Game = dice</span> <span style="float: right;">Coin = ' + $('#coin').val() + '</span><br> <span style="float: left;">Time = ' + playDay + ':' + playHour + ':' + playMinute + ':' + playSecond + '</span> <span style="float: right;">Speed = ' + speed.toFixed(2) + '</span><br> <span style="float: left;">Balance = ' + balance.toFixed(8) + '</span> <span style="float: right;">Profit = ' + profit.toFixed(8) + '</span><br> <span style="float: left;">Wagered = ' + wagered.toFixed(8) + '</span> <span style="float: right;">Max Bet Amount = ' + maxbetAmount.toFixed(8) + '</span><br> <span style="float: left;">Win Streak = ' + winStreak + '</span> <span style="float: right;">Lose Streak = ' + loseStreak + '</span><br> <span style="float: left;">Max Win Streak = ' + maxWinStreak + '</span> <span style="float: right;">Max Lose Streak = ' + maxLoseStreak + '</span><br>'+ '</span> <span style="float: right;">Largest Profit = ' + largestProfit + '</span><br>'+ '</span> <span style="float: right;">Largest Lose = ' + largestLose + '</span>');
  287. updateChart(bet, profit, color);
  288. if (betAmount >= balance) {
  289. stop();
  290. $('#notification').html('You lose');
  291. return;
  292. } else {
  293. if (overBalance != 0 && balance >= overBalance) {
  294. stop();
  295. $('#notification').html('Over balance');
  296. return;
  297. } else if (underBalance != 0 && balance <= underBalance) {
  298. stop();
  299. $('#notification').html('Under balance');
  300. return;
  301. } else {
  302. if (profit >= largestProfit) {
  303.  
  304. round = 0;
  305. betAmount = basebetAmount;
  306.  
  307. } else {
  308. round++;
  309.  
  310. if (round % 2 === 0) {
  311. ballsArray= [0,4,8,10]
  312. direction = 'under';
  313. betAmount *= 2;
  314. }else {
  315. if(bet% 3=== 0){
  316. ballsArray= [2,5,7]
  317. }else {ballsArray= [1,3,4,6]
  318. }
  319. if(bet% 4=== 0){
  320. ballsArray= [1,3,8]
  321. }else {ballsArray= [2,4,5,9]
  322. }
  323. }
  324.  
  325. }
  326. }
  327. }
  328. console.log('balls',ballsArray,'dir',direction,'betAmount',betAmount,'bet',bet, 'round',round)
  329.  
  330. doBet();
  331. } else {
  332. randomizeSeed();
  333. setInterval(doBet(), 1e3);
  334. }
  335. },
  336. error: function (xhr, ajaxOptions, throwagerednError) {
  337. randomizeSeed();
  338. setInterval(doBet(), 1e3);
  339. },
  340. timeout: function (xhr, ajaxOptions, throwagerednError) {
  341. randomizeSeed();
  342. setInterval(doBet(), 1e3);
  343. },
  344. abetort: function (xhr, ajaxOptions, throwagerednError) {
  345. randomizeSeed();
  346. setInterval(doBet(), 1e3);
  347. }
  348. });
  349. } else {
  350. $('#notification').html('Bot has stopped');
  351. return;
  352. }
  353. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement