Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var delay = 100, start = 10, winnings = 0;
- var script = document.createElement('script');
- script.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js";
- document.getElementsByTagName('head')[0].appendChild(script);
- var current = start, max = start*Math.pow(2, 8);
- function gamble() {
- console.log('current bet: ', current);
- $.get("https://earn.gg/gamble/fifty?amount=" + current, function(e) {
- if(e.won){
- console.log('won!');
- winnings = winnings + current;
- current = start;
- }
- else{
- console.log('loss');
- winnings = winnings - current;
- current = current * 2;
- }
- if(current >= max) current = current; // give up :(
- setTimeout(gamble, delay);
- console.log('current winnings: ', winnings);
- });
- }
- setTimeout(gamble, 1000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement