Console Script FreeBitco.in


SUBMITTED BY: Guest

DATE: Jan. 3, 2014, 5:13 a.m.

FORMAT: Text only

SIZE: 1.2 kB

HITS: 1597

  1. //start
  2. var minValue = 0.00000001;
  3. var maxLoss = 0.00000512;
  4. var aimedProfit = 0.00001000;
  5. var maxOps = 1000;
  6. var endResult = 0;
  7. var ops = 0;
  8. var bet = function(value, button, callback) {
  9. var buttonName = button ? 'lo' : 'hi';
  10. $.get('?op=double_your_btc&m=' + buttonName + '&stake=' + value + '&multiplier=2&jackpot=0', function(result) {
  11. var splittedResult = result.split(':');
  12. $('#balance').html(splittedResult[3]);
  13. callback(value, button, splittedResult[1] === 'w');
  14. }
  15. );
  16. };
  17. var martingale = function(value, button, result) {
  18. if (result || (value >= maxLoss && maxLoss !== 0)) {
  19. button = !button;
  20. newValue = minValue;
  21. }
  22. else
  23. newValue = 2 * value;
  24. if (result)
  25. endResult += value;
  26. else
  27. endResult -= value;
  28. console.log((result ? '+' : '-') + value);
  29. ops++;
  30. if ((ops < maxOps || maxOps === 0) && (endResult < aimedProfit || aimedProfit === 0))
  31. bet(newValue, button, martingale);
  32. else {
  33. console.log('Martingale finished in ' + ops + ' operations!');
  34. console.log('Result: ' + endResult);
  35. }
  36. };
  37. martingale(minValue, false, false);
  38. //end

comments powered by Disqus