Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // -t- July 21 2017
- var baseBet = 1;
- var increaseOnLoss = 1.123;
- var maxLosses = 40;
- var cashOut = 19;
- var password = ''; //PASSWORD FOR THE WITHDRAW
- var vault = ''; //ACCOUNT TO WITHDRAW TO
- var Targetbal = 50000; // withdrawn when balance over
- var withdrawAmount = 500;//amount to withdraw
- var withdrawn = 0;//amount withdrawn
- //------------------------------------------------
- var currentBet = baseBet;
- var lostCount = 0;
- var miaCO = -1;
- var startBR = engine.getBalance();
- var currentBR = startBR;
- var sessionBR = startBR;
- var fp = '7a6fc44cc0684789c1b0ce160e7ead6e';
- //------------------------------------------------
- engine.on('game_starting', function(info) {
- currentBR = engine.getBalance();
- if (currentBet && engine.lastGamePlay() == 'LOST') {
- lostCount++;
- if (lostCount <= maxLosses) {
- currentBet *= increaseOnLoss;
- }
- console.log('lostCount =', lostCount);
- }
- else{
- currentBet = baseBet;
- startBR = currentBR;
- }
- if (miaCO < maxLosses) {
- engine.placeBet(Math.round(currentBet)*100, Math.round(cashOut*100));
- console.log('Placing bet of', Math.round(currentBet), 'at', Math.round(cashOut*100)/100+"x");
- }
- });
- engine.on('game_crash', function( data ) {
- currentBR = engine.getBalance()-withdrawn;
- console.clear();
- if (data.game_crash/100 <= cashOut) {
- miaCO++;
- }
- else{
- miaCO = -1;
- lostCount = 0;
- }
- if((currentBR/100) >= Targetbal){
- transferRequest('POST', 'https://ethcrash.io/transfer-request');
- withdrawn += Number(withdrawAmount);
- currentBR = engine.getBalance()-withdrawn;
- }
- console.log('Current losses/profit =', (currentBR-startBR)/100);
- console.log('This session profit =', ((currentBR-sessionBR)/100)+withdrawn);
- console.log('This session withdrawn =', withdrawn.format(2));
- console.log('---------------------------');
- });
- function uuidv4() {
- return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
- var r = Math.random() * 16 | 0,
- v = c == 'x' ? r : (r & 0x3 | 0x8);
- return v.toString(16);
- });
- }
- function transferRequest(method, url) {
- var xhr = new XMLHttpRequest();
- if ("withCredentials" in xhr) {
- uuid = uuidv4();
- params = 'fakeusernameremembered=&fakepasswordremembered=&amount=' + withdrawAmount + '&to-user=' + vault + '&password=' + password + '&transfer-id=' + uuid;
- xhr.open(method, url, true);
- xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
- xhr.onreadystatechange = function() {
- if (xhr.readyState == 4 && xhr.status == 200) {}
- }
- xhr.send(params);
- } else if (typeof XDomainRequest != "undefined") {
- xhr = new XDomainRequest();
- xhr.open(method, url);
- xhr.send();
- } else {
- xhr = null;
- xhr.send();
- }
- return xhr;
- xhr.send();
- }
- Number.prototype.format = function(n, x) {
- var re = '\\d(?=(\\d{' + (x || 3) + '})+' + (n > 0 ? '\\.' : '$') + ')';
- return this.toFixed(Math.max(0, ~~n)).replace(new RegExp(re, 'g'), '$&,');
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement