Advertisement
trilluminati

Freebitco.in Script

Dec 24th, 2013
13,441
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. // Customizable variables
  2. var minValue = 0.00000001;
  3. var maxLoss = 0.0000001;
  4. var aimedProfit = 0.000005;
  5. var maxOps = 50;
  6.  
  7. // Don't touch anything after this
  8. var endResult = 0;
  9. var ops = 0;
  10.  
  11. // Bets a given amount on a given button and returns the value ot the callback
  12. var bet = function(value, button, callback) {
  13. var buttonName = button ? 'lo' : 'hi';
  14. // We use site's api
  15. $.get('?op=double_your_btc&m=' + buttonName + '&stake=' + value + '&multiplier=2&jackpot=0', function(result) {
  16. var splittedResult = result.split(':');
  17. // We update the account balance, as we have it juste there
  18. $('#balance').html(splittedResult[3]);
  19. // We finally call the callback
  20. callback(value, button, splittedResult[1] === 'w');
  21. }
  22. );
  23. };
  24.  
  25. // Main Martingale's method
  26. var martingale = function(value, button, result) {
  27. // We apply Martingale algorithm
  28. if (result || (value >= maxLoss && maxLoss !== 0)) {
  29. button = !button;
  30. newValue = minValue;
  31. }
  32. else
  33. newValue = 2 * value;
  34. // We compute new final result
  35. if (result)
  36. endResult += value;
  37. else
  38. endResult -= value;
  39. // We start over (and log misc data)
  40. console.log((result ? '+' : '-') + value);
  41. ops++;
  42. if ((ops < maxOps || maxOps === 0) && (endResult < aimedProfit || aimedProfit === 0))
  43. bet(newValue, button, martingale);
  44. else {
  45. console.log('Martingale finished in ' + ops + ' operations!');
  46. console.log('Result: ' + endResult);
  47. }
  48. };
  49.  
  50. // Init operation
  51. martingale(minValue, false, false);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement