Bitsler winning Script


SUBMITTED BY: shivanet599

DATE: Oct. 26, 2017, 10:38 a.m.

FORMAT: Text only

SIZE: 43.5 kB

HITS: 15490

  1. // This script is written by Christian (officialonlineacademy@gmail.com)
  2. // Now this script will winning for you!
  3. // Let's go:
  4. console.clear();
  5. // Tick the increase button
  6. $('#id-bet-on-lose').click();
  7. // Won variable
  8. var won = null;
  9. (function() {
  10. alert("This script is coded by Christian **** (officialonlineacademy@gmail.com). If you have any problems, contact me");
  11. var balance = parseFloat(prompt("Type in your exact balance!!!", '0.000001'));
  12. if (balance == null || isNaN(balance)){alert("Invalid balance, aborting");return;}
  13. if (!confirm("Do u agree that u don't share this software or sell this software if you are NOT BTC Programmer (earlier Clasher G), the Creator of this software? Youtube: https://www.youtube.com/watch?v=SEH4dK-Uido")){
  14. alert("STOPPING");
  15. window.location.href = "http://bitsler.com";
  16. }
  17. var stopAmount = parseFloat(stopAmount);
  18. var risk = prompt("How much risk you want to have? 1 - Low, 2 - Medium, 3 - High, 4 - Auto Mode 5 - Super Power 6 - Switching Mode, 7 - Super Save (new), 8 - Huge Profit" , '1');
  19. if (risk != "1" && risk != "2" && risk != "3" && risk != "4" && risk != "5" && risk != "6" && risk != "7" && risk != "8"){
  20. alert("Invalid risk entered, aborting");
  21. return false;
  22. }
  23. if (risk == "1") {low();}
  24. else if (risk == "2"){medium();}
  25. else if (risk == "3"){high();}
  26. else if (risk == "4"){automode();}
  27. else if (risk == "5"){super_power();}
  28. else if (risk == "6"){switch_mode();}
  29. else if (risk == "7"){super_save();}
  30. else {huge_profit();}
  31. function medium() {
  32. // Done
  33. if (balance < 0.00001)
  34. {
  35. var amount = document.getElementById("amount").value = "0.00000005";
  36. var chance = $.trim($("#editable-chance-field").val("9.99%"));
  37. var payout = document.getElementById('editable-payout').innerHTML = "49.5000";
  38. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  39. // jQuery needed here:
  40. var increase = $.trim($("#pourc-bet-on-lose").val("12"));
  41. // First click the updated condition
  42. $('#updated_condition').click();
  43. // Wait 50 ms
  44. wait(50);
  45. $('#btn-bet-start-pilot-dice').click();
  46. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  47. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  48. var timeout = setTimeout(function(){var profit = $('#auto_stats_profit').html(); var profit = parseFloat(profit);if (profit > stop){alert("You got your profit, enjoy");kill();}}, 1);
  49. }
  50. // Done
  51. else if (balance < 0.0001 && balance > 0.00001){
  52. var amount = document.getElementById("amount").value = "0.00000010";
  53. var chance = $.trim($("#editable-chance-field").val("9.90%"));
  54. var payout = document.getElementById('editable-payout').innerHTML = "49.5000";
  55. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  56. // jQuery needed here:
  57. var increase = $.trim($("#pourc-bet-on-lose").val("12"));
  58. // First click the updated condition
  59. $('#updated_condition').click();
  60. // Wait 50 ms
  61. wait(50);
  62. $('#btn-bet-start-pilot-dice').click();
  63. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  64. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  65. var timeout = setTimeout(function(){var profit = $('#auto_stats_profit').html(); var profit = parseFloat(profit);if (profit > stop){alert("You got your profit, enjoy");kill();}}, 1);
  66. }
  67. // Done
  68. else if (balance < 0.001 && balance > 0.0001) {
  69. var amount = document.getElementById("amount").value = "0.0000001";
  70. var chance = $.trim($("#editable-chance-field").val("66%"));
  71. var payout = document.getElementById('editable-payout').innerHTML = "49.5000";
  72. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  73. // jQuery needed here:
  74. var increase = $.trim($("#pourc-bet-on-lose").val("110"));
  75. // First click the updated condition
  76. $('#updated_condition').click();
  77. // Wait 50 ms
  78. wait(50);
  79. $('#btn-bet-start-pilot-dice').click();
  80. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  81. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  82. var timeout = setTimeout(function(){var profit = $('#auto_stats_profit').html(); var profit = parseFloat(profit);if (profit > stop){alert("You got your profit, enjoy");kill();}}, 1);
  83. }
  84. // Done
  85. else if (balance < 0.01 && balance > 0.001) {
  86. var final_amount = balance > 0.001 && balance <= 0.002 ? 1 : balance > 0.002 && balance <= 0.003 ? 2 : balance > 0.003 && balance <= 0.004 ? 3 : balance > 0.004 && balance <= 0.005 ? 4 : balance > 0.005 && balance <= 0.006 ? 5 : balance > 0.006 && balance <= 0.007 ? 6 : balance > 0.007 && balance <= 0.008 ? 7 : balance > 0.008 && balance <= 0.009 ? 8 : balance > 0.009 && balance <= 0.01 ? 9 : 0;
  87. var amount = document.getElementById("amount").value = "0.000000" + final_amount;
  88. var chance = $.trim($("#editable-chance-field").val("4.95%"));
  89. var payout = document.getElementById('editable-payout').innerHTML = "49.5000";
  90. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  91. // jQuery needed here:
  92. var increase = $.trim($("#pourc-bet-on-lose").val("7.77"));
  93. // First click the updated condition
  94. $('#updated_condition').click();
  95. // Wait 50 ms
  96. wait(50);
  97. $('#btn-bet-start-pilot-dice').click();
  98. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  99. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  100. var timeout = setTimeout(function(){var profit = $('#auto_stats_profit').html(); var profit = parseFloat(profit);if (profit > stop){alert("You got your profit, enjoy");kill();}}, 1);
  101. }
  102. // Done
  103. else if (balance < 0.1 && balance > 0.01) {
  104. var final_amount = balance > 0.01 && balance <= 0.02 ? 1 : balance > 0.02 && balance <= 0.03 ? 2 : balance > 0.03 && balance <= 0.04 ? 3 : balance > 0.04 && balance <= 0.05 ? 4 : balance > 0.05 && balance <= 0.06 ? 5 : balance > 0.06 && balance <= 0.07 ? 6 : balance > 0.07 && balance <= 0.08 ? 7 : balance > 0.08 && balance <= 0.09 ? 8 : balance > 0.09 && balance <= 0.1 ? 9 : 0;
  105. var amount = document.getElementById("amount").value = "0.00000" + final_amount;
  106. var chance = $.trim($("#editable-chance-field").val("4.95%"));
  107. var payout = document.getElementById('editable-payout').innerHTML = "49.5000";
  108. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  109. // jQuery needed here:
  110. var increase = $.trim($("#pourc-bet-on-lose").val("7.77"));
  111. // First click the updated condition
  112. $('#updated_condition').click();
  113. // Wait 50 ms
  114. wait(50);
  115. $('#btn-bet-start-pilot-dice').click();
  116. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  117. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  118. var timeout = setTimeout(function(){var profit = $('#auto_stats_profit').html(); var profit = parseFloat(profit);if (profit > stopAmount){alert("You got your profit, enjoy");kill();}}, 1);
  119. }
  120. else if (balance >= 0.1 && balance <= 1) {
  121. var final_amount = balance > 0.1 && balance <= 0.2 ? 1 : balance > 0.2 && balance <= 0.3 ? 2 : balance > 0.3 && balance <= 0.4 ? 3 : balance > 0.4 && balance <= 0.5 ? 4 : balance > 0.5 && balance <= 0.6 ? 5 : balance > 0.6 && balance <= 0.7 ? 6 : balance > 0.7 && balance <= 0.8 ? 7 : balance > 0.8 && balance <= 0.9 ? 8 : balance > 0.9 && balance <= 1 ? 9 : 2;
  122. var amount = document.getElementById("amount").value = "0.0000" + final_amount;
  123. var chance = $.trim($("#editable-chance-field").val("4.95%"));
  124. var payout = document.getElementById('editable-payout').innerHTML = "49.5000";
  125. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  126. // jQuery needed here:
  127. var increase = $.trim($("#pourc-bet-on-lose").val("7.77"));
  128. // First click the updated condition
  129. $('#updated_condition').click();
  130. // Wait 50 ms
  131. wait(50);
  132. $('#btn-bet-start-pilot-dice').click();
  133. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  134. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  135. var stopout = setTimeout(function(){var profit = $('#auto_stats_profit').html(); var profit = parseFloat(profit);if (profit < minus){alert("You got your profit, enjoy");kill();}}, 1);
  136. var timeout = setTimeout(function(){var profit = $('#auto_stats_profit').html(); var profit = parseFloat(profit);if (profit > stop){alert("You got your profit, enjoy");kill();}}, 1);
  137. }
  138. else if (balance >= 1){
  139. var amount = document.getElementById("amount").value = "0.000001";
  140. var chance = $.trim($("#editable-chance-field").val("0.6%"));
  141. var payout = document.getElementById('editable-payout').innerHTML = "49.5000";
  142. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  143. // jQuery needed here:
  144. var increase = $.trim($("#pourc-bet-on-lose").val("2.01"));
  145. // First click the updated condition
  146. $('#updated_condition').click();
  147. // Wait 50 ms
  148. wait(50);
  149. $('#btn-bet-start-pilot-dice').click();
  150. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  151. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  152. var stopout = setTimeout(function(){var profit = $('#auto_stats_profit').html(); var profit = parseFloat(profit);if (profit < minus){alert("You got your profit, enjoy");kill();}}, 1);
  153. var timeout = setTimeout(function(){var profit = $('#auto_stats_profit').html(); var profit = parseFloat(profit);if (profit > stop){alert("You got your profit, enjoy");kill();}}, 1);
  154. }
  155. var stopout = setTimeout(function(){var profit = $('#auto_stats_profit').html(); var profit = parseFloat(profit);if (profit < minus){alert("You got your profit, enjoy");kill();}}, 1);
  156. }
  157. function huge_profit(){
  158. var amount = document.getElementById("amount").value = "0.00001";
  159. var chance = $.trim($("#editable-chance-field").val("3.33%"));
  160. var payout = document.getElementById('editable-payout').innerHTML = "49.5000";
  161. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  162. // jQuery needed here:
  163. var increase = $.trim($("#pourc-bet-on-lose").val("7.77"));
  164. // First click the updated condition
  165. $('#updated_condition').click();
  166. // Wait 50 ms
  167. wait(50);
  168. $('#btn-bet-start-pilot-dice').click();
  169. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  170. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  171. }
  172. function wait(ms){
  173. var start = new Date().getTime();
  174. var end = start;
  175. while(end < start + ms) {
  176. end = new Date().getTime();
  177. }
  178. }
  179. function jmp_up(void_function){
  180. alert("The program will wait now 50 seconds, after that page will refresh and u can paste script again!");
  181. wait(50000);
  182. window.location.href.replace("http://bitsler.com", "http://bitsler.com");
  183. }
  184. function super_save() {
  185. if (balance <= 0.001 && balance >= 0.0001) {
  186. var amount = document.getElementById("amount").value = "0.00000001";
  187. var chance = $.trim($("#editable-chance-field").val("9%"));
  188. var payout = document.getElementById('editable-payout').innerHTML = "100";
  189. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  190. // jQuery needed here:
  191. var increase = $.trim($("#pourc-bet-on-lose").val("11"));
  192. // First click the updated condition
  193. $('#updated_condition').click();
  194. // Tick increase on win button
  195. // Wait 50 ms
  196. wait(50);
  197. $('#btn-bet-start-pilot-dice').click();
  198. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  199. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  200. }
  201. else if (balance >= 0.001 && balance <= 0.01) {
  202. var amount = document.getElementById("amount").value = "0.0000001";
  203. var chance = $.trim($("#editable-chance-field").val("9%"));
  204. var payout = document.getElementById('editable-payout').innerHTML = "100x";
  205. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  206. // jQuery needed here:
  207. var increase = $.trim($("#pourc-bet-on-lose").val("11"));
  208. // First click the updated condition
  209. $('#updated_condition').click();
  210. // Tick increase on win button
  211. // Wait 50 ms
  212. wait(50);
  213. $('#btn-bet-start-pilot-dice').click();
  214. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  215. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  216. }
  217. else if (balance >= 0.01 && balance <= 0.1){
  218. var amount = document.getElementById("amount").value = "0.000001";
  219. var chance = $.trim($("#editable-chance-field").val("9%"));
  220. var payout = document.getElementById('editable-payout').innerHTML = "100x";
  221. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  222. // jQuery needed here:
  223. var increase = $.trim($("#pourc-bet-on-lose").val("11"));
  224. // First click the updated condition
  225. $('#updated_condition').click();
  226. // Tick increase on win button
  227. // Wait 50 ms
  228. wait(50);
  229. $('#btn-bet-start-pilot-dice').click();
  230. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  231. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  232. }
  233. else if (balance >= 0.1){
  234. var amount = document.getElementById("amount").value = "0.00001";
  235. var chance = $.trim($("#editable-chance-field").val("9%"));
  236. var payout = document.getElementById('editable-payout').innerHTML = "100x";
  237. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  238. // jQuery needed here:
  239. var increase = $.trim($("#pourc-bet-on-lose").val("11"));
  240. // First click the updated condition
  241. $('#updated_condition').click();
  242. // Tick increase on win button
  243. // Wait 50 ms
  244. wait(50);
  245. $('#btn-bet-start-pilot-dice').click();
  246. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  247. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  248. }
  249. }
  250. function high() {
  251. if (balance < 0.00001)
  252. {
  253. var amount = document.getElementById("amount").value = "0.0000001";
  254. var chance = $.trim($("#editable-chance-field").val("9.90%"));
  255. var payout = document.getElementById('editable-payout').innerHTML = "49.5000";
  256. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  257. // jQuery needed here:
  258. var increase = $.trim($("#pourc-bet-on-lose").val("12"));
  259. // First click the updated condition
  260. $('#updated_condition').click();
  261. // Wait 50 ms
  262. wait(50);
  263. $('#btn-bet-start-pilot-dice').click();
  264. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  265. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  266. }
  267. else if (balance < 0.0001 && balance > 0.00001){
  268. var amount = document.getElementById("amount").value = "0.00000025";
  269. var chance = $.trim($("#editable-chance-field").val("15%"));
  270. var payout = document.getElementById('editable-payout').innerHTML = "49.5000";
  271. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  272. // jQuery needed here:
  273. var increase = $.trim($("#pourc-bet-on-lose").val("30"));
  274. // First click the updated condition
  275. $('#updated_condition').click();
  276. // Tick increase on win button
  277. // Wait 50 ms
  278. wait(50);
  279. $('#btn-bet-start-pilot-dice').click();
  280. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  281. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  282. }
  283. else if (balance < 0.001 && balance > 0.0001) {
  284. var amount = document.getElementById("amount").value = "0.00000005";
  285. var chance = $.trim($("#editable-chance-field").val("7.41%"));
  286. var payout = document.getElementById('editable-payout').innerHTML = "49.5000";
  287. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  288. // jQuery needed here:
  289. var increase = $.trim($("#pourc-bet-on-lose").val("12"));
  290. // First click the updated condition
  291. $('#updated_condition').click();
  292. // Wait 50 ms
  293. wait(50);
  294. $('#btn-bet-start-pilot-dice').click();
  295. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  296. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  297. }
  298. else if (balance < 0.01 && balance > 0.001) {
  299. var final_amount = balance > 0.001 && balance <= 0.002 ? 1 : balance > 0.002 && balance <= 0.003 ? 2 : balance > 0.003 && balance <= 0.004 ? 3 : balance > 0.004 && balance <= 0.005 ? 4 : balance > 0.005 && balance <= 0.006 ? 5 : balance > 0.006 && balance <= 0.007 ? 6 : balance > 0.007 && balance <= 0.008 ? 7 : balance > 0.008 && balance <= 0.009 ? 8 : balance > 0.009 && balance <= 0.01 ? 9 : 0;
  300. final_amount = final_amount + 1;
  301. var amount = document.getElementById("amount").value = "0.000000" + final_amount;
  302. var chance = $.trim($("#editable-chance-field").val("9.9%"));
  303. var payout = document.getElementById('editable-payout').innerHTML = "49.5000";
  304. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  305. // jQuery needed here:
  306. var increase = $.trim($("#pourc-bet-on-lose").val("12"));
  307. // First click the updated condition
  308. $('#updated_condition').click();
  309. // Wait 50 ms
  310. wait(50);
  311. $('#btn-bet-start-pilot-dice').click();
  312. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  313. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  314. }
  315. else if (balance < 0.1 && balance > 0.01) {
  316. var amount = document.getElementById("amount").value = "0.000003";
  317. var chance = $.trim($("#editable-chance-field").val("0.99%"));
  318. var payout = document.getElementById('editable-payout').innerHTML = "49.5000";
  319. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  320. // jQuery needed here:
  321. var increase = $.trim($("#pourc-bet-on-lose").val("1.3"));
  322. // First click the updated condition
  323. $('#updated_condition').click();
  324. // Wait 50 ms
  325. wait(50);
  326. $('#btn-bet-start-pilot-dice').click();
  327. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  328. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  329. }
  330. else if (balance > 0.1) {
  331. var amount = document.getElementById("amount").value = "0.000015";
  332. var chance = $.trim($("#editable-chance-field").val("5.58%"));
  333. var payout = document.getElementById('editable-payout').innerHTML = "49.5000";
  334. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  335. // jQuery needed here:
  336. var increase = $.trim($("#pourc-bet-on-lose").val("7.89"));
  337. // First click the updated condition
  338. $('#updated_condition').click();
  339. // Wait 50 ms
  340. wait(50);
  341. $('#btn-bet-start-pilot-dice').click();
  342. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  343. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  344. }
  345. var stopout = setTimeout(function(){var profit = $('#auto_stats_profit').html(); var profit = parseFloat(profit);if (profit < minus){alert("You got your profit, enjoy");kill();}}, 1);
  346. var timeout = setTimeout(function(){var profit = $('#auto_stats_profit').html(); var profit = parseFloat(profit);if (profit > stop){alert("You got your profit, enjoy");kill();}}, 1);
  347. }
  348. function low() {
  349. if (balance < 0.00001)
  350. {
  351. var amount = document.getElementById("amount").value = "0.00000005";
  352. var chance = $.trim($("#editable-chance-field").val("15%"));
  353. var payout = document.getElementById('editable-payout').innerHTML = "49.5000";
  354. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  355. // jQuery needed here:
  356. var increase = $.trim($("#pourc-bet-on-lose").val("18"));
  357. // First click the updated condition
  358. $('#updated_condition').click();
  359. // Wait 50 ms
  360. wait(50);
  361. $('#btn-bet-start-pilot-dice').click();
  362. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  363. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  364. }
  365. else if (balance < 0.0001 && balance > 0.00001){
  366. var amount = document.getElementById("amount").value = "0.00000002";
  367. var chance = $.trim($("#editable-chance-field").val("66%"));
  368. var payout = document.getElementById('editable-payout').innerHTML = "49.5000";
  369. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  370. // jQuery needed here:
  371. var increase = $.trim($("#pourc-bet-on-lose").val("660"));
  372. // First click the updated condition
  373. $('#updated_condition').click();
  374. // Wait 50 ms
  375. wait(50);
  376. $('#btn-bet-start-pilot-dice').click();
  377. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  378. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  379. }
  380. else if (balance < 0.001 && balance > 0.0001) {
  381. var amount = document.getElementById("amount").value = "0.00000005";
  382. var chance = $.trim($("#editable-chance-field").val("17%"));
  383. var payout = document.getElementById('editable-payout').innerHTML = "49.5000";
  384. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  385. // jQuery needed here:
  386. var increase = $.trim($("#pourc-bet-on-lose").val("26"));
  387. // First click the updated condition
  388. $('#updated_condition').click();
  389. // Wait 50 ms
  390. wait(50);
  391. $('#btn-bet-start-pilot-dice').click();
  392. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  393. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  394. }
  395. else if (balance < 0.01 && balance > 0.001) {
  396. var amount = document.getElementById("amount").value = "0.00000010";
  397. var chance = $.trim($("#editable-chance-field").val("10%"));
  398. var payout = document.getElementById('editable-payout').innerHTML = "49.5000";
  399. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  400. // jQuery needed here:
  401. var increase = $.trim($("#pourc-bet-on-lose").val("12"));
  402. // First click the updated condition
  403. $('#updated_condition').click();
  404. // Wait 50 ms
  405. wait(50);
  406. $('#btn-bet-start-pilot-dice').click();
  407. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  408. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  409. }
  410. else if (balance < 0.1 && balance > 0.01) {
  411. var amount = document.getElementById("amount").value = "0.00000100";
  412. var chance = $.trim($("#editable-chance-field").val("7.12%"));
  413. var payout = document.getElementById('editable-payout').innerHTML = "49.5000";
  414. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  415. // jQuery needed here:
  416. var increase = $.trim($("#pourc-bet-on-lose").val("12"));
  417. // First click the updated condition
  418. $('#updated_condition').click();
  419. // Wait 50 ms
  420. wait(50);
  421. $('#btn-bet-start-pilot-dice').click();
  422. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  423. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  424. }
  425. else if (balance > 0.1) {
  426. var amount = document.getElementById("amount").value = "0.0000";
  427. var chance = $.trim($("#editable-chance-field").val("4.95%"));
  428. var payout = document.getElementById('editable-payout').innerHTML = "49.5000";
  429. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  430. // jQuery needed here:
  431. var increase = $.trim($("#pourc-bet-on-lose").val("7.77"));
  432. // First click the updated condition
  433. $('#updated_condition').click();
  434. // Wait 50 ms
  435. wait(50);
  436. $('#btn-bet-start-pilot-dice').click();
  437. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  438. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  439. }
  440. var stopout = setTimeout(function(){var profit = $('#auto_stats_profit').html(); var profit = parseFloat(profit);if (profit < minus){alert("You got your profit, enjoy");kill();}}, 1);
  441. var timeout = setTimeout(function(){var profit = $('#auto_stats_profit').html(); var profit = parseFloat(profit);if (profit > stop){alert("You got your lose, try again:)");kill();}}, 1);
  442. }
  443. function kill(){
  444. var stopBot = $('#btn-bet-stop-pilot-dice').click();
  445. var startBot = $('#btn-bet-start-pilot-dice').click();
  446. var stopout = setTimeout(function(){var profit = $('#auto_stats_profit').html(); var profit = parseFloat(profit);if (profit < minus){alert("You got your profit, enjoy");kill();}}, 1);
  447. var timeout = setTimeout(function(){var profit = $('#auto_stats_profit').html(); var profit = parseFloat(profit);if (profit > stop){alert("You got your lose, try again:)");kill();}}, 1);
  448. }
  449. function super_power() {
  450. // Here is the new method published in version 1.4
  451. // Currently working only for 0.1 - 1 BTC
  452. // Makes about 1 BTC in 1 - 2 Minutes
  453. // 10% risk
  454. if (balance < 0.001) {alert("Your balance is to low for super power, try other method!");return false;}
  455. var super_risk = prompt("What's your super power risk?", "1 - Low (1.3%) 2 - Medium (2.5%) 3 - High (10%), 4 - Mega (15%)", '1');
  456. if (super_risk == "1") {
  457. // Super power risk is low
  458. var amount = document.getElementById("amount").value = "0.0000125";
  459. var chance = $.trim($("#editable-chance-field").val("44%"));
  460. var payout = document.getElementById('editable-payout').innerHTML = "2.400";
  461. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  462. // jQuery needed here:
  463. var increase = $.trim($("#pourc-bet-on-lose").val("86"));
  464. // First click the updated condition
  465. $('#updated_condition').click();
  466. // Wait 50 ms
  467. wait(50);
  468. $('#btn-bet-start-pilot-dice').click();
  469. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  470. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  471. }
  472. else if (super_risk == "2"){
  473. // Super power risk is medium
  474. var amount = document.getElementById("amount").value = "0.0001";
  475. var chance = $.trim($("#editable-chance-field").val("41.25%"));
  476. var payout = document.getElementById('editable-payout').innerHTML = "2.4000";
  477. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  478. // jQuery needed here:
  479. var increase = $.trim($("#pourc-bet-on-lose").val("86"));
  480. // First click the updated condition
  481. $('#updated_condition').click();
  482. // Wait 50 ms
  483. wait(50);
  484. $('#btn-bet-start-pilot-dice').click();
  485. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  486. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  487. }
  488. else if (super_risk == "3"){
  489. var amount = document.getElementById("amount").value = "0.001";
  490. var chance = $.trim($("#editable-chance-field").val("41.25%"));
  491. var payout = document.getElementById('editable-payout').innerHTML = "2.4000";
  492. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  493. // jQuery needed here:
  494. var increase = $.trim($("#pourc-bet-on-lose").val("86"));
  495. // First click the updated condition
  496. $('#updated_condition').click();
  497. // Wait 50 ms
  498. wait(50);
  499. $('#btn-bet-start-pilot-dice').click();
  500. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  501. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  502. }
  503. else if (super_risk == "4"){
  504. var amount = document.getElementById("amount").value = "0.004";
  505. var chance = $.trim($("#editable-chance-field").val("41.25%"));
  506. var payout = document.getElementById('editable-payout').innerHTML = "2.4000";
  507. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  508. // jQuery needed here:
  509. var increase = $.trim($("#pourc-bet-on-lose").val("86"));
  510. // First click the updated condition
  511. $('#updated_condition').click();
  512. // Wait 50 ms
  513. wait(50);
  514. $('#btn-bet-start-pilot-dice').click();
  515. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  516. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  517. }
  518. else {
  519. // Super power risk is mega
  520. var amount = document.getElementById("amount").value = "0.004";
  521. var chance = $.trim($("#editable-chance-field").val("41.25%"));
  522. var payout = document.getElementById('editable-payout').innerHTML = "2.4000";
  523. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  524. // jQuery needed here:
  525. var increase = $.trim($("#pourc-bet-on-lose").val("86"));
  526. // First click the updated condition
  527. $('#updated_condition').click();
  528. // Wait 50 ms
  529. wait(50);
  530. $('#btn-bet-start-pilot-dice').click();
  531. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  532. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  533. }
  534. }
  535. function automode() {
  536. // Here is the method published in version 1.2
  537. var risk1 = prompt("What's your automode risk? 1 - Low, 2 - Medium, 3 - High", '1');
  538. if (risk1 != "1" && risk1 != "2" && risk1 != "3"){
  539. alert("Invalid automode risk, aborting");
  540. return false;
  541. }
  542. if (risk1 == "1")automode_low();
  543. else if (risk1 == "2")automode_medium();
  544. else automode_high();
  545. }
  546. function switch_mode() {
  547. var method_1 = Math.random() * 5;
  548. var method = Math.round(method_1);
  549. var current = "";
  550. switch (method) {
  551. case 1:
  552. current = "4.95%";
  553. break;
  554. case 2:
  555. current = "5%";
  556. break;
  557. case 3:
  558. current = "7.14%";
  559. break;
  560. case 4:
  561. current = "5.58%";
  562. break;
  563. case 5:
  564. current = "41.25%";
  565. break;
  566. default:
  567. current = "5%";
  568. break;
  569. }
  570. var amount = document.getElementById("amount").value = balance / 10000;
  571. var chance = $.trim($("#editable-chance-field").val(current));
  572. //var payout = document.getElementById('editable-payout').innerHTML = "49.5000";
  573. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  574. // jQuery needed here:
  575. var current_increase = "";
  576. switch (current) {
  577. case "4.95%":
  578. current_increase = "7.77";
  579. break;
  580. case "5%":
  581. current_increase = "6.66";
  582. break;
  583. case "7.14%":
  584. current_increase = "12";
  585. break;
  586. case "5.58%":
  587. current_increase = "7.89";
  588. break;
  589. case "41.25%":
  590. current_increase = "70";
  591. break;
  592. default:
  593. current_increase = "6.66";
  594. break;
  595. }
  596. var increase = $.trim($("#pourc-bet-on-lose").val(current_increase));
  597. // First click the updated condition
  598. $('#updated_condition').click();
  599. $('#btn-bet-start-pilot-dice').click();
  600. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  601. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  602. }
  603. function automode_low() {
  604. var amount = document.getElementById("amount").value = "0.00000001";
  605. var chance = $.trim($("#editable-chance-field").val("49.5%"));
  606. //var payout = document.getElementById('editable-payout').innerHTML = "49.5000";
  607. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  608. // jQuery needed here:
  609. var increase = $.trim($("#pourc-bet-on-lose").val("100"));
  610. // First click the updated condition
  611. $('#updated_condition').click();
  612. $('#btn-bet-start-pilot-dice').click();
  613. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  614. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  615. }
  616. function automode_high() {
  617. var amount = document.getElementById("amount").value = "0.00000001";
  618. var chance = $.trim($("#editable-chance-field").val("49.5%"));
  619. //var payout = document.getElementById('editable-payout').innerHTML = "49.5000";
  620. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  621. // jQuery needed here:
  622. var increase = $.trim($("#pourc-bet-on-lose").val("300"));
  623. // First click the updated condition
  624. $('#updated_condition').click();
  625. $('#btn-bet-start-pilot-dice').click();
  626. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  627. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  628. }
  629. function automode_medium() {
  630. var amount = document.getElementById("amount").value = "0.00000001";
  631. var chance = $.trim($("#editable-chance-field").val("49.5%"));
  632. //var payout = document.getElementById('editable-payout').innerHTML = "49.5000";
  633. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  634. // jQuery needed here:
  635. var increase = $.trim($("#pourc-bet-on-lose").val("200"));
  636. // First click the updated condition
  637. $('#updated_condition').click();
  638. $('#btn-bet-start-pilot-dice').click();
  639. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  640. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  641. }
  642. function doubleamount() {
  643. var attr = $(this).attr("rel");
  644. var amount = parseFloat($("#amount" + attr).val());
  645. amount = round_float(amount * 2, devise_decimal);
  646. $("#amount" + attr).val(amount);
  647. window['var_amount' + attr] = amount;
  648. calculate_profit();
  649. }
  650. })();
  651. // This is the modified bitsler play function
  652. var stopAmount = prompt("Type in the amount after you want to stop", '0.0001');
  653. var again = prompt("Type in 1 if you want to start the bot automatically after getting the profit and 2 for no", '1');
  654. var stopAmountLos = prompt("Type in the amount of lose after u want to stop", '0.5');
  655. var amount = $("#amount").val();
  656. amount = round_float(amount, devise_decimal);
  657. var balance = parseFloat($("#balance-"+devise).val());
  658. console.log(balance);
  659. var chance_1 = parseFloat($.trim($("#editable-chance-field").val()));
  660. var how_much_loses = balance / amount;
  661. console.log(how_much_loses);
  662. var chance = (chance_1*0.01-1)*(-1);
  663. console.log(chance);
  664. var stopAmountLose = parseFloat(stopAmountLos);
  665. stopAmountLose = stopAmountLose * -1;
  666. var lose_chance = Math.pow(chance, how_much_loses);
  667. if (lose_chance == 0){alert("The chance of losing is under: 0.0000001");}
  668. else {alert("The chance of losing is: " + lose_chance * 100 + "%");}
  669. console.log(stopAmountLose);
  670. if (isNaN(stopAmount) || stopAmount == null){alert("Invalid Profit after to Stop, aborting");}
  671. function play() {
  672. if (game_in_progress == true) {
  673. $("#btn-bet-dice, #btn-bet-start-pilot-dice, #btn-bet-start-fast-dice").button("reset");
  674. return false;
  675. }
  676. game_in_progress = true;
  677. if (autobet_mode == false) {
  678. var amount = $("#amount").val();
  679. var condition = $("#condition-input").val();
  680. var game = $("#game-input").val();
  681. }
  682. else {
  683. var amount = auto_amount;
  684. var condition = auto_condition;
  685. var game = auto_game;
  686. }
  687. amount = round_float(amount, devise_decimal);
  688. var profit = parseFloat($("#profit").val());
  689. var balance = parseFloat($("#balance-"+devise).val());
  690. var error = false;
  691. var error_value = "";
  692. var error_title = "";
  693. var error_info = "";
  694. if (auto_stats_profit > stopAmount) {
  695. if (again == "2"){
  696. error_title = "Got your profit";
  697. error_info = "You got the profit you want!";
  698. error_value = "Play again or have a nice day (clasher.7526@gmail.com) Christian";
  699. error = true;}
  700. else {
  701. roll_by_condition();
  702. $('#btn-bet-stop-pilot-dice').click();
  703. $('#btn-bet-start-pilot-dice').click();
  704. }
  705. }
  706. else if (auto_stats_profit < stopAmountLose) {
  707. error_title = "Got your lose";
  708. error_info = "Maximum bet: "+number_format(balance, devise_decimal);
  709. error_value = "You got the lose";
  710. error = true;
  711. }
  712. else if (amount > bet_max) {
  713. error_title = "Bet amount";
  714. error_info = "Maximum bet: "+number_format(bet_max, devise_decimal);
  715. error_value = "Bet amount - Maximum bet: "+number_format(bet_max, devise_decimal);
  716. error = true;
  717. }
  718. else if (amount < bet_min) {
  719. error_title = "Bet amount";
  720. error_info = "Minimum bet: "+number_format(bet_min, devise_decimal);
  721. error_value = "Bet amount - Minimum bet: "+number_format(bet_min, devise_decimal);
  722. error = true;
  723. }
  724. if (error == true) {
  725. game_in_progress = false;
  726. $("#btn-bet-dice, #btn-bet-start-pilot-dice, #btn-bet-start-fast-dice").button("reset");
  727. if (autobet_mode == true) {
  728. if (number_bet_done >= 1) {
  729. $("#modal-stop-autobet-numbers").html(number_bet_done);
  730. $("#modal-stop-autobet-value").html(error_value);
  731. $("#modal-stop-autobet-reason").modal("show");
  732. }
  733. else {
  734. showErrorNotification(error_title, error_info);
  735. }
  736. stop_pilot_mode();
  737. }
  738. else {
  739. showErrorNotification(error_title, error_info);
  740. }
  741. return;
  742. }
  743. $.ajax({
  744. type: "POST",
  745. url: server_front_name+"/api/bet",
  746. data: {
  747. access_token : access_token,
  748. username : user_username,
  749. type : "dice",
  750. amount : amount,
  751. condition : condition,
  752. game : game,
  753. devise : devise
  754. },
  755. success: function(text) {
  756. var val = JSON.parse(text);
  757. if (val.return.success == 'true') {
  758. bet_nb_errors = 0;
  759. var username = val.return.username;
  760. var id = val.return.id;
  761. var type = val.return.type;
  762. var devise = val.return.devise;
  763. var ts = val.return.ts;
  764. var time = val.return.time;
  765. var winning_chance = val.return.winning_chance;
  766. var roll_number = val.return.roll_number;
  767. var amount_return = val.return.amount_return;
  768. var new_balance = val.return.new_balance;
  769. var show = val.return.show;
  770. var amount = val.return.amount;
  771. var condition = val.return.condition;
  772. var game = val.return.game;
  773. var payout = val.return.payout;
  774. $("#won-bet span").html(amount_return);
  775. $("#won-bet span").removeClass("text-danger text-success");
  776. if (amount_return >= 0) {
  777. $("#won-bet span").addClass("text-success");
  778. $("#won-bet span").html("+"+number_format(round_float(amount_return, 8), 8));
  779. }
  780. else {
  781. $("#won-bet span").addClass("text-danger");
  782. $("#won-bet span").html(number_format(round_float(amount_return, 8), 8));
  783. }
  784. show_result_bet();
  785. $("#balance-"+devise).val(round_float(new_balance, 12));
  786. if (amount_return >= 0)
  787. $(".balance-"+devise+"-html").addClass("result-bet-win");
  788. else
  789. $(".balance-"+devise+"-html").addClass("result-bet-lose");
  790. $(".balance-"+devise+"-html").html(round_float(new_balance, 8));
  791. if (amount_return >= 0)
  792. setTimeout(function() { $(".balance-"+devise+"-html").removeClass("result-bet-win"); }, 350);
  793. else
  794. setTimeout(function() { $(".balance-"+devise+"-html").removeClass("result-bet-lose"); }, 350);
  795. addBetHistory("my-bets", type, id, username, time, amount, "btc", winning_chance, roll_number, amount_return, condition, game, payout);
  796. var notifications = val.return.notifications;
  797. for (var prop in notifications) {
  798. if (notifications[prop].name == "rcvJackpotDice")
  799. rcvJackpotDice(notifications[prop]);
  800. else {
  801. rcvnotificationbet(notifications[prop]);
  802. }
  803. }
  804. var time_delay = getTimeDelay(amount, devise, "dice");
  805. if (autobet_mode == false) {
  806. setTimeout(function() {
  807. $("#btn-bet-dice, #btn-bet-start-pilot-dice, #btn-bet-start-fast-dice").button("reset");
  808. }, time_delay);
  809. }
  810. else {
  811. number_bet_done++;
  812. if (unlimited_bet == false) {
  813. number_rolls--;
  814. $("#limit-rolls-input").val(number_rolls);
  815. var pourcBarre = ((number_rolls_total-number_rolls)/number_rolls_total)*100;
  816. $("#progress-bar-pilot-mode div").css("width", pourcBarre+"%");
  817. }
  818. if (amount_return >= 0) {
  819. auto_stats_won++;
  820. }
  821. else {
  822. auto_stats_lost++;
  823. }
  824. auto_stats_lucky = ((((parseInt(auto_stats_won)/parseInt(number_bet_done))*100)/parseFloat(winning_chance))*100).toFixed(2);
  825. auto_stats_wagered = parseFloat(auto_stats_wagered)+parseFloat(amount);
  826. auto_stats_profit = parseFloat(auto_stats_profit)+parseFloat(amount_return);
  827. if (on_win == "id-bet-win" && amount_return >= 0) {
  828. auto_amount = parseFloat(auto_amount)+parseFloat(auto_amount*(pourc_on_win/100));
  829. }
  830. else if (amount_return >= 0) {
  831. auto_amount = auto_amount_var;
  832. }
  833. if (on_lose == "id-bet-lose" && amount_return < 0) {
  834. auto_amount = parseFloat(auto_amount)+parseFloat(auto_amount*(pourc_on_lose/100));
  835. }
  836. else if (amount_return < 0) {
  837. auto_amount = auto_amount_var;
  838. }
  839. var tmp = Math.pow(10, 8);
  840. auto_amount = Math.round(auto_amount*tmp)/tmp;
  841. update_stats_auto();
  842. if ((number_bet_done < number_rolls_total) || unlimited_bet == true) {
  843. var speed_bet_val = $("#speed-bet").val();
  844. var time_by_bet = parseInt(time_delay/50);
  845. if (autobet_stop == false) {
  846. setTimeout(function() { play(); }, time_by_bet);
  847. }
  848. else {
  849. stop_pilot_mode();
  850. }
  851. }
  852. else {
  853. stop_pilot_mode();
  854. }
  855. }
  856. game_in_progress = false;
  857. if (val.return.event == true) {
  858. socket.emit("event", {});
  859. }
  860. }
  861. else {
  862. game_in_progress = false;
  863. if (val.return.type != "abort") {
  864. if (autobet_mode == false) {
  865. showErrorNotification(val.return.value, val.return.info);
  866. $("#btn-bet-dice, #btn-bet-start-pilot-dice, #btn-bet-start-fast-dice").button("reset");
  867. }
  868. else {
  869. if (number_bet_done >= 1) {
  870. $("#modal-stop-autobet-numbers").html(number_bet_done);
  871. $("#modal-stop-autobet-value").html(val.return.value);
  872. $("#modal-stop-autobet-reason").modal("show");
  873. }
  874. else {
  875. showErrorNotification(val.return.value, val.return.info);
  876. }
  877. stop_pilot_mode();
  878. }
  879. }
  880. else {
  881. if (bet_nb_errors >= 2) {
  882. bet_nb_errors = 0;
  883. if (autobet_mode == false) {
  884. showErrorNotification(val.return.value, val.return.info);
  885. $("#btn-bet-dice, #btn-bet-start-pilot-dice, #btn-bet-start-fast-dice").button("reset");
  886. }
  887. else {
  888. if (number_bet_done >= 1) {
  889. $("#modal-stop-autobet-numbers").html(number_bet_done);
  890. $("#modal-stop-autobet-value").html(val.return.value);
  891. $("#modal-stop-autobet-reason").modal("show");
  892. }
  893. else {
  894. showErrorNotification(val.return.value, val.return.info);
  895. }
  896. stop_pilot_mode();
  897. }
  898. }
  899. else {
  900. bet_nb_errors++;
  901. setTimeout(function() { play(); }, 1000);
  902. }
  903. }
  904. }
  905. },
  906. error: function (xhr, ajaxOptions, thrownError) {game_in_progress = false;setTimeout(function() { play(); }, 1000);},
  907. timeout: function (xhr, ajaxOptions, thrownError) {game_in_progress = false;setTimeout(function() { play(); }, 1000);},
  908. abort: function (xhr, ajaxOptions, thrownError) {game_in_progress = false;setTimeout(function() { play(); }, 1000);}
  909. });
  910. }

comments powered by Disqus