rasyaparsaoran

Bitsler scrypt 2

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