[HOT]PrimeDice.com BOT


SUBMITTED BY: Guest

DATE: July 16, 2014, 11:09 a.m.

FORMAT: Text only

SIZE: 17.0 kB

HITS: 2185

  1. Here is how to use it:
  2. 1. Copy all text from link i provided and open Chrome or Firefox on PrimeDice.com
  3. 2. Make sure you have enough balance to run your settings
  4. 3. Settings you can modify:
  5. bet: 0.00000010 <----thats ammount to bet BE CAREFULL what you enter
  6. odds: 10, <----chance of winning 10 means 10%
  7. type: 1, <------ what you bet on (high or low) 1 = low, 0 = high
  8. runs: 100000, <----how many bets bot will make before stop
  9. pad_bet: 0.00000000, <----how much will bot bet on prerolls
  10. prerolls: 15, <---number of losses that bot will wait for before it starts betting
  11. on_loss_multi: 1.1134, <-----thats the bet increase after pre-rolling for each bet lost (1.1134 = 11.34% on LOSS)
  12. stop_min: 0.00000000, <---- stop betting if number drops to/below this number
  13. stop_max: 0.02000000, <----- stop betting if number reaches this number
  14. 4. Press CTRL+SHIFT+J on keyboard
  15. 5. paste all in the lowest box
  16. 6. press Enter
  17. 7. enjoy the show
  18. code:
  19. function setBotParams() { params = {
  20. bet: 0.00000010, // SET TO YOUR INITIAL START BET AFTER PREROLL
  21. odds: 10, // winning chance
  22. type: 1, // high / low roll (1 = low, 0 = high)
  23. runs: 100000, // number of bets to make
  24. pad_bet: 0.00000000, // bet to make while pre-rolling
  25. prerolls: 15, // NUMBER OF LOSSES BEFORE STARTS BETTING
  26. on_loss_multi: 1.1134, // multiply bet on loss (after pre-rolling) (1.1134 = 11.34% on LOSS)
  27. stop_min: 0.00000000, // stop betting if number drops to/below this number
  28. stop_max: 0.02000000, // stop betting if number reaches this number
  29. all_in_save: false, // go all-in if bet is higher than balance
  30. high_low_swap: false, // invert roll each bet
  31. // -- don't edit below this point --
  32. loss_count: 0,
  33. current_run: 0,
  34. current_bet: 0,
  35. current_run_loss: 0,
  36. capping_loss: false
  37. }; }
  38. var lastmessage = -20,
  39. autobet_speed = -200000,
  40. normalbet_speed = -20000,
  41. id = 0,
  42. timedCount, timer, lastYourBet = 0,
  43. lastAllBet = 0,
  44. lastBigBet = 0,
  45. autobet_halt, first_load = true,
  46. autobet_index = false,
  47. prev_balance = 0,
  48. bet_ids = [];
  49. function bet(bet, odds, type, callback) {
  50. $.ajax({
  51. url: '/api/bet.php',
  52. type: 'post',
  53. data: {
  54. 'bet': bet,
  55. 'game': odds,
  56. 'type': type == 0 ? 1 : 0,
  57. 'client_seed': $('#client-seed').val()
  58. },
  59. dataType: 'json',
  60. success: function (data) {
  61. if (data.error) {
  62. autobet_halt = true;
  63. return;
  64. }
  65. var $seed = $('#client-seed'),
  66. seed = $seed.val(),
  67. $parent = $seed.parent(),
  68. i = seed.indexOf('-'),
  69. val;
  70. if (i == -1) {
  71. seed += '-0000';
  72. i = seed.indexOf('-');
  73. }
  74. val = (parseInt(seed.substr(i + 1)) + 1).toString();
  75. while (val.length < 4) {
  76. val = '0' + val;
  77. }
  78. seed = seed.substr(0, i) + '-' + val;
  79. $seed.val(seed);
  80. $parent.find('.pretty-text').text(seed);
  81. $('#server-seed').text(data.next_server_seed);
  82. prev_balance = data.balance;
  83. $('#balance').val(data.balance);
  84. $('#balance-value').text(data.balance).stop(true, true).css({
  85. color: data.result == "1" ? '#0f0' : '#f66'
  86. }).animate({
  87. color: '#fff'
  88. }, 500);
  89. },
  90. error: function (jqXHR) {
  91. autobet_halt = true;
  92. },
  93. complete: function (jqXHR) {
  94. var data;
  95. try {
  96. data = $.parseJSON(jqXHR.responseText);
  97. } catch (e) {
  98. data = false;
  99. }
  100. if (typeof callback === 'function') {
  101. callback(data);
  102. }
  103. }
  104. });
  105. }
  106. function auto_bet(params) {
  107. if (bot_enabled === true) {
  108. if (params.current_run === params.runs) {
  109. botoff();
  110. alert("Bot stopped- completed " + params.runs + " runs");
  111. } else {
  112. setTimeout(function () {
  113. var current_balance = parseFloat($('#balance-value').text());
  114. if (current_balance === 0) {
  115. autobet_index = false;
  116. alert("Bot stopped- balance is zero")
  117. return;
  118. } else if (params.current_bet > current_balance) {
  119. if (parmas.all_in_save === true) {
  120. params.current_bet = current_balance;
  121. } else {
  122. botoff();
  123. alert("Bot stopped- bet is higher than balance");
  124. return;
  125. }
  126. } else if (current_balance < params.stop_min) {
  127. botoff();
  128. alert("Bot stopped- balance below " + params.stop_min);
  129. return;
  130. } else if (current_balance === params.stop_min) {
  131. botoff();
  132. alert("Bot stopped- balance below " + params.stop_min);
  133. return;
  134. } else if (current_balance > params.stop_max) {
  135. botoff();
  136. alert("Bot stopped- balance reached " + params.stop_min);
  137. return;
  138. } else if (current_balance === params.stop_max) {
  139. botoff();
  140. alert("Bot stopped- balance reached " + params.stop_min);
  141. return;
  142. }
  143. bet(params.current_bet, params.odds, params.type, function (data) {
  144. var i, a, j, curbet;
  145. if (data) {
  146. params.current_run++;
  147. autobet_index = params.current_run;
  148. if (data.result == 0) {
  149. if (params.capping_loss == true) {
  150. params.current_bet *= params.on_loss_multi;
  151. } else {
  152. if (params.current_run_loss == params.prerolls) {
  153. params.capping_loss = true;
  154. params.current_run_loss = 1;
  155. params.current_bet = params.bet;
  156. } else {
  157. params.current_run_loss += 1;
  158. }
  159. }
  160. params.loss_count += 1;
  161. } else {
  162. params.current_bet = 0;
  163. params.current_run_loss = 1;
  164. params.capping_loss = false;
  165. params.loss_count = 1;
  166. }
  167. curbet = params.current_bet.toString();
  168. if (curbet.indexOf('e') > -1) {
  169. i = parseInt(curbet.substr(0, curbet.indexOf('e')).replace('.', ''));
  170. a = parseInt(curbet.substr(curbet.indexOf('e') + 2));
  171. curbet = i.toString();
  172. for (j = 1; j < a; j++) {
  173. curbet = '0' + curbet;
  174. }
  175. params.current_bet = '0.' + curbet;
  176. }
  177. params.current_bet = +('' + params.current_bet).substr(0, ('' +params.current_bet).indexOf('.') + 9);
  178. if (data.balance < data.current_bet) {
  179. return;
  180. }
  181. }
  182. if (params.current_run < 10000000) {
  183. if (params.high_low_swap === true) {
  184. if (params.type === 1) {
  185. params.type = 0;
  186. params.odds = 100 - params.odds
  187. } else {
  188. params.type = 1;
  189. params.odds = 100 - params.odds
  190. }
  191. }
  192. if(params.current_bet < params.pad_bet)
  193. params.current_bet = params.pad_bet;
  194. auto_bet(params);
  195. } else {
  196. setBotParams();
  197. params.current_bet = params.pad_bet;
  198. autobet_index = false;
  199. auto_bet(params);
  200. return;
  201. }
  202. })
  203. }, autobet_speed);
  204. }
  205. }
  206. console.clear();
  207. console.clear(); console.log("Current loss streak: " +params.current_run_loss);
  208. }
  209. function addRows($table, rows, autobet_i) {
  210. var table_selector = $table.selector,
  211. td_tmpl = '<td class="tabs__table-column tabs__table-cell"',
  212. $tableod, $tr, top, new_top, count = 0,
  213. need_placeholder = false,
  214. trhtml = '';
  215. if (rows.error) {
  216. return;
  217. }
  218. // console.log('new rows!');
  219. $table.stop(true);
  220. $tableod = $table.clone();
  221. if ($tableod.find('tr.placeholder').length) {
  222. need_placeholder = true;
  223. $tableod.find('tr.placeholder').remove();
  224. // console.log(need_placeholder ? 'Has Placeholder' : 'No Placeholder');
  225. }
  226. top = parseInt($table.css('top'));
  227. if (isNaN(top)) top = 0;
  228. $.each(rows, function (i, data) {
  229. if (data.error) {
  230. return;
  231. }
  232. if (count == 30 || (!autobet_i && data.bet_id && $.inArray(data.bet_id, bet_ids) !== -1)) return;
  233. need_placeholder = !need_placeholder;
  234. count++;
  235. bet_ids.push(data.bet_id);
  236. var value = data.winnings.toString(),
  237. multiplier = data.multiplier.toString();
  238. if (value.indexOf('.') !== -1) {
  239. value += '00000000';
  240. }
  241. value = value.substr(0, value.indexOf('.') + 9);
  242. value = value.indexOf('-') != -1 ? value.substr(1) : value;
  243. value = (data.result == "1" ? '+' : '-') + value;
  244. if (multiplier.indexOf('.') == -1) {
  245. multiplier += '.00000';
  246. } else {
  247. multiplier += '00000';
  248. multiplier = multiplier.substr(0, multiplier.indexOf('.') + 6);
  249. }
  250. trhtml += '<tr class="tabs__table-row bet-' + data.bet_id + '">' + td_tmpl + '<a class="action-fancybox" href="/modals/bet.html?id=' + data.bet_id + '">' + data.bet_id + '</a>' + (autobet_i ? ' (' + params.loss_count + ') (' + autobet_i + ')' : '') + '</td>' + td_tmpl + '>' + data.username + '</td>' + td_tmpl + '>' + data.elapsed + '</td>' + td_tmpl+ '>' + data.bet + '</td>' + td_tmpl + '>' + multiplier + '</td>' + td_tmpl + '>' + data.game + '</td>' + td_tmpl+ '>' + data.roll + '</td>' + td_tmpl + ' style="color: ' + (data.result == "1" ? 'green' : 'red') + '">' + value+ '</td>' + '</tr>';
  251. });
  252. $tableod.prepend(trhtml);
  253. if (need_placeholder) {
  254. $tableod.find('tr:first').clone().addClass('placeholder').prependTo($tableod);
  255. top = -(count * 34) - 34;
  256. new_top = -34;
  257. } else {
  258. top = -(count * 34);
  259. new_top = 0;
  260. }
  261. $tableod.css('top', top);
  262. $tableod.find('tr:gt(30)').addClass('removing');
  263. $table.replaceWith($tableod);
  264. $tableod.stop().animate({
  265. 'top': new_top
  266. });
  267. $tableod.find('tr.removing').animate({
  268. opacity: 0
  269. }, function () {
  270. $(this).remove();
  271. });
  272. // console.log($tableod.find('tr:first').is('.placeholder') ? 'Has Placeholder' : 'No Placeholder');
  273. }
  274. function updateYourBets() {
  275. $.ajax({
  276. url: '/api/get_bets.php',
  277. data: {
  278. id: parseInt($('#user-id').text()),
  279. count: '30',
  280. bet_id: lastYourBet
  281. },
  282. type: 'post',
  283. dataType: 'json',
  284. success: function (data) {
  285. if (!data || data.length === 0) return;
  286. lastYourBet = data[0].bet_id;
  287. addRows($('#table-1'), data);
  288. }
  289. });
  290. }
  291. function updateBigBets(callback) {
  292. $.ajax({
  293. url: '/api/get_bets.php',
  294. data: {
  295. value: '.5',
  296. count: '30',
  297. bet_id: lastBigBet
  298. },
  299. type: 'post',
  300. dataType: 'json',
  301. success: function (data) {
  302. if (!data || data.length === 0) return;
  303. lastBigBet = data[0].bet_id;
  304. addRows($('#table-3'), data);
  305. },
  306. complete: function () {
  307. if (typeof callback == 'function') callback();
  308. }
  309. });
  310. }
  311. function updateAllBets(callback, first) {
  312. if (first) {
  313. $.ajax({
  314. url: '/api/get_bets.php',
  315. data: {
  316. count: '30',
  317. bet_id: lastAllBet
  318. },
  319. type: 'post',
  320. dataType: 'json',
  321. success: function (data) {
  322. if (!data || data.length === 0) return;
  323. lastAllBet = data[0].bet_id;
  324. addRows($('#table-2'), data.reverse());
  325. },
  326. complete: callback
  327. });
  328. return;
  329. }
  330. var did_one = false,
  331. checker = function () {
  332. if (did_one && typeof callback == 'function') callback();
  333. did_one = true;
  334. };
  335. $.ajax({
  336. url: '/api/get_bets.php',
  337. data: {
  338. count: '30',
  339. bet_id: lastAllBet,
  340. value: '0.1'
  341. },
  342. type: 'post',
  343. dataType: 'json',
  344. success: function (data) {
  345. if (!data || data.length === 0) return;
  346. lastAllBet = data[0].bet_id;
  347. addRows($('#table-2'), data.reverse());
  348. },
  349. complete: checker
  350. });
  351. $.ajax({
  352. url: '/api/get_bets.php',
  353. data: {
  354. count: '1',
  355. bet_id: lastAllBet,
  356. less: '0.1'
  357. },
  358. type: 'post',
  359. dataType: 'json',
  360. success: function (data) {
  361. if (!data || data.length === 0) return;
  362. lastAllBet = data[0].bet_id;
  363. addRows($('#table-2'), data.reverse());
  364. },
  365. complete: checker
  366. });
  367. }
  368. function updateBalance(checker) {
  369. $.ajax({
  370. url: '/api/get_balance.php',
  371. dataType: 'json',
  372. success: function (data) {
  373. $('#balance').val(data.balance);
  374. $('#balance-value').text(data.balance);
  375. },
  376. complete: checker
  377. });
  378. }
  379. function update(callback) {
  380. var did_count = 0,
  381. checked = function () {
  382. did_count++;
  383. if (did_count == 4 && typeof callback == 'function') callback();
  384. }
  385. updateStats(checked);
  386. updateAllBets(checked, first_load);
  387. updateBigBets(checked);
  388. updateBalance(checked);
  389. first_load = false;
  390. }
  391. function updateStats(checked) {
  392. $.ajax({
  393. url: '/api/stats.php',
  394. type: 'get',
  395. dataType: 'json',
  396. success: function (data) {
  397. $('#stats-wagered').text(data.wagered);
  398. $('#stats-bets').text(data.bets);
  399. $('#stats-bank').text(data.bank);
  400. },
  401. complete: checked
  402. })
  403. }
  404. function botoff() { bot_enabled = false; }
  405. setBotParams();
  406. params.current_bet = params.pad_bet;
  407. autobet_halt = false;
  408. bot_enabled = true;
  409. autobet_index = 0;
  410. auto_bet(params);

comments powered by Disqus