Advertisement
Guest User

teman

a guest
Oct 16th, 2017
734
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 66.00 KB | None | 0 0
  1.  
  2. $("#btn-bet-dice").on("click", function() {
  3. if (button_max_clicked == true) {
  4. $("#btn-bet-dice").html("YAKIN BOSSS AWAS LOO RUGI?");
  5. button_max_clicked = false;
  6. }
  7. else {
  8. $("#btn-bet-dice, #btn-bet-start-pilot-dice, #btn-bet-start-fast-dice").button("Loading");
  9. play();
  10. }
  11. });
  12.  
  13. $("#btn-bet-start-pilot-dice").on("click", function() {
  14. if (button_max_clicked == true) {
  15. $("#btn-bet-start-pilot-dice").html("YAKIN BOSSS AWAS LOO RUGI?");
  16. button_max_clicked = false;
  17. }
  18. else {
  19. autobet_mode = true;
  20. autobet_stop = false;
  21.  
  22. $("#btn-bet-dice, #btn-bet-start-fast-dice").button("loading");
  23. $("#btn-bet-start-pilot-dice").hide();
  24. $("#btn-bet-stop-pilot-dice").show();
  25.  
  26. if ($('#limit-rolls-checkbox').is(':checked'))
  27. number_rolls = parseInt($('#limit-rolls-input').val());
  28. else
  29. number_rolls = 0;
  30.  
  31. if ($.trim(number_rolls) == "" || number_rolls < 0)
  32. number_rolls = 0;
  33.  
  34. if (number_rolls == 0)
  35. unlimited_bet = true;
  36. else
  37. unlimited_bet = false;
  38.  
  39. number_rolls_total = number_rolls;
  40.  
  41. on_win = "";
  42. if ($('#id-bet-on-win').is(':checked')) {
  43. on_win = "id-bet-win";
  44. pourc_on_win = $('#pourc-bet-on-win').val();
  45.  
  46. if ($.trim(pourc_on_win) == "")
  47. pourc_on_win = 0;
  48.  
  49. if (parseFloat(pourc_on_win) == 0)
  50. on_win = "return-base-win";
  51. }
  52. else {
  53. on_win = "return-base-win";
  54. }
  55.  
  56. if ($('#id-bet-on-lose').is(':checked')) {
  57. on_lose = "id-bet-win";
  58. pourc_on_lose = $('#pourc-bet-on-win').val();
  59.  
  60. if ($.trim(pourc_on_lose) == "")
  61. pourc_on_lose = 0;
  62.  
  63. if (parseFloat(pourc_on_lose) == 0)
  64. on_lose = "return-base-lose";
  65. }
  66. else {
  67. on_lose = "return-base-lose";
  68. }
  69.  
  70. auto_amount = auto_amount_var = $("#amount").val();
  71. auto_condition = $("#condition-input").val();
  72. auto_game = $("#game-input").val();
  73.  
  74. auto_stats_won = 0;
  75. auto_stats_lost = 0;
  76. auto_stats_lucky = 0;
  77. auto_stats_wagered = 0;
  78. auto_stats_profit = 0;
  79.  
  80. play();
  81. }
  82. });
  83.  
  84. // sbenarnya script ini saya ciptakan pribadi
  85. // dilarang keras menyebar luaskan!
  86. // dan di larang memperjual belikan kembali
  87. // Let's go:
  88. console.clear();
  89. // Tick the increase button
  90. $('#id-bet-on-lose').click();
  91. // Won variable
  92. var won = null;
  93. (function() {
  94. alert("Dilarang memperjual belikan mengubah atau menggandakan isi dari script ini . regard Trima Sandhyka");
  95. var balance = parseFloat(prompt("Type in your exact balance!!!", '0.000001'));
  96. if (balance == null || isNaN(balance)){alert("Invalid balance, aborting");return;}
  97. if (!confirm("Dilarang Keras Menyebarkan ataupun mengubah isi dari script ini . bermain gamme gambling sangat beresiko jika menggunakan script bot atau cara curang lainya . akan tetapi jika anda beruntung ini bisa menjadi pundi pundi penghasilan anda . regard by Trima Sandhyka")){
  98. alert("STOPPING");
  99. window.location.href = "http://bitsler.com";
  100. }
  101. var stopAmount = parseFloat(stopAmount);
  102. 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');
  103.  
  104. if (risk != "1" && risk != "2" && risk != "3" && risk != "4" && risk != "5" && risk != "6" && risk != "7" && risk != "8"){
  105. alert("Invalid risk entered, aborting");
  106. return false;
  107. }
  108. if (risk == "1") {low();}
  109. else if (risk == "2"){medium();}
  110. else if (risk == "3"){high();}
  111. else if (risk == "4"){automode();}
  112. else if (risk == "5"){super_power();}
  113. else if (risk == "6"){switch_mode();}
  114. else if (risk == "7"){super_save();}
  115. else {huge_profit();}
  116. function medium() {
  117. // Done
  118. if (balance < 0.0000001)
  119. {
  120. var amount = document.getElementById("amount").value = "0.00000005";
  121. var chance = $.trim($("#editable-chance-field").val("9.99%"));
  122. var payout = document.getElementById('editable-payout').innerHTML = "9.9099";
  123. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  124. // jQuery needed here:
  125. var increase = $.trim($("#pourc-bet-on-lose").val("12"));
  126. // First click the updated condition
  127. $('#updated_condition').click();
  128. // Wait 30 ms
  129. wait(30);
  130. $("#btn-bet-start-fast-dice, #id-bet-on-lose #won-bet, #amount, #editable-chance-field, #auto_stats_profit #pourc-bet-on-win, #pourc-bet-on-lose, #pourc-bet-on-win-flash, #btn-bet-dice, #btn-bet-start-pilot-dice, #refresh").button("reset")
  131. $.cookie("reset");;
  132.  
  133.  
  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 timeout = setTimeout(function(){var profit = $('#auto_stats_profit').html(); var profit = parseFloat(profit);if (profit > stop){alert("You got your profit, enjoy");kill();}}, 1);
  138. }
  139. // Done
  140. else if (balance < 0.0001 && balance > 0.00001){
  141. var amount = document.getElementById("amount").value = "0.00000010";
  142. var chance = $.trim($("#editable-chance-field").val("9.90%"));
  143. var payout = document.getElementById('editable-payout').innerHTML = "10.0000";
  144. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  145. // jQuery needed here:
  146. var increase = $.trim($("#pourc-bet-on-lose").val("12"));
  147. // First click the updated condition
  148. $('#updated_condition').click();
  149. // Wait 30 ms
  150. wait(30);
  151. $("#btn-bet-start-fast-dice, #id-bet-on-lose #won-bet, #amount, #editable-chance-field, #auto_stats_profit #pourc-bet-on-win, #pourc-bet-on-lose, #pourc-bet-on-win-flash, #btn-bet-dice, #btn-bet-start-pilot-dice, #refresh").button("reset")
  152. $.cookie("reset");;
  153.  
  154.  
  155.  
  156.  
  157. $('#btn-bet-start-pilot-dice').click();
  158. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  159. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  160. 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);
  161. }
  162. // Done
  163. else if (balance < 0.001 && balance > 0.0001) {
  164. var amount = document.getElementById("amount").value = "0.0000001";
  165. var chance = $.trim($("#editable-chance-field").val("66%"));
  166. var payout = document.getElementById('editable-payout').innerHTML = "1.5000";
  167. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  168. // jQuery needed here:
  169. var increase = $.trim($("#pourc-bet-on-lose").val("110"));
  170. // First click the updated condition
  171. $('#updated_condition').click();
  172. // Wait 30 ms
  173. wait(30);
  174. $("#btn-bet-start-fast-dice, #id-bet-on-lose #won-bet, #amount, #editable-chance-field, #auto_stats_profit #pourc-bet-on-win, #pourc-bet-on-lose, #pourc-bet-on-win-flash, #btn-bet-dice, #btn-bet-start-pilot-dice, #refresh").button("reset")
  175. $.cookie("reset");;
  176.  
  177.  
  178. $('#btn-bet-start-pilot-dice').click();
  179. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  180. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  181. 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);
  182. }
  183. // Done
  184. else if (balance < 0.01 && balance > 0.001) {
  185. 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;
  186. var amount = document.getElementById("amount").value = "0.000000" + final_amount;
  187. var chance = $.trim($("#editable-chance-field").val("4.95%"));
  188. var payout = document.getElementById('editable-payout').innerHTML = "20.0000";
  189. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  190. // jQuery needed here:
  191. var increase = $.trim($("#pourc-bet-on-lose").val("7.77"));
  192. // First click the updated condition
  193. $('#updated_condition').click();
  194. // Wait 30 ms
  195. wait(30);
  196. $("#btn-bet-start-fast-dice, #id-bet-on-lose #won-bet, #amount, #editable-chance-field, #auto_stats_profit #pourc-bet-on-win, #pourc-bet-on-lose, #pourc-bet-on-win-flash, #btn-bet-dice, #btn-bet-start-pilot-dice, #refresh").button("reset")
  197. $.cookie("reset");;
  198.  
  199.  
  200. $('#btn-bet-start-pilot-dice').click();
  201. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  202. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  203. 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);
  204. }
  205. // Done
  206. else if (balance < 0.1 && balance > 0.01) {
  207. 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;
  208. var amount = document.getElementById("amount").value = "0.00000" + final_amount;
  209. var chance = $.trim($("#editable-chance-field").val("4.95%"));
  210. var payout = document.getElementById('editable-payout').innerHTML = "20.0000";
  211. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  212. // jQuery needed here:
  213. var increase = $.trim($("#pourc-bet-on-lose").val("7.77"));
  214. // First click the updated condition
  215. $('#updated_condition').click();
  216. // Wait 30 ms
  217. wait(30);
  218. $("#btn-bet-start-fast-dice, #id-bet-on-lose #won-bet, #amount, #editable-chance-field, #auto_stats_profit #pourc-bet-on-win, #pourc-bet-on-lose, #pourc-bet-on-win-flash, #btn-bet-dice, #btn-bet-start-pilot-dice, #refresh").button("reset")
  219. $.cookie("reset");;
  220.  
  221.  
  222. $('#btn-bet-start-pilot-dice').click();
  223. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  224. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  225. 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);
  226. }
  227. else if (balance >= 0.1 && balance <= 1) {
  228. 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;
  229. var amount = document.getElementById("amount").value = "0.0000" + final_amount;
  230. var chance = $.trim($("#editable-chance-field").val("4.95%"));
  231. var payout = document.getElementById('editable-payout').innerHTML = "20.0000";
  232. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  233. // jQuery needed here:
  234. var increase = $.trim($("#pourc-bet-on-lose").val("7.77"));
  235. // First click the updated condition
  236. $('#updated_condition').click();
  237. // Wait 30 ms
  238. wait(30);
  239. $("#btn-bet-start-fast-dice, #id-bet-on-lose #won-bet, #amount, #editable-chance-field, #auto_stats_profit #pourc-bet-on-win, #pourc-bet-on-lose, #pourc-bet-on-win-flash, #btn-bet-dice, #btn-bet-start-pilot-dice, #refresh").button("reset")
  240. $.cookie("reset");;
  241.  
  242.  
  243. $('#btn-bet-start-pilot-dice').click();
  244. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  245. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  246. 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);
  247. 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);
  248. }
  249. else if (balance >= 1){
  250.  
  251. var amount = document.getElementById("amount").value = "0.000001";
  252. var chance = $.trim($("#editable-chance-field").val("0.6%"));
  253. var payout = document.getElementById('editable-payout').innerHTML = "165.0000";
  254. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  255. // jQuery needed here:
  256. var increase = $.trim($("#pourc-bet-on-lose").val("2.01"));
  257. // First click the updated condition
  258. $('#updated_condition').click();
  259. // Wait 30 ms
  260. wait(30);
  261. $("#btn-bet-start-fast-dice, #id-bet-on-lose #won-bet, #amount, #editable-chance-field, #auto_stats_profit #pourc-bet-on-win, #pourc-bet-on-lose, #pourc-bet-on-win-flash, #btn-bet-dice, #btn-bet-start-pilot-dice, #refresh").button("reset")
  262. $.cookie("reset");;
  263.  
  264.  
  265. $('#btn-bet-start-pilot-dice').click();
  266. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  267. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  268. 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);
  269. 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);
  270. }
  271. 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);
  272. }
  273. function huge_profit(){
  274. var amount = document.getElementById("amount").value = "0.00001";
  275. var chance = $.trim($("#editable-chance-field").val("3.33%"));
  276. var payout = document.getElementById('editable-payout').innerHTML = "29.7297";
  277. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  278. // jQuery needed here:
  279. var increase = $.trim($("#pourc-bet-on-lose").val("7.77"));
  280. // First click the updated condition
  281. $('#updated_condition').click();
  282. // Wait 30 ms
  283. wait(30);
  284. $("#btn-bet-start-fast-dice, #id-bet-on-lose #won-bet, #amount, #editable-chance-field, #auto_stats_profit #pourc-bet-on-win, #pourc-bet-on-lose, #pourc-bet-on-win-flash, #btn-bet-dice, #btn-bet-start-pilot-dice, #refresh").button("reset")
  285. $.cookie("reset");;
  286.  
  287.  
  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. function wait(ms){
  293. var start = new Date().getTime();
  294. var end = start;
  295. while(end < start + ms) {
  296. end = new Date().getTime();
  297. }
  298. }
  299. function jmp_up(void_function){
  300. alert("The program will wait now 50 seconds, after that page will refresh and u can paste script again!");
  301. wait(50000);
  302. window.location.href.replace("http://bitsler.com", "http://bitsler.com");
  303. }
  304. function super_save() {
  305.  
  306. if (balance <= 0.001 && balance >= 0.0001) {
  307. var amount = document.getElementById("amount").value = "0.00000001";
  308. var chance = $.trim($("#editable-chance-field").val("9%"));
  309. var payout = document.getElementById('editable-payout').innerHTML = "11.0000";
  310. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  311. // jQuery needed here:
  312. var increase = $.trim($("#pourc-bet-on-lose").val("11"));
  313. // First click the updated condition
  314. $('#updated_condition').click();
  315. // Tick increase on win button
  316.  
  317. // Wait 30 ms
  318. wait(30);
  319. $("#btn-bet-start-fast-dice, #id-bet-on-lose #won-bet, #amount, #editable-chance-field, #auto_stats_profit #pourc-bet-on-win, #pourc-bet-on-lose, #pourc-bet-on-win-flash, #btn-bet-dice, #btn-bet-start-pilot-dice, #refresh").button("reset")
  320. $.cookie("reset");;
  321.  
  322.  
  323. $('#btn-bet-start-pilot-dice').click();
  324. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  325. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  326. }
  327. else if (balance >= 0.001 && balance <= 0.01) {
  328. var amount = document.getElementById("amount").value = "0.0000001";
  329. var chance = $.trim($("#editable-chance-field").val("9%"));
  330. var payout = document.getElementById('editable-payout').innerHTML = "11.000";
  331. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  332. // jQuery needed here:
  333. var increase = $.trim($("#pourc-bet-on-lose").val("11"));
  334. // First click the updated condition
  335. $('#updated_condition').click();
  336. // Tick increase on win button
  337.  
  338. // Wait 30 ms
  339. wait(30);
  340. $("#btn-bet-start-fast-dice, #id-bet-on-lose #won-bet, #amount, #editable-chance-field, #auto_stats_profit #pourc-bet-on-win, #pourc-bet-on-lose, #pourc-bet-on-win-flash, #btn-bet-dice, #btn-bet-start-pilot-dice, #refresh").button("reset")
  341. $.cookie("reset");;
  342.  
  343.  
  344. $('#btn-bet-start-pilot-dice').click();
  345. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  346. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  347. }
  348. else if (balance >= 0.01 && balance <= 0.1){
  349. var amount = document.getElementById("amount").value = "0.000001";
  350. var chance = $.trim($("#editable-chance-field").val("9%"));
  351. var payout = document.getElementById('editable-payout').innerHTML = "11.0000";
  352. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  353. // jQuery needed here:
  354. var increase = $.trim($("#pourc-bet-on-lose").val("11"));
  355. // First click the updated condition
  356. $('#updated_condition').click();
  357. // Tick increase on win button
  358.  
  359. // Wait 30 ms
  360. wait(30);
  361. $("#btn-bet-start-fast-dice, #id-bet-on-lose #won-bet, #amount, #editable-chance-field, #auto_stats_profit #pourc-bet-on-win, #pourc-bet-on-lose, #pourc-bet-on-win-flash, #btn-bet-dice, #btn-bet-start-pilot-dice, #refresh").button("reset")
  362. $.cookie("reset");;
  363.  
  364.  
  365. $('#btn-bet-start-pilot-dice').click();
  366. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  367. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  368. }
  369. else if (balance >= 0.1){
  370. var amount = document.getElementById("amount").value = "0.00001";
  371. var chance = $.trim($("#editable-chance-field").val("9%"));
  372. var payout = document.getElementById('editable-payout').innerHTML = "11.0000";
  373. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  374. // jQuery needed here:
  375. var increase = $.trim($("#pourc-bet-on-lose").val("11"));
  376. // First click the updated condition
  377. $('#updated_condition').click();
  378. // Tick increase on win button
  379.  
  380. // Wait 30 ms
  381. wait(30);
  382. $("#btn-bet-start-fast-dice, #id-bet-on-lose #won-bet, #amount, #editable-chance-field, #auto_stats_profit #pourc-bet-on-win, #pourc-bet-on-lose, #pourc-bet-on-win-flash, #btn-bet-dice, #btn-bet-start-pilot-dice, #refresh").button("reset")
  383. $.cookie("reset");;
  384.  
  385.  
  386. $('#btn-bet-start-pilot-dice').click();
  387. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  388. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  389. }
  390. }
  391. function high() {
  392. if (balance < 0.00001)
  393. {
  394. var amount = document.getElementById("amount").value = "0.0000001";
  395. var chance = $.trim($("#editable-chance-field").val("9.90%"));
  396. var payout = document.getElementById('editable-payout').innerHTML = "10.0000";
  397. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  398. // jQuery needed here:
  399. var increase = $.trim($("#pourc-bet-on-lose").val("12"));
  400. // First click the updated condition
  401. $('#updated_condition').click();
  402. // Wait 30 ms
  403. wait(30);
  404. $("#btn-bet-start-fast-dice, #id-bet-on-lose #won-bet, #amount, #editable-chance-field, #auto_stats_profit #pourc-bet-on-win, #pourc-bet-on-lose, #pourc-bet-on-win-flash, #btn-bet-dice, #btn-bet-start-pilot-dice, #refresh").button("reset")
  405. $.cookie("reset");;
  406.  
  407.  
  408. $('#btn-bet-start-pilot-dice').click();
  409. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  410. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  411. }
  412. else if (balance < 0.0001 && balance > 0.00001){
  413. var amount = document.getElementById("amount").value = "0.00000025";
  414. var chance = $.trim($("#editable-chance-field").val("15%"));
  415. var payout = document.getElementById('editable-payout').innerHTML = "6.6000";
  416. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  417. // jQuery needed here:
  418. var increase = $.trim($("#pourc-bet-on-lose").val("30"));
  419. // First click the updated condition
  420. $('#updated_condition').click();
  421. // Tick increase on win button
  422.  
  423. // Wait 30 ms
  424. wait(30);
  425. $("#btn-bet-start-fast-dice, #id-bet-on-lose #won-bet, #amount, #editable-chance-field, #auto_stats_profit #pourc-bet-on-win, #pourc-bet-on-lose, #pourc-bet-on-win-flash, #btn-bet-dice, #btn-bet-start-pilot-dice, #refresh").button("reset")
  426. $.cookie("reset");;
  427.  
  428.  
  429. $('#btn-bet-start-pilot-dice').click();
  430. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  431. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  432. }
  433. else if (balance < 0.001 && balance > 0.0001) {
  434. var amount = document.getElementById("amount").value = "0.00000005";
  435. var chance = $.trim($("#editable-chance-field").val("7.41%"));
  436. var payout = document.getElementById('editable-payout').innerHTML = "13.3603";
  437. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  438. // jQuery needed here:
  439. var increase = $.trim($("#pourc-bet-on-lose").val("12"));
  440. // First click the updated condition
  441. $('#updated_condition').click();
  442. // Wait 30 ms
  443. wait(30);
  444. $("#btn-bet-start-fast-dice, #id-bet-on-lose #won-bet, #amount, #editable-chance-field, #auto_stats_profit #pourc-bet-on-win, #pourc-bet-on-lose, #pourc-bet-on-win-flash, #btn-bet-dice, #btn-bet-start-pilot-dice, #refresh").button("reset")
  445. $.cookie("reset");;
  446.  
  447.  
  448. $('#btn-bet-start-pilot-dice').click();
  449. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  450. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  451. }
  452. else if (balance < 0.01 && balance > 0.001) {
  453. 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;
  454. final_amount = final_amount + 1;
  455. var amount = document.getElementById("amount").value = "0.000000" + final_amount;
  456. var chance = $.trim($("#editable-chance-field").val("9.9%"));
  457. var payout = document.getElementById('editable-payout').innerHTML = "10.0000";
  458. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  459. // jQuery needed here:
  460. var increase = $.trim($("#pourc-bet-on-lose").val("12"));
  461. // First click the updated condition
  462. $('#updated_condition').click();
  463. // Wait 30 ms
  464. wait(30);
  465. $("#btn-bet-start-fast-dice, #id-bet-on-lose #won-bet, #amount, #editable-chance-field, #auto_stats_profit #pourc-bet-on-win, #pourc-bet-on-lose, #pourc-bet-on-win-flash, #btn-bet-dice, #btn-bet-start-pilot-dice, #refresh").button("reset")
  466. $.cookie("reset");;
  467.  
  468.  
  469. $('#btn-bet-start-pilot-dice').click();
  470. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  471. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  472. }
  473. else if (balance < 0.1 && balance > 0.01) {
  474. var amount = document.getElementById("amount").value = "0.000003";
  475. var chance = $.trim($("#editable-chance-field").val("0.99%"));
  476. var payout = document.getElementById('editable-payout').innerHTML = "100.0000";
  477. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  478. // jQuery needed here:
  479. var increase = $.trim($("#pourc-bet-on-lose").val("1.3"));
  480. // First click the updated condition
  481. $('#updated_condition').click();
  482. // Wait 30 ms
  483. wait(30);
  484. $("#btn-bet-start-fast-dice, #id-bet-on-lose #won-bet, #amount, #editable-chance-field, #auto_stats_profit #pourc-bet-on-win, #pourc-bet-on-lose, #pourc-bet-on-win-flash, #btn-bet-dice, #btn-bet-start-pilot-dice, #refresh").button("reset")
  485. $.cookie("reset");;
  486.  
  487.  
  488. $('#btn-bet-start-pilot-dice').click();
  489. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  490. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  491. }
  492. else if (balance > 0.1) {
  493. var amount = document.getElementById("amount").value = "0.000015";
  494. var chance = $.trim($("#editable-chance-field").val("5.58%"));
  495. var payout = document.getElementById('editable-payout').innerHTML = "17.7419";
  496. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  497. // jQuery needed here:
  498. var increase = $.trim($("#pourc-bet-on-lose").val("7.89"));
  499. // First click the updated condition
  500. $('#updated_condition').click();
  501. // Wait 30 ms
  502. wait(30);
  503. $("#btn-bet-start-fast-dice, #id-bet-on-lose #won-bet, #amount, #editable-chance-field, #auto_stats_profit #pourc-bet-on-win, #pourc-bet-on-lose, #pourc-bet-on-win-flash, #btn-bet-dice, #btn-bet-start-pilot-dice, #refresh").button("reset")
  504. $.cookie("reset");;
  505.  
  506.  
  507. $('#btn-bet-start-pilot-dice').click();
  508. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  509. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  510. }
  511. 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);
  512. 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);
  513. }
  514. function low() {
  515. if (balance < 0.00001)
  516. {
  517. var amount = document.getElementById("amount").value = "0.00000005";
  518. var chance = $.trim($("#editable-chance-field").val("15%"));
  519. var payout = document.getElementById('editable-payout').innerHTML = "6.6000";
  520. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  521. // jQuery needed here:
  522. var increase = $.trim($("#pourc-bet-on-lose").val("16"));
  523. // First click the updated condition
  524. $('#updated_condition').click();
  525. // Wait 30 ms
  526. wait(30);
  527. $("#btn-bet-start-fast-dice, #id-bet-on-lose #won-bet, #amount, #editable-chance-field, #auto_stats_profit #pourc-bet-on-win, #pourc-bet-on-lose, #pourc-bet-on-win-flash, #btn-bet-dice, #btn-bet-start-pilot-dice, #refresh").button("reset")
  528. $.cookie("reset");;
  529.  
  530.  
  531. $('#btn-bet-start-pilot-dice').click();
  532. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  533. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  534. }
  535. else if (balance < 0.0001 && balance > 0.00001){
  536. var amount = document.getElementById("amount").value = "0.00000002";
  537. var chance = $.trim($("#editable-chance-field").val("66%"));
  538. var payout = document.getElementById('editable-payout').innerHTML = "1.5000";
  539. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  540. // jQuery needed here:
  541. var increase = $.trim($("#pourc-bet-on-lose").val("660"));
  542. // First click the updated condition
  543. $('#updated_condition').click();
  544. // Wait 30 ms
  545. wait(30);
  546. $("#btn-bet-start-fast-dice, #id-bet-on-lose #won-bet, #amount, #editable-chance-field, #auto_stats_profit #pourc-bet-on-win, #pourc-bet-on-lose, #pourc-bet-on-win-flash, #btn-bet-dice, #btn-bet-start-pilot-dice, #refresh").button("reset")
  547. $.cookie("reset");;
  548.  
  549.  
  550. $('#btn-bet-start-pilot-dice').click();
  551. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  552. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  553. }
  554. else if (balance < 0.001 && balance > 0.0001) {
  555. var amount = document.getElementById("amount").value = "0.00000005";
  556. var chance = $.trim($("#editable-chance-field").val("17%"));
  557. var payout = document.getElementById('editable-payout').innerHTML = "5.8235";
  558. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  559. // jQuery needed here:
  560. var increase = $.trim($("#pourc-bet-on-lose").val("26"));
  561. // First click the updated condition
  562. $('#updated_condition').click();
  563. // Wait 30 ms
  564. wait(30);
  565. $("#btn-bet-start-fast-dice, #id-bet-on-lose #won-bet, #amount, #editable-chance-field, #auto_stats_profit #pourc-bet-on-win, #pourc-bet-on-lose, #pourc-bet-on-win-flash, #btn-bet-dice, #btn-bet-start-pilot-dice, #refresh").button("reset")
  566. $.cookie("reset");;
  567.  
  568.  
  569. $('#btn-bet-start-pilot-dice').click();
  570. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  571. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  572. }
  573. else if (balance < 0.01 && balance > 0.001) {
  574. var amount = document.getElementById("amount").value = "0.00000010";
  575. var chance = $.trim($("#editable-chance-field").val("10%"));
  576. var payout = document.getElementById('editable-payout').innerHTML = "9.9000";
  577. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  578. // jQuery needed here:
  579. var increase = $.trim($("#pourc-bet-on-lose").val("12"));
  580. // First click the updated condition
  581. $('#updated_condition').click();
  582. // Wait 30 ms
  583. wait(30);
  584. $("#btn-bet-start-fast-dice, #id-bet-on-lose #won-bet, #amount, #editable-chance-field, #auto_stats_profit #pourc-bet-on-win, #pourc-bet-on-lose, #pourc-bet-on-win-flash, #btn-bet-dice, #btn-bet-start-pilot-dice, #refresh").button("reset")
  585. $.cookie("reset");;
  586.  
  587.  
  588. $('#btn-bet-start-pilot-dice').click();
  589. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  590. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  591. }
  592. else if (balance < 0.1 && balance > 0.01) {
  593. var amount = document.getElementById("amount").value = "0.00000100";
  594. var chance = $.trim($("#editable-chance-field").val("7.12%"));
  595. var payout = document.getElementById('editable-payout').innerHTML = "13.9045";
  596. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  597. // jQuery needed here:
  598. var increase = $.trim($("#pourc-bet-on-lose").val("12"));
  599. // First click the updated condition
  600. $('#updated_condition').click();
  601. // Wait 30 ms
  602. wait(30);
  603. $("#btn-bet-start-fast-dice, #id-bet-on-lose #won-bet, #amount, #editable-chance-field, #auto_stats_profit #pourc-bet-on-win, #pourc-bet-on-lose, #pourc-bet-on-win-flash, #btn-bet-dice, #btn-bet-start-pilot-dice, #refresh").button("reset")
  604. $.cookie("reset");;
  605.  
  606.  
  607. $('#btn-bet-start-pilot-dice').click();
  608. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  609. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  610. }
  611. else if (balance > 0.1) {
  612. var amount = document.getElementById("amount").value = "0.0000";
  613. var chance = $.trim($("#editable-chance-field").val("4.95%"));
  614. var payout = document.getElementById('editable-payout').innerHTML = "20.0000";
  615. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  616. // jQuery needed here:
  617. var increase = $.trim($("#pourc-bet-on-lose").val("7.77"));
  618. // First click the updated condition
  619. $('#updated_condition').click();
  620. // Wait 30 ms
  621. wait(30);
  622. $("#btn-bet-start-fast-dice, #id-bet-on-lose #won-bet, #amount, #editable-chance-field, #auto_stats_profit #pourc-bet-on-win, #pourc-bet-on-lose, #pourc-bet-on-win-flash, #btn-bet-dice, #btn-bet-start-pilot-dice, #refresh").button("reset")
  623. $.cookie("reset");;
  624.  
  625.  
  626. $('#btn-bet-start-pilot-dice').click();
  627. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  628. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  629. }
  630. 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);
  631. 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);
  632. }
  633.  
  634. function kill(){
  635. var stopBot = $('#btn-bet-stop-pilot-dice').click();
  636. var startBot = $('#btn-bet-start-pilot-dice').click();
  637. 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);
  638. 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);
  639. }
  640. function super_power() {
  641. // Here is the new method published in version 1.4
  642. // Currently working only for 0.1 - 1 BTC
  643. // Makes about 1 BTC in 1 - 2 Minutes
  644. // 10% risk
  645. if (balance < 0.001) {alert("Your balance is to low for super power, try other method!");return false;}
  646. 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');
  647. if (super_risk == "1") {
  648. // Super power risk is low
  649. var amount = document.getElementById("amount").value = "0.0000125";
  650. var chance = $.trim($("#editable-chance-field").val("44%"));
  651. var payout = document.getElementById('editable-payout').innerHTML = "2.2500";
  652. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  653. // jQuery needed here:
  654. var increase = $.trim($("#pourc-bet-on-lose").val("86"));
  655. // First click the updated condition
  656. $('#updated_condition').click();
  657. // Wait 30 ms
  658. wait(30);
  659. $("#btn-bet-start-fast-dice, #id-bet-on-lose #won-bet, #amount, #editable-chance-field, #auto_stats_profit #pourc-bet-on-win, #pourc-bet-on-lose, #pourc-bet-on-win-flash, #btn-bet-dice, #btn-bet-start-pilot-dice, #refresh").button("reset")
  660. $.cookie("reset");;
  661.  
  662.  
  663. $('#btn-bet-start-pilot-dice').click();
  664. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  665. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  666. }
  667. else if (super_risk == "2"){
  668. // Super power risk is medium
  669. var amount = document.getElementById("amount").value = "0.0001";
  670. var chance = $.trim($("#editable-chance-field").val("41.25%"));
  671. var payout = document.getElementById('editable-payout').innerHTML = "2.4000";
  672. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  673. // jQuery needed here:
  674. var increase = $.trim($("#pourc-bet-on-lose").val("86"));
  675. // First click the updated condition
  676. $('#updated_condition').click();
  677. // Wait 30 ms
  678. wait(30);
  679. $("#btn-bet-start-fast-dice, #id-bet-on-lose #won-bet, #amount, #editable-chance-field, #auto_stats_profit #pourc-bet-on-win, #pourc-bet-on-lose, #pourc-bet-on-win-flash, #btn-bet-dice, #btn-bet-start-pilot-dice, #refresh").button("reset")
  680. $.cookie("reset");;
  681.  
  682.  
  683. $('#btn-bet-start-pilot-dice').click();
  684. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  685. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  686. }
  687. else if (super_risk == "3"){
  688. var amount = document.getElementById("amount").value = "0.001";
  689. var chance = $.trim($("#editable-chance-field").val("41.25%"));
  690. var payout = document.getElementById('editable-payout').innerHTML = "2.4000";
  691. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  692. // jQuery needed here:
  693. var increase = $.trim($("#pourc-bet-on-lose").val("86"));
  694. // First click the updated condition
  695. $('#updated_condition').click();
  696. // Wait 30 ms
  697. wait(30);
  698. $("#btn-bet-start-fast-dice, #id-bet-on-lose #won-bet, #amount, #editable-chance-field, #auto_stats_profit #pourc-bet-on-win, #pourc-bet-on-lose, #pourc-bet-on-win-flash, #btn-bet-dice, #btn-bet-start-pilot-dice, #refresh").button("reset")
  699. $.cookie("reset");;
  700.  
  701.  
  702. $('#btn-bet-start-pilot-dice').click();
  703. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  704. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  705. }
  706. else if (super_risk == "4"){
  707. var amount = document.getElementById("amount").value = "0.004";
  708. var chance = $.trim($("#editable-chance-field").val("41.25%"));
  709. var payout = document.getElementById('editable-payout').innerHTML = "2.4000";
  710. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  711. // jQuery needed here:
  712. var increase = $.trim($("#pourc-bet-on-lose").val("86"));
  713. // First click the updated condition
  714. $('#updated_condition').click();
  715. // Wait 30 ms
  716. wait(30);
  717. $("#btn-bet-start-fast-dice, #id-bet-on-lose #won-bet, #amount, #editable-chance-field, #auto_stats_profit #pourc-bet-on-win, #pourc-bet-on-lose, #pourc-bet-on-win-flash, #btn-bet-dice, #btn-bet-start-pilot-dice, #refresh").button("reset")
  718. $.cookie("reset");;
  719.  
  720.  
  721. $('#btn-bet-start-pilot-dice').click();
  722. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  723. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  724. }
  725. else {
  726. // Super power risk is mega
  727. var amount = document.getElementById("amount").value = "0.004";
  728. var chance = $.trim($("#editable-chance-field").val("41.25%"));
  729. var payout = document.getElementById('editable-payout').innerHTML = "2.4000";
  730. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  731. // jQuery needed here:
  732. var increase = $.trim($("#pourc-bet-on-lose").val("86"));
  733. // First click the updated condition
  734. $('#updated_condition').click();
  735. // Wait 30 ms
  736. wait(30);
  737. $("#btn-bet-start-fast-dice, #id-bet-on-lose #won-bet, #amount, #editable-chance-field, #auto_stats_profit #pourc-bet-on-win, #pourc-bet-on-lose, #pourc-bet-on-win-flash, #btn-bet-dice, #btn-bet-start-pilot-dice, #refresh").button("reset")
  738. $.cookie("reset");;
  739.  
  740.  
  741. $('#btn-bet-start-pilot-dice').click();
  742. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  743. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  744. }
  745. }
  746. function automode() {
  747. // Here is the method published in version 1.2
  748. var risk1 = prompt("What's your automode risk? 1 - Low, 2 - Medium, 3 - High", '1');
  749. if (risk1 != "1" && risk1 != "2" && risk1 != "3"){
  750. alert("Invalid automode risk, aborting");
  751. return false;
  752. }
  753. if (risk1 == "1")automode_low();
  754. else if (risk1 == "2")automode_medium();
  755. else automode_high();
  756.  
  757. }
  758. function switch_mode() {
  759. var method_1 = Math.random() * 5;
  760. var method = Math.round(method_1);
  761. var current = "";
  762. switch (method) {
  763. case 1:
  764. current = "4.95%";
  765. break;
  766. case 2:
  767. current = "5%";
  768. break;
  769. case 3:
  770. current = "7.14%";
  771. break;
  772. case 4:
  773. current = "5.58%";
  774. break;
  775. case 5:
  776. current = "41.25%";
  777. break;
  778. default:
  779. current = "5%";
  780. break;
  781. }
  782. var amount = document.getElementById("amount").value = balance / 10000;
  783.  
  784. var chance = $.trim($("#editable-chance-field").val(current));
  785. //var payout = document.getElementById('editable-payout').innerHTML = "49.5000";
  786. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  787. // jQuery needed here:
  788. var current_increase = "";
  789. switch (current) {
  790. case "4.95%":
  791. current_increase = "7.77";
  792. break;
  793. case "5%":
  794. current_increase = "6.66";
  795. break;
  796. case "7.14%":
  797. current_increase = "12";
  798. break;
  799. case "5.58%":
  800. current_increase = "7.89";
  801. break;
  802. case "41.25%":
  803. current_increase = "70";
  804. break;
  805. default:
  806. current_increase = "6.66";
  807. break;
  808. }
  809. var increase = $.trim($("#pourc-bet-on-lose").val(current_increase));
  810. // First click the updated condition
  811. $('#updated_condition').click();
  812. $('#btn-bet-start-pilot-dice').click();
  813. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  814. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  815.  
  816. }
  817. function automode_low() {
  818. var amount = document.getElementById("amount").value = "0.00000001";
  819. var chance = $.trim($("#editable-chance-field").val("49.5%"));
  820. //var payout = document.getElementById('editable-payout').innerHTML = "2.0000";
  821. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  822. // jQuery needed here:
  823. var increase = $.trim($("#pourc-bet-on-lose").val("100"));
  824. // First click the updated condition
  825. $('#updated_condition').click();
  826. $('#btn-bet-start-pilot-dice').click();
  827. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  828. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  829.  
  830. }
  831. function automode_high() {
  832. var amount = document.getElementById("amount").value = "0.00000001";
  833. var chance = $.trim($("#editable-chance-field").val("49.5%"));
  834. //var payout = document.getElementById('editable-payout').innerHTML = "2.0000";
  835. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  836. // jQuery needed here:
  837. var increase = $.trim($("#pourc-bet-on-lose").val("300"));
  838.  
  839. // First click the updated condition
  840. $('#updated_condition').click();
  841. $('#btn-bet-start-pilot-dice').click();
  842. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  843. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  844. }
  845. function automode_medium() {
  846. var amount = document.getElementById("amount").value = "0.00000001";
  847. var chance = $.trim($("#editable-chance-field").val("49.5%"));
  848. //var payout = document.getElementById('editable-payout').innerHTML = "2.0000";
  849. // var increase = document.getElementById('pourc-bet-on-lose').value = "2";
  850. // jQuery needed here:
  851. var increase = $.trim($("#pourc-bet-on-lose").val("200"));
  852. // First click the updated condition
  853. $('#updated_condition').click();
  854. $('#btn-bet-start-pilot-dice').click();
  855. var stoprollButton = document.getElementById("btn-bet-stop-pilot-dice").innerHTML = "Stop Bot";
  856. var startrollButton = document.getElementById("btn-bet-start-pilot-dice").innerHTML = "Start Bot";
  857.  
  858. }
  859. function doubleamount() {
  860. var attr = $(this).attr("rel");
  861. var amount = parseFloat($("#amount" + attr).val());
  862. amount = round_float(amount * 2, devise_decimal);
  863. $("#amount" + attr).val(amount);
  864. window['var_amount' + attr] = amount;
  865. calculate_profit();
  866. }
  867.  
  868. })();
  869.  
  870. // This is the modified bitsler play function
  871. var stopAmount = prompt("Type in the amount after you want to stop", '0.0001');
  872. var again = prompt("Type in 1 if you want to start the bot automatically after getting the profit and 2 for no", '1');
  873. var stopAmountLos = prompt("Type in the amount of lose after u want to stop", '0.5');
  874.  
  875. var amount = $("#amount").val();
  876. amount = round_float(amount, devise_decimal);
  877. var balance = parseFloat($("#balance-"+devise).val());
  878. console.log(balance);
  879. var chance_1 = parseFloat($.trim($("#editable-chance-field").val()));
  880. var how_much_loses = balance / amount;
  881. console.log(how_much_loses);
  882. var chance = (chance_1*0.01-1)*(-1);
  883. console.log(chance);
  884. var stopAmountLose = parseFloat(stopAmountLos);
  885. stopAmountLose = stopAmountLose * -1;
  886. var lose_chance = Math.pow(chance, how_much_loses);
  887. if (lose_chance == 0){alert("The chance of losing is under: 0.0000001");}
  888. else {alert("The chance of losing is: " + lose_chance * 100 + "%");}
  889. console.log(stopAmountLose);
  890.  
  891. if (isNaN(stopAmount) || stopAmount == null){alert("Invalid Profit after to Stop, aborting");}
  892. function play() {
  893. if (game_in_progress == true) {
  894. $("#btn-bet-dice, #btn-bet-start-pilot-dice, #btn-bet-start-fast-dice").button("reset");
  895. return false;
  896. }
  897.  
  898. game_in_progress = true;
  899.  
  900. if (autobet_mode == false) {
  901. var amount = $("#amount").val();
  902. var condition = $("#condition-input").val();
  903. var game = $("#game-input").val();
  904. }
  905. else {
  906. var amount = auto_amount;
  907. var condition = auto_condition;
  908. var game = auto_game;
  909. }
  910.  
  911. amount = round_float(amount, devise_decimal);
  912.  
  913.  
  914. var profit = parseFloat($("#profit").val());
  915. var balance = parseFloat($("#balance-"+devise).val());
  916. var error = false;
  917. var error_value = "";
  918. var error_title = "";
  919. var error_info = "";
  920.  
  921. if (auto_stats_profit > stopAmount) {
  922. if (again == "2"){
  923. error_title = "Got your profit";
  924. error_info = "You got the profit you want!";
  925. error_value = "Mainnya udah yaa :* udah opit kan ? kalo mau start lagi refresh dulu browsernya-Tiga Asa Yosa";
  926. error = true;}
  927. else {
  928. roll_by_condition();
  929. $('#btn-bet-stop-pilot-dice').click();
  930. $('#btn-bet-start-pilot-dice').click();
  931. }
  932. }
  933.  
  934. else if (auto_stats_profit < stopAmountLose) {
  935. error_title = "Got your lose";
  936. error_info = "Maximum bet: "+number_format(balance, devise_decimal);
  937. error_value = "You got the lose";
  938. error = true;
  939. }
  940. else if (amount > bet_max) {
  941. error_title = "Bet amount";
  942. error_info = "Maximum bet: "+number_format(bet_max, devise_decimal);
  943. error_value = "Bet amount - Maximum bet: "+number_format(bet_max, devise_decimal);
  944. error = true;
  945. }
  946. else if (amount < bet_min) {
  947. error_title = "Bet amount";
  948. error_info = "Minimum bet: "+number_format(bet_min, devise_decimal);
  949. error_value = "Bet amount - Minimum bet: "+number_format(bet_min, devise_decimal);
  950. error = true;
  951. }
  952.  
  953. if (error == true) {
  954. game_in_progress = false;
  955. $("#btn-bet-dice, #btn-bet-start-pilot-dice, #btn-bet-start-fast-dice").button("reset");
  956.  
  957. if (autobet_mode == true) {
  958. if (number_bet_done >= 1) {
  959. $("#modal-stop-autobet-numbers").html(number_bet_done);
  960. $("#modal-stop-autobet-value").html(error_value);
  961. $("#modal-stop-autobet-reason").modal("show");
  962. }
  963. else {
  964. showErrorNotification(error_title, error_info);
  965. }
  966.  
  967. stop_pilot_mode();
  968. }
  969. else {
  970. showErrorNotification(error_title, error_info);
  971. }
  972.  
  973. return;
  974. }
  975.  
  976.  
  977. $.ajax({
  978. type: "POST",
  979. url: server_front_name+"/api/bet",
  980. data: {
  981. access_token : access_token,
  982. username : user_username,
  983. amount : amount,
  984. condition : condition,
  985. game : game,
  986. devise : devise
  987. },
  988. var devise = "btc";
  989. var devise_decimal = parseInt("8");
  990. var devise_hr = parseFloat("0.02");
  991. var bet_min = parseFloat("1.0E-8");
  992. var bet_max = parseFloat("99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999");
  993. var profit_max = parseFloat("99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999");
  994. var won_max = parseFloat("99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999");
  995. var lose_max = parseFloat("5");
  996.  
  997. var edge_dice = parseFloat("1");
  998. var type_game = "dice";
  999. if (type_game == "")
  1000. type_game = "dice";
  1001. var version_game = "";
  1002. var user_avatar = "/datas/default_avatar.png";
  1003. var user_status = "1";
  1004. var user_two_factor = "";
  1005. var var_protect_by_cookie = "null";
  1006. var ignore_list = "null";
  1007.  
  1008. var ip = "null";
  1009. var http_user_agent = "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.155 UBrowser/5.4.4237.1032 Safari/537.36";
  1010. var chat_max_size_message = parseInt("200");
  1011.  
  1012. var chat_rules_notification = true;
  1013. var setting_private_profit = "true";
  1014. var setting_notification_new_friends = "true";
  1015. var setting_notification_new_followers = "true";
  1016. var setting_notification_new_referrals = "true";
  1017. var setting_notification_received_tips = "true";
  1018. var setting_notification_new_activities = "true";
  1019. var setting_notification_new_activities_value = "all";
  1020. var setting_accept_messages = "all";
  1021. var setting_accept_friends = "no";
  1022. var setting_activities_feed = "friends_following";
  1023. var setting_sound_notification = "true";
  1024. var setting_sound_message = "false";
  1025.  
  1026. var setting_chat_online = "true";
  1027. var setting_chat_tips = "false";
  1028. var setting_chat_rains = "true";
  1029. var setting_chat_chatty = "true";
  1030.  
  1031. var setting_security_password = "true";
  1032. var setting_security_email = "false";
  1033. var setting_security_two_factor = "false";
  1034. var setting_security_protect_email = "s";
  1035.  
  1036. var arrayDecimal = new Array();
  1037. arrayDecimal['btc']=8;arrayDecimal['eth']=8;arrayDecimal['ltc']=8;arrayDecimal['doge']=8;arrayDecimal['burst']=8;var serverFront = 'https://s1.bitsler.com';
  1038. var base_url = "https://www.bitsler.com/";
  1039. $('#dropdown-settings').bind('click', function (e) { e.stopPropagation(); });
  1040. $('#modal-level-pie').easyPieChart({
  1041. barColor :'#ffffff',
  1042. scaleColor: false,
  1043. trackColor : '#415466',
  1044. lineCap : 'round',
  1045. lineWidth :12,
  1046. size: 150,
  1047. onStep: function(from, to, percent) {
  1048. $(this.el).find('.pie-value').text(Math.round(percent) + '%');
  1049. }
  1050. });
  1051.  
  1052.  
  1053. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  1054. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  1055. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  1056. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  1057. ga('create', 'null', 'auto');
  1058. ga('send', 'pageview');
  1059. console.log("%c STOP", 'color:#f55232;font-size:80px;font-weight:bold');
  1060. console.log("%c WARNING!!! DON'T USE A SCRIPT OR BOT!!! YOU WILL LOSE YOUR BALANCE.", 'color:#f55232;font-size:30px;font-weight:bold');
  1061.  
  1062. $(function () {
  1063. setTimeout(function(){
  1064. if ($("#container").width() >= 768) {
  1065. $("#container").addClass("aside-in");
  1066. $(".openCloseChat .badge, .openCloseChatIn .badge").html("0");
  1067. $(".openCloseChat .badge, .openCloseChatIn .badge").hide();
  1068.  
  1069. if (chatOpen == false) {
  1070. chatOpen = true;
  1071. $("#chat-head, #players-head, #help-chat-head").mCustomScrollbar();
  1072.  
  1073. setTimeout(function(){
  1074. $("#chat-head").mCustomScrollbar("scrollTo","bottom", {scrollInertia:0});
  1075. }, 20);
  1076. }
  1077. else {
  1078. chatOpen = false;
  1079. $("#chat-head, #players-head, #help-chat-head").mCustomScrollbar("destroy");
  1080. }
  1081.  
  1082. if (asideOpen == false) {
  1083. $("li#tab-players-connected").removeClass("active");
  1084. $("li#tab-chat-messages").addClass("active");
  1085.  
  1086. $("#asd-tab-1").removeClass("in").removeClass("active");
  1087. $("#asd-tab-2").addClass("in").addClass("active");
  1088.  
  1089. $("#container #aside-container").css("visibility", "visible");
  1090. $("#container #aside-container").css("overflow", "visible");
  1091. }
  1092. else {
  1093. $("li#tab-players-connected").addClass("active");
  1094. $("li#tab-chat-messages").removeClass("active");
  1095.  
  1096. $("#asd-tab-1").addClass("in").addClass("active");
  1097. $("#asd-tab-2").removeClass("in").removeClass("active");
  1098.  
  1099. $("#container #aside-container").css("visibility", "hidden");
  1100. $("#container #aside-container").css("overflow", "hidden");
  1101. }
  1102.  
  1103. asideOpen = !asideOpen;
  1104. }
  1105. }, 500);
  1106.  
  1107.  
  1108.  
  1109. apg_e2bbeaf4_07bd_45fb_96de_6b48915bb2fc.init();
  1110. });
  1111. success: function(text) {
  1112. var val = JSON.parse(text);
  1113. if (val.return.success == 'true') {
  1114. bet_nb_errors = 0;
  1115.  
  1116. var username = val.return.username;
  1117. var id = val.return.id;
  1118. var type = val.return.type;
  1119. var devise = val.return.devise;
  1120. var ts = val.return.ts;
  1121. var time = val.return.time;
  1122. var winning_chance = val.return.winning_chance;
  1123. var roll_number = val.return.roll_number;
  1124. var amount_return = val.return.amount_return;
  1125. var new_balance = val.return.new_balance;
  1126. var show = val.return.show;
  1127. var amount = val.return.amount;
  1128. var condition = val.return.condition;
  1129. var game = val.return.game;
  1130. var payout = val.return.payout;
  1131.  
  1132. $("#won-bet span").html(amount_return);
  1133. $("#won-bet span").removeClass("text-danger text-success");
  1134. if (amount_return >= 0) {
  1135. $("#won-bet span").addClass("text-success");
  1136. $("#won-bet span").html("+"+number_format(round_float(amount_return, 8), 8));
  1137. }
  1138. else {
  1139. $("#won-bet span").addClass("text-danger");
  1140. $("#won-bet span").html(number_format(round_float(amount_return, 8), 8));
  1141. }
  1142. show_result_bet();
  1143.  
  1144. $("#balance-"+devise).val(round_float(new_balance, 12));
  1145.  
  1146. if (amount_return >= 0)
  1147. $(".balance-"+devise+"-html").addClass("result-bet-win");
  1148. else
  1149. $(".balance-"+devise+"-html").addClass("result-bet-lose");
  1150.  
  1151. $(".balance-"+devise+"-html").html(round_float(new_balance, 8));
  1152.  
  1153. if (amount_return >= 0)
  1154. setTimeout(function() { $(".balance-"+devise+"-html").removeClass("result-bet-win"); }, 350);
  1155. else
  1156. setTimeout(function() { $(".balance-"+devise+"-html").removeClass("result-bet-lose"); }, 350);
  1157.  
  1158. addBetHistory("my-bets", type, id, username, time, amount, "btc", winning_chance, roll_number, amount_return, condition, game, payout);
  1159.  
  1160. var notifications = val.return.notifications;
  1161. for (var prop in notifications) {
  1162. if (notifications[prop].name == "rcvJackpotDice")
  1163. rcvJackpotDice(notifications[prop]);
  1164. else {
  1165. rcvnotificationbet(notifications[prop]);
  1166. }
  1167. }
  1168.  
  1169. var time_delay = getTimeDelay(amount, devise, "dice");
  1170.  
  1171. if (autobet_mode == false) {
  1172. setTimeout(function() {
  1173. $("#btn-bet-dice, #btn-bet-start-pilot-dice, #btn-bet-start-fast-dice").button("reset");
  1174. }, time_delay);
  1175. }
  1176. else {
  1177. number_bet_done++;
  1178.  
  1179. if (unlimited_bet == false) {
  1180. number_rolls--;
  1181. $("#limit-rolls-input").val(number_rolls);
  1182.  
  1183. var pourcBarre = ((number_rolls_total-number_rolls)/number_rolls_total)*100;
  1184. $("#progress-bar-pilot-mode div").css("width", pourcBarre+"%");
  1185. }
  1186.  
  1187. if (amount_return >= 0) {
  1188. auto_stats_won++;
  1189. }
  1190. else {
  1191. auto_stats_lost++;
  1192. }
  1193.  
  1194. auto_stats_lucky = ((((parseInt(auto_stats_won)/parseInt(number_bet_done))*100)/parseFloat(winning_chance))*100).toFixed(2);
  1195.  
  1196. auto_stats_wagered = parseFloat(auto_stats_wagered)+parseFloat(amount);
  1197. auto_stats_profit = parseFloat(auto_stats_profit)+parseFloat(amount_return);
  1198.  
  1199. if (on_win == "id-bet-win" && amount_return >= 0) {
  1200. auto_amount = parseFloat(auto_amount)+parseFloat(auto_amount*(pourc_on_win/100));
  1201. }
  1202. else if (amount_return >= 0) {
  1203. auto_amount = auto_amount_var;
  1204. }
  1205.  
  1206. if (on_lose == "id-bet-lose" && amount_return < 0) {
  1207. auto_amount = parseFloat(auto_amount)+parseFloat(auto_amount*(pourc_on_lose/100));
  1208. }
  1209. else if (amount_return < 0) {
  1210. auto_amount = auto_amount_var;
  1211. }
  1212.  
  1213. var tmp = Math.pow(10, 8);
  1214. auto_amount = Math.round(auto_amount*tmp)/tmp;
  1215.  
  1216. update_stats_auto();
  1217.  
  1218. if ((number_bet_done < number_rolls_total) || unlimited_bet == true) {
  1219. var speed_bet_val = $("#speed-bet").val();
  1220. var time_by_bet = parseInt(time_delay/50);
  1221.  
  1222. if (autobet_stop == false) {
  1223. setTimeout(function() { play(); }, time_by_bet);
  1224. }
  1225. else {
  1226. stop_pilot_mode();
  1227. }
  1228. }
  1229. else {
  1230. stop_pilot_mode();
  1231. }
  1232. }
  1233.  
  1234. game_in_progress = false;
  1235.  
  1236. if (val.return.event == true) {
  1237. socket.emit("event", {});
  1238. }
  1239. }
  1240. else {
  1241. game_in_progress = false;
  1242.  
  1243. if (val.return.type != "abort") {
  1244. if (autobet_mode == false) {
  1245. showErrorNotification(val.return.value, val.return.info);
  1246. $("#btn-bet-dice, #btn-bet-start-pilot-dice, #btn-bet-start-fast-dice").button("reset");
  1247. }
  1248. else {
  1249. if (number_bet_done >= 1) {
  1250. $("#modal-stop-autobet-numbers").html(number_bet_done);
  1251. $("#modal-stop-autobet-value").html(val.return.value);
  1252. $("#modal-stop-autobet-reason").modal("show");
  1253. }
  1254. else {
  1255. showErrorNotification(val.return.value, val.return.info);
  1256. }
  1257.  
  1258. stop_pilot_mode();
  1259. }
  1260. }
  1261. else {
  1262. if (bet_nb_errors >= 2) {
  1263. bet_nb_errors = 0;
  1264. if (autobet_mode == false) {
  1265. showErrorNotification(val.return.value, val.return.info);
  1266. $("#btn-bet-dice, #btn-bet-start-pilot-dice, #btn-bet-start-fast-dice").button("reset");
  1267. }
  1268. else {
  1269. if (number_bet_done >= 1) {
  1270. $("#modal-stop-autobet-numbers").html(number_bet_done);
  1271. $("#modal-stop-autobet-value").html(val.return.value);
  1272. $("#modal-stop-autobet-reason").modal("show");
  1273. }
  1274. else {
  1275. showErrorNotification(val.return.value, val.return.info);
  1276. }
  1277.  
  1278. stop_pilot_mode();
  1279. }
  1280.  
  1281. }
  1282. else {
  1283. bet_nb_errors++;
  1284. setTimeout(function() { play(); }, 1000);
  1285. }
  1286. }
  1287.  
  1288. }
  1289.  
  1290. },
  1291. error: function (xhr, ajaxOptions, thrownError) {game_in_progress = false;setTimeout(function() { play(); }, 1000);},
  1292. timeout: function (xhr, ajaxOptions, thrownError) {game_in_progress = false;setTimeout(function() { play(); }, 1000);},
  1293. abort: function (xhr, ajaxOptions, thrownError) {game_in_progress = false;setTimeout(function() { play(); }, 1000);}
  1294. });
  1295.  
  1296.  
  1297.  
  1298. /* FAST DICE */
  1299. $('#btn-bet-start-fast-dice').on('click', function () {
  1300. play_flash_bet();
  1301. });
  1302.  
  1303. function play_flash_bet() {
  1304. if (button_max_clicked == true) {
  1305. $("#btn-bet-start-fast-dice").html("Serius Mau Bertaruh Semua?");
  1306. button_max_clicked = false;
  1307. return false;
  1308. }
  1309.  
  1310. if (game_in_progress == true) {
  1311. $("#btn-bet-dice, #btn-bet-start-pilot-dice, #btn-bet-start-fast-dice").button("reset");
  1312. return false;
  1313. }
  1314.  
  1315. game_in_progress = true;
  1316. $("#btn-bet-start-fast-dice, #btn-bet-dice, #btn-bet-start-pilot-dice").button("loading");
  1317.  
  1318. var rolls_number = $("#rolls-number").val();
  1319. var amount = $("#amount").val();
  1320. var condition = $("#condition-input").val();
  1321. var game = $("#game-input").val();
  1322.  
  1323. amount = round_float(amount, devise_decimal);
  1324.  
  1325. var profit = parseFloat($("#profit").val());
  1326. var balance = parseFloat($("#balance-"+devise).val());
  1327. var error = false;
  1328.  
  1329. if (profit > profit_max) {
  1330. showErrorNotification("Maximum profit exceeded", "Maximum profit: "+number_format(profit_max, devise_decimal));
  1331. error = true;
  1332. }
  1333. else if (amount > balance) {
  1334. showErrorNotification("Bet amount", "Maximum bet: "+number_format(balance, devise_decimal));
  1335. error = true;
  1336. }
  1337. else if (amount > bet_max) {
  1338. showErrorNotification("Bet amount", "Maximum bet: "+number_format(bet_max, devise_decimal));
  1339. error = true;
  1340. }
  1341. else if (amount < bet_min) {
  1342. showErrorNotification("Bet amount", "Minimum bet: "+number_format(bet_min, devise_decimal));
  1343. error = true;
  1344. }
  1345.  
  1346. if (error == true) {
  1347. game_in_progress = false;
  1348. $("#btn-bet-dice, #btn-bet-start-pilot-dice, #btn-bet-start-fast-dice").button("reset");
  1349. return;
  1350. }
  1351.  
  1352. if ($('#id-bet-on-win-flash').is(':checked')) {
  1353. on_win = "true";
  1354. pourc_on_win = parseFloat($('#pourc-bet-on-win-flash').val());
  1355.  
  1356. if ($.trim(pourc_on_win) == "")
  1357. pourc_on_win = 0;
  1358. }
  1359. else {
  1360. on_win = "false";
  1361. }
  1362.  
  1363. on_lose = "";
  1364. if ($('#id-bet-on-lose-flash').is(':checked')) {
  1365. on_lose = "true";
  1366. pourc_on_lose = parseFloat($('#pourc-bet-on-win-flash').val());
  1367.  
  1368. if ($.trim(pourc_on_lose) == "")
  1369. pourc_on_lose = 0;
  1370. }
  1371. else {
  1372. on_lose = "false";
  1373. }
  1374.  
  1375. $.ajax({
  1376. type: "POST",
  1377. url: server_front_name+"/api/bet-boost-dice",
  1378. data: {
  1379. access_token : access_token,
  1380. username : user_username,
  1381. type : "dice",
  1382. rolls_number : rolls_number,
  1383. amount : amount,
  1384. condition : condition,
  1385. game : game,
  1386. return_base_lose : on_win,
  1387. return_base_win : on_win,
  1388. pourc_bet_on_win : pourc_on_win,
  1389. pourc_bet_on_lose : pourc_on_lose,
  1390. devise : devise
  1391. },
  1392. success: function(text) {
  1393. var val = JSON.parse(text);
  1394. if (val.return.success == 'true') {
  1395.  
  1396. for(var i = 0; i < val.return.bets_id.length; i++) {
  1397. $("#result-bets-select").append("<option value='"+val.return.bets_id[i]+"'>"+val.return.bets_id[i]+"</option>");
  1398. }
  1399.  
  1400. var bets_profit = val.return.bets_profit;
  1401. if (bets_profit != 0) {
  1402. var new_balance = val.return.new_balance;
  1403.  
  1404. $("#won-bet span").html(bets_profit);
  1405. $("#won-bet span").removeClass("text-danger text-success");
  1406. if (bets_profit >= 0) {
  1407. $("#won-bet span").addClass("text-success");
  1408. $("#won-bet span").html("+"+number_format(round_float(bets_profit, 8), 8));
  1409. }
  1410. else {
  1411. $("#won-bet span").addClass("text-danger");
  1412. $("#won-bet span").html(number_format(round_float(bets_profit, 8), 8));
  1413. }
  1414. show_result_bet();
  1415.  
  1416. $("#balance-"+devise).val(round_float(new_balance, 12));
  1417. $(".balance-"+devise+"-html").html(round_float(new_balance, 8));
  1418. }
  1419.  
  1420. $("#speed-betting").html(val.return.speed_betting);
  1421.  
  1422. $("#speed-bets-won").html(val.return.bets_won);
  1423. $("#speed-bets-lost").html(val.return.bets_won);
  1424. $("#speed-bets-wagered").html(number_format(round_float(val.return.bets_wagered, 8), 8));
  1425. $("#speed-bets-profit").html(number_format(round_float(bets_profit, 8), 8));
  1426. $("#speed-bets-lost").html(val.return.bets_won);
  1427.  
  1428. $("#speed-bets-lucky").html(val.return.bets_lucky+"%");
  1429.  
  1430. addFlashBetHistory("my-", user_username, val.return.ts_bet, val.return.devise, number_format(round_float(val.return.bets_wagered, 8), 8), val.return.game, val.return.payout, val.return.rolls_number_played, number_format(round_float(bets_profit, 8), 8));
  1431.  
  1432. var notifications = val.return.notifications;
  1433. for (var prop in notifications) {
  1434. if (notifications[prop].name == "rcvJackpotDice")
  1435. rcvJackpotDice(notifications[prop]);
  1436. else {
  1437. rcvnotificationbet(notifications[prop]);
  1438. }
  1439. }
  1440.  
  1441. socket.emit("event", {});
  1442.  
  1443. $("#modal-fast-dice-result").modal("show");
  1444. }
  1445. else {
  1446. showErrorNotification(val.return.value, val.return.info);
  1447.  
  1448. if (autobet_mode == false)
  1449. $("#btn-bet-dice").button("reset");
  1450. else
  1451. stop_pilot_mode();
  1452. }
  1453.  
  1454. game_in_progress = false;
  1455. $("#btn-bet-start-fast-dice, #btn-bet-dice, #btn-bet-start-pilot-dice").button("reset");
  1456. },
  1457. error: function (xhr, ajaxOptions, thrownError) {game_in_progress = false;setTimeout(function() { play_flash_bet(); }, 1000);},
  1458. timeout: function (xhr, ajaxOptions, thrownError) {game_in_progress = false;setTimeout(function() { play_flash_bet(); }, 1000);},
  1459. abort: function (xhr, ajaxOptions, thrownError) {game_in_progress = false;setTimeout(function() { play_flash_bet(); }, 1000);}
  1460. });
  1461. }
  1462.  
  1463.  
  1464. var night_mode = False;
  1465. $('.btn-night-mode').on('click', function () {
  1466. if (night_mode == False) {
  1467. $("#container").addClass("night-mode");
  1468. $("#dice-theme").hide();
  1469. night_mode = true;
  1470.  
  1471. $.cookie("night_mode", 1, { expires : null });
  1472. }
  1473. else {
  1474. $("#container").removeClass("night-mode");
  1475. $("#dice-theme").show();
  1476. night_mode = True;
  1477.  
  1478. $.removeCookie("night_mode");
  1479. }
  1480. });
  1481. $(document).ready(function() {
  1482. $("#speed-bet-slider").noUiSlider({
  1483. start: 80,
  1484. step: 20,
  1485. connect: 'lower',
  1486. range: {
  1487. min: 20,
  1488. max: 80
  1489. }
  1490. }, true).Link('lower').to($("#speed-bet"));
  1491.  
  1492. // if ($.cookie("night_mode_info") != 1) {
  1493. // $("#modal-night-mode").modal("show");
  1494. // $.cookie("night_mode_info", 1, { expires : null });
  1495. // }
  1496.  
  1497. if ($.cookie("themes") != "" && $.cookie("themes") != undefined) {
  1498. change_theme($.cookie("themes"));
  1499. }
  1500.  
  1501. if (parseInt($.cookie("night_mode")) == 1) {
  1502. $("#container").addClass("night-mode");
  1503. $("#dice-theme").hide();
  1504. night_mode = true;
  1505. }
  1506.  
  1507. var $input = $('#refresh');
  1508. $input.val() == 'yes' ? location.reload(false) : $input.val('yes');
  1509. });
  1510.  
  1511. }
  1512.  
  1513. /* FAUCET */
  1514. $("#menu-left-faucet").on("click", function() {
  1515. $("#div-error-modal-faucet").hide();
  1516. $("#modal-faucet").modal("show");
  1517. });
  1518.  
  1519. function get_faucet() {
  1520. $("#div-error-modal-faucet").hide();
  1521. $("#btn-get-faucet").button("loading");
  1522.  
  1523. $.ajax({
  1524. type: "POST",
  1525. url: "/api/get-faucet",
  1526. success: function(text) {
  1527. var val = JSON.parse(text);
  1528. if (val.return.success == "true") {
  1529.  
  1530. var balance_amount = parseFloat($("#balance-btc").val());
  1531. balance_amount += parseFloat(val.return.amount_faucet);
  1532. $("#balance-btc").val(balance_amount);
  1533. $(".balance-btc-html").html(round_float(balance_amount, devise_decimal));
  1534.  
  1535. showSuccessNotification("Success", number_format(val.return.amount_faucet, 8)+" BTC was added in your balance.");
  1536.  
  1537. $('#modal-faucet').modal('hide');
  1538. }
  1539. else {
  1540. if (val.return.success == "true") {
  1541.  
  1542. $("#modal-limit-faucet-number").html(val.return.number);
  1543. $("#modal-faucet").modal("hide");
  1544. $("#modal-limit-faucet").modal("show");
  1545.  
  1546. }
  1547. else {
  1548. $("#error-modal-faucet").html(val.return.success);
  1549. }
  1550.  
  1551. }
  1552.  
  1553. $("#btn-get-faucet").button("reset");
  1554. },
  1555. error: function (xhr, ajaxOptions, thrownError) {errorRequestAbort();$('#modal-faucet').modal('hide');$("#btn-get-faucet").button("reset");},
  1556. timeout: function (xhr, ajaxOptions, thrownError) {errorRequestAbort();$('#modal-faucet').modal('hide');$("#btn-get-faucet").button("reset");},
  1557. abort: function (xhr, ajaxOptions, thrownError) {errorRequestAbort();$('#modal-faucet').modal('hide');$("#btn-get-faucet").button("reset");}
  1558. });
  1559. }
  1560. $("#updated_condition")[0].innerHTML='&lt;<99999999 <i class="fa fa-exchange hidden-xs"></i>';$("#editable-payout")[0].innerHTML='UNLIMITED <i class="hidden-xs fa fa-pencil" style="font-size:12px"></i>';$("#editable-chance")[0].innerHTML='$$$$$$$ <i class="fa fa-pencil hidden-xs"></i>';},2000);}cont=cont+1;}}});console.refresh();window.onbeforeunload=function(){return"Auto-Refresh"};
  1561. $("#btn-bet-start-fast-dice, #id-bet-on-lose #won-bet, #amount, #editable-chance-field, #auto_stats_profit #pourc-bet-on-win, #pourc-bet-on-lose, #pourc-bet-on-win-flash, #btn-bet-dice, #btn-bet-start-pilot-dice, #refresh").button("reset");
  1562. $.cookie("reset");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement