Advertisement
Guest User

Untitled

a guest
Mar 8th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.27 KB | None | 0 0
  1. // -t- July 21 2017
  2.  
  3. var baseBet = 1;
  4. var increaseOnLoss = 1.123;
  5. var maxLosses = 40;
  6. var cashOut = 19;
  7.  
  8.  
  9. var password = ''; //PASSWORD FOR THE WITHDRAW
  10. var vault = ''; //ACCOUNT TO WITHDRAW TO
  11. var Targetbal = 50000; // withdrawn when balance over
  12. var withdrawAmount = 500;//amount to withdraw
  13. var withdrawn = 0;//amount withdrawn
  14. //------------------------------------------------
  15.  
  16.  
  17. var currentBet = baseBet;
  18. var lostCount = 0;
  19. var miaCO = -1;
  20. var startBR = engine.getBalance();
  21. var currentBR = startBR;
  22. var sessionBR = startBR;
  23. var fp = '7a6fc44cc0684789c1b0ce160e7ead6e';
  24. //------------------------------------------------
  25.  
  26. engine.on('game_starting', function(info) {
  27.  
  28. currentBR = engine.getBalance();
  29.  
  30. if (currentBet && engine.lastGamePlay() == 'LOST') {
  31.  
  32. lostCount++;
  33.  
  34. if (lostCount <= maxLosses) {
  35.  
  36. currentBet *= increaseOnLoss;
  37. }
  38.  
  39. console.log('lostCount =', lostCount);
  40. }
  41. else{
  42.  
  43. currentBet = baseBet;
  44. startBR = currentBR;
  45. }
  46.  
  47. if (miaCO < maxLosses) {
  48.  
  49. engine.placeBet(Math.round(currentBet)*100, Math.round(cashOut*100));
  50. console.log('Placing bet of', Math.round(currentBet), 'at', Math.round(cashOut*100)/100+"x");
  51. }
  52.  
  53. });
  54.  
  55. engine.on('game_crash', function( data ) {
  56.  
  57. currentBR = engine.getBalance()-withdrawn;
  58. console.clear();
  59.  
  60. if (data.game_crash/100 <= cashOut) {
  61.  
  62. miaCO++;
  63. }
  64. else{
  65.  
  66. miaCO = -1;
  67. lostCount = 0;
  68. }
  69.  
  70.  
  71. if((currentBR/100) >= Targetbal){
  72. transferRequest('POST', 'https://ethcrash.io/transfer-request');
  73. withdrawn += Number(withdrawAmount);
  74. currentBR = engine.getBalance()-withdrawn;
  75. }
  76.  
  77.  
  78. console.log('Current losses/profit =', (currentBR-startBR)/100);
  79. console.log('This session profit =', ((currentBR-sessionBR)/100)+withdrawn);
  80. console.log('This session withdrawn =', withdrawn.format(2));
  81. console.log('---------------------------');
  82. });
  83.  
  84. function uuidv4() {
  85. return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
  86. var r = Math.random() * 16 | 0,
  87. v = c == 'x' ? r : (r & 0x3 | 0x8);
  88. return v.toString(16);
  89. });
  90. }
  91. function transferRequest(method, url) {
  92. var xhr = new XMLHttpRequest();
  93. if ("withCredentials" in xhr) {
  94. uuid = uuidv4();
  95. params = 'fakeusernameremembered=&fakepasswordremembered=&amount=' + withdrawAmount + '&to-user=' + vault + '&password=' + password + '&transfer-id=' + uuid;
  96. xhr.open(method, url, true);
  97. xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  98. xhr.onreadystatechange = function() {
  99. if (xhr.readyState == 4 && xhr.status == 200) {}
  100. }
  101. xhr.send(params);
  102. } else if (typeof XDomainRequest != "undefined") {
  103. xhr = new XDomainRequest();
  104. xhr.open(method, url);
  105. xhr.send();
  106. } else {
  107. xhr = null;
  108. xhr.send();
  109. }
  110. return xhr;
  111. xhr.send();
  112. }
  113. Number.prototype.format = function(n, x) {
  114. var re = '\\d(?=(\\d{' + (x || 3) + '})+' + (n > 0 ? '\\.' : '$') + ')';
  115. return this.toFixed(Math.max(0, ~~n)).replace(new RegExp(re, 'g'), '$&,');
  116. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement