Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var config = {
- msg: { type: 'noop', label: 'Created By SellingScripts' },
- };
- var betArray = [0,100,132,174,230,304,401,529,698,922, 1217, 1606, 2120, 2798, 3693, 4875, 6435]; // 0 is skip and other is in Bits.
- var cashArray =[0,1.13, 1.78, 2.43, 3.13, 3.83, 4.53, 5.28, 6.03, 6.78, 7.53, 8.33, 7.53, 6.78, 6.03, 5.28, 4.53]; // must have 0 in same place as in betArray to cashout nicely.
- var index = 0;
- var bet = betArray[index];
- var cashout = cashArray[index];
- log('Welcome script is running...');
- log('Your balance is...' + (userInfo.balance / 100) + ' bits');
- // Main:
- engine.on("GAME_STARTING", function() {
- if(bet < 1000000){
- engine.bet(bet * 100, cashout);
- log("We are betting " + bet + " bits.");
- }else{
- log("Paused");
- }
- });
- engine.on("GAME_ENDED", function() {
- var lastGame = engine.history.first()
- if(!lastGame.cashedAt) {
- log('We didn\'t manage to win');
- index++;
- bet = betArray[index];
- cashout = cashArray[index];
- }
- else{
- log('We managed to win');
- index = 1;
- bet = betArray[index];
- cashout = cashArray[index];
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement