prime dice working script


SUBMITTED BY: tasaoirse

DATE: Jan. 13, 2016, 7:45 a.m.

FORMAT: Text only

SIZE: 1.2 kB

HITS: 497

  1. // ==UserScript==
  2. // @name PrimeDice Auto bet (By dragonares)
  3. // @namespace https://primedice.com/index.php
  4. // @include https://primedice.com/index.php
  5. // @version 1
  6. // @grant none
  7. // ==/UserScript==
  8. var bet_value = 1;
  9. var bet_count = 1;
  10. var balance = $('#balance-value') .text(); //Get current balance
  11. var bet_amount = $('#bet-amount');
  12. var bet_button = $('#spinner');
  13. var multiple_value = $('#multiplier');
  14. var multi_bet = 6;
  15. console.log('[INFO] Starting PrimeDice Auto-bet 1.0 !');
  16. console.log('You have: ' + balance + ' BTC');
  17. if (balance > 0) {
  18. console.log('Betting now...');
  19. bet_now();
  20. } else {
  21. alert('[ERROR] You balance is too low.');
  22. //console.log('[ERROR] You balance is too low.');
  23. }
  24. function bet_now() {
  25. setTimeout(function () {
  26. balance = $('#balance-value').text(); //Update current balance
  27. bet_count++;
  28. multiple_value.text(multi_bet);
  29. bet_value = balance / 80;
  30. bet_amount.val(bet_value);
  31. bet_button.click();
  32. console.log('You betted: ' + bet_count + ' Times');
  33. bet_now();
  34. //Re-bet
  35. }, 1000);
  36. }

comments powered by Disqus