Jump to content

Oscar's Grind System


Umxalkeakwb

Recommended Posts

Hi Im trying to create an oscar's grind script but have no experience in javascript, although I do a little in python (still fairly new though)

Rules;

Round Goal; +1 Unit
On Win; Increase by +1 Unit, (Up Until round goal is met)
On Loss; Keep same bet as las bet.

Example

New Round;
Bet #1 = Win
Round Complete

New Round;
Bet #1 of 1$ = Loss -1$
Bet #2 of 1$ = Lose -1$   (-2$ Total)
Bet #3 of 1$ = Lose -1$  (-3$ Total)
Bet #4 of 1$ = Win +1 (-2$ Total)
Bet #5 of 2$ = Lose -2$ (-4$ total)
Bet #6 of 2$ = Lose -2$ (-6$ total)
Bet #7 of 2$ = Win +2 (-4$ Total)
Bet #8 of 3$ = Win +3 (+1$ Total)

As the round goal is only +1 Unit this bet can be reduced to 2$
Bet #9 of 2$ = Win +2 (+1$ Total)
 

 

 

 

 

I came across someone doing something similar in JS here

Oscar's Grind script for bustabit (github.com)

Python Equivalent

image.thumb.png.8b7e6be3a01cb1041281cc20775fd5ae.png

 

 

 

 

 

 

 

Link to comment
Share on other sites

what game do you want it in or rather client script or sandboxed and for what game.  I will just translate it into a generic sandboxed one that can be used for crash or hash-dice for now.

 

 

Link to comment
Share on other sites

  • 2 weeks later...
On 11/8/2022 at 11:10 PM, Skele said:

what game do you want it in or rather client script or sandboxed and for what game.  I will just translate it into a generic sandboxed one that can be used for crash or hash-dice for now.

 

 

Any chance you can comment on the below? 

Issue is it isn't incrementing the bet on wins

 

 

////////////////  oscars_ grind ///////////////

var config = {

  baseBet: {label: 'Starting Bet:', value: 0.000015, type: 'number'},
  payout: { label: 'payout', value: 2, type: 'number' },

}

function main () {

  var currentBet = config.baseBet.value; 
  var counter =0;
  var lost = 0;


  if(config.payout.value<1.76){
    log.error('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
    log.error('Please increase payout or you may lose profits');
  }
  
  engine.on('GAME_STARTING', function () {
     engine.bet(currentBet, config.payout.value);
  })

  engine.on('GAME_ENDED', function (data) {
    CurrentBalance = currency.amount;

    if (data.profitAmount > 0) {
        
        counter+=1;
        
        if(counter ==1){ //reset to base bet. The session is over and you made profit.
          currentBet = config.baseBet.value;
          counter=0;
          lost=0;
          log.success('WINNER!!! You made profit!');
        }

        if (lost==1){
          currentBet = currentBet+config.baseBet.value;
          lost=0;
        }

        log.success('Count : '+counter);

        } else { //we lost...

        counter-=1;
        currentBet = config.baseBet.value;
        lost=1;
        log.error('Lost...');
        log.error('Count : '+counter);
        }
  })
}

Link to comment
Share on other sites

On 11/7/2022 at 10:46 AM, Umxalkeakwb said:

Hi Im trying to create an oscar's grind script but have no experience in javascript, although I do a little in python (still fairly new though)

Rules;

Round Goal; +1 Unit
On Win; Increase by +1 Unit, (Up Until round goal is met)
On Loss; Keep same bet as las bet.

Example

New Round;
Bet #1 = Win
Round Complete

New Round;
Bet #1 of 1$ = Loss -1$
Bet #2 of 1$ = Lose -1$   (-2$ Total)
Bet #3 of 1$ = Lose -1$  (-3$ Total)
Bet #4 of 1$ = Win +1 (-2$ Total)
Bet #5 of 2$ = Lose -2$ (-4$ total)
Bet #6 of 2$ = Lose -2$ (-6$ total)
Bet #7 of 2$ = Win +2 (-4$ Total)
Bet #8 of 3$ = Win +3 (+1$ Total)

As the round goal is only +1 Unit this bet can be reduced to 2$
Bet #9 of 2$ = Win +2 (+1$ Total)
 

 

 

 

 

I came across someone doing something similar in JS here

Oscar's Grind script for bustabit (github.com)

Python Equivalent

image.thumb.png.8b7e6be3a01cb1041281cc20775fd5ae.png

 

 

 

 

 

 

 

So when you hit your round's Unit goal, do you want the bet to go back to base or just decrease by 1 unit?

The python script and the JS script contradict each other but here is what i think you OG asked for.

 

////////////////  oscars_ grind ///////////////

var config = {

    baseBet: {label: 'Starting Bet:', value: currency.minAmount, type: 'number'},
    payout: { label: 'Payout', value: 2, type: 'number' },
    unit: { label: 'Round Goal', value: currency.minAmount, type: 'number'},

}

function main () {
    let currentBet = config.baseBet.value;
    let roundProfit = 0;
    let currentBalance = currency.amount;
    let tFormat = 0

    if(currentBet - Math.floor(currentBet) !== 0) {
        tFormat = currentBet.toString().split('.')[1].length;
    }

    if(config.payout.value < 1.76){
        log.error('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
        log.error('Please increase payout or you may lose profits');
    }

    game.onBet = function () {
        roundProfit -= currentBet;
        game.bet(currentBet, config.payout.value).then(function (payout) {
            if (payout > 1) {
                currentBalance = currency.amount;
                roundProfit += (payout * currentBet);
                if(roundProfit >= config.unit.value) {
                    roundProfit = 0;
                    currentBet = config.baseBet.value;
                    log.success('WINNER!!! You made profit!');
                } else {
                    currentBet += config.baseBet.value;
                    log.success('WON! nextBet: '+currentBet.toFixed(tFormat)+' Profit: '+roundProfit.toFixed(tFormat));
                }
            } else {
                log.error('LOST nextBet: '+currentBet.toFixed(tFormat)+' Profit: '+roundProfit.toFixed(tFormat));
            }

        })
    }
}

 

image.png

Intelligenci_logo_on_transparent.thumb.png.a0b4eeba91c8fb82b7749ebf5bcb9246.png

Link to comment
Share on other sites

perfect💗

Link to comment
Share on other sites

Sup

Link to comment
Share on other sites

On 11/25/2022 at 1:01 AM, ][NT3L][G3NC][ said:

So when you hit your round's Unit goal, do you want the bet to go back to base or just decrease by 1 unit?

The python script and the JS script contradict each other but here is what i think you OG asked for.

 

////////////////  oscars_ grind ///////////////

var config = {

    baseBet: {label: 'Starting Bet:', value: currency.minAmount, type: 'number'},
    payout: { label: 'Payout', value: 2, type: 'number' },
    unit: { label: 'Round Goal', value: currency.minAmount, type: 'number'},

}

function main () {
    let currentBet = config.baseBet.value;
    let roundProfit = 0;
    let currentBalance = currency.amount;
    let tFormat = 0

    if(currentBet - Math.floor(currentBet) !== 0) {
        tFormat = currentBet.toString().split('.')[1].length;
    }

    if(config.payout.value < 1.76){
        log.error('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
        log.error('Please increase payout or you may lose profits');
    }

    game.onBet = function () {
        roundProfit -= currentBet;
        game.bet(currentBet, config.payout.value).then(function (payout) {
            if (payout > 1) {
                currentBalance = currency.amount;
                roundProfit += (payout * currentBet);
                if(roundProfit >= config.unit.value) {
                    roundProfit = 0;
                    currentBet = config.baseBet.value;
                    log.success('WINNER!!! You made profit!');
                } else {
                    currentBet += config.baseBet.value;
                    log.success('WON! nextBet: '+currentBet.toFixed(tFormat)+' Profit: '+roundProfit.toFixed(tFormat));
                }
            } else {
                log.error('LOST nextBet: '+currentBet.toFixed(tFormat)+' Profit: '+roundProfit.toFixed(tFormat));
            }

        })
    }
}

 

image.png

Late reply, sorry. But yeah you assumed right. Thank you!!

Link to comment
Share on other sites

  • 3 weeks later...
On 11/9/2022 at 4:55 AM, Skele said:

what game do you want it in or rather client script or sandboxed and for what game.  I will just translate it into a generic sandboxed one that can be used for crash or hash-dice for now.

 

 

can you help me with d'Alembert betting stratergy in which i can add bet on losing and subtract from bet on winning.

 

Screenshot_20221222_101134.png

Link to comment
Share on other sites

11 hours ago, rupesh814 said:

can you help me with d'Alembert betting stratergy in which i can add bet on losing and subtract from bet on winning.

 

Screenshot_20221222_101134.png

var config = {

    baseBet: {label: 'Starting Bet:', value: currency.minAmount, type: 'number'},
    payout: { label: 'Payout', value: 2, type: 'number' },
    unit: { label: 'Round Goal', value: currency.minAmount, type: 'number'},

}

function main () {
    let currentBet = config.baseBet.value;
    let roundProfit = 0;
    let currentBalance = currency.amount;
    let tFormat = 0

    if(currentBet - Math.floor(currentBet) !== 0) {
        tFormat = currentBet.toString().split('.')[1].length;
    }

    if(config.payout.value < 1.76){
        log.error('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
        log.error('Please increase payout or you may lose profits');
    }

    game.onBet = function () {
        roundProfit -= currentBet;
        game.bet(currentBet, config.payout.value).then(function (payout) {
            if (payout > 1) {
                currentBalance = currency.amount;
                roundProfit += (payout * currentBet);
                if(roundProfit >= config.unit.value) {
                    roundProfit = 0;
                    currentBet = config.baseBet.value;
                    log.success('WINNER!!! You made profit!');
                } else {
                    currentBet -= config.baseBet.value;
                    log.success('WON! nextBet: '+currentBet.toFixed(tFormat)+' Profit: '+roundProfit.toFixed(tFormat));
                }
            } else {
                currentBet += config.baseBet.value;
                log.error('LOST nextBet: '+currentBet.toFixed(tFormat)+' Profit: '+roundProfit.toFixed(tFormat));
            }

        })
    }
}

Same thing as Oscar Grinds Script but  - on win and + on loss 

Intelligenci_logo_on_transparent.thumb.png.a0b4eeba91c8fb82b7749ebf5bcb9246.png

Link to comment
Share on other sites

21 hours ago, rupesh814 said:

Alright when get to computer I'll take a look. 

Intelligenci_logo_on_transparent.thumb.png.a0b4eeba91c8fb82b7749ebf5bcb9246.png

Link to comment
Share on other sites

@rupesh814 @Umxalkeakwb

 Combo of Both Your Requested Scripts.  I quickly ran it and it seemed to function. do some JB or low value coin runs for testing. Let me know if there are any issues.

 

var config = {
    baseBet: { label: "BaseBet", value: currency.minAmount, type: "number" },
    payout: { label: "Payout", value: 2, type: "number" },
    unitTitle: { label: "Target Round Profit", type: "title" },
    unit: { label: "0 = No Reset Back To baseBet", value: 0, type: "number" },
    onWinTitle: { label: "On Win", type: "title" },
    onWin: {
        label: "",
        value: "noBet",
        type: "radio",
        options: [
            { value: "addBet", label: "Bet+" },
            { value: "subBet", label: "Bet-" },
            { value: "noBet", label: "Nothing" },
        ],
    },
    onWinValue: { label: "+/- Bet", value: currency.minAmount, type: "number" },
    onLoseTitle: { label: "On Lose", type: "title" },
    onLoss: {
        label: "",
        value: "noBet",
        type: "radio",
        options: [
            { value: "addBet", label: "Bet+" },
            { value: "subBet", label: "Bet-" },
            { value: "noBet", label: "Nothing" },
        ],
    },
    onLossValue: { label: "+/- Bet", value: currency.minAmount, type: "number" },
    stopTitle: { label: "Stop Loss/Profit", type: "title" },
    stopWin: { label: "Stop Profit", value: 0, type: "number" },
    stopLoss: {label: "Stop Loss", value: 0, type: "number" },
};

function main () {

    let currentBet = config.baseBet.value;
    let roundProfit = 0;
    let theProfit = 0;
    let tFormat = 8;

    function getFormat() {
        if(currency.minAmount - Math.floor(currency.minAmount) !== 0) {
            try {
                tFormat = parseFloat(currency.minAmount).toString().split('.')[1].length;
            } catch(gayJS) {
                tFormat = parseFloat(currency.minAmount).toFixed(8).split('.')[1].length;
            }
            if(!tFormat) {
                tFormat = 8;
            }
        }

        return tFormat;
    }

    function onWinBet() {
        if(config.onWin.value == "addBet") {
            currentBet += config.onWinValue.value;
        } else if(config.onWin.value == 'subBet') {
            currentBet -= config.onWinValue.value;
        }
        if(currentBet < currency.minAmount) {
            currentBet = config.baseBet.value;
        }
        return;
    }

    function onLoseBet() {
        if(config.onLoss.value == "addBet") {
            currentBet += config.onLossValue.value;
        } else if(config.onLoss.value == 'subBet') {
            currentBet -= config.onLossValue.value;
        }
        if(currentBet < currency.minAmount) {
            currentBet = config.baseBet.value;
        }
        return;
    }

    function getBetAmount(payout) {
        tFormat = getFormat();
        if(payout > 1) {
            roundProfit += (payout * currentBet);
            theProfit += (payout * currentBet);
            if(config.stopWin.value) {
                if(theProfit >= config.stopWin.value) {
                    log.success('Hit Stop Profit, Stopping!');
                    game.stop();
                }
            }
            if (config.unit.value) {
                if(roundProfit >= config.unit.value) {
                    currentBet = config.baseBet.value;
                    log.success('WINNER!!! You made profit!');
                } else {
                    onWinBet();
                    log.success('Bet: '+currentBet.toFixed(tFormat)+' . Profit: '+roundProfit.toFixed(tFormat));
                }
            } else {
                onWinBet();
                log.success('Bet: '+currentBet.toFixed(tFormat)+' . Profit: '+roundProfit.toFixed(tFormat));
            }
        } else {
            if(config.stopLoss.value) {
                if(-1 * theProfit <= config.stopLoss.value) {
                    log.error('Hit Stop Loss, Stopping!');
                    game.stop();
                }
            }
            onLoseBet();
            log.error('Bet: '+currentBet.toFixed(tFormat)+' . Profit: '+roundProfit.toFixed(tFormat));
        }

    }

    game.onBet = function () {
        roundProfit -= currentBet;
        theProfit -= currentBet;
        game.bet(currentBet, config.payout.value).then(function (payout) {
            getBetAmount(payout);
        });
    }
}

 

Intelligenci_logo_on_transparent.thumb.png.a0b4eeba91c8fb82b7749ebf5bcb9246.png

Link to comment
Share on other sites

On 12/28/2022 at 5:07 AM, LIVER said:

Just down load the script and save to your phone or to external

What does that have to do with anything?

Intelligenci_logo_on_transparent.thumb.png.a0b4eeba91c8fb82b7749ebf5bcb9246.png

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...