Umxalkeakwb Posted November 7, 2022 Share Posted November 7, 2022 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 Link to comment Share on other sites More sharing options...
Skele Posted November 8, 2022 Share Posted November 8, 2022 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 More sharing options...
Umxalkeakwb Posted November 9, 2022 Author Share Posted November 9, 2022 Hi Skele, hash dice please, and client please. Thank You !! Link to comment Share on other sites More sharing options...
Umxalkeakwb Posted November 17, 2022 Author Share Posted November 17, 2022 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 More sharing options...
][NT3L][G3NC][ Posted November 25, 2022 Share Posted November 25, 2022 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 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)); } }) } } Link to comment Share on other sites More sharing options...
Dr_Sali Posted December 2, 2022 Share Posted December 2, 2022 perfect Link to comment Share on other sites More sharing options...
GODDESSSSSS Posted December 2, 2022 Share Posted December 2, 2022 Sup Link to comment Share on other sites More sharing options...
Umxalkeakwb Posted December 6, 2022 Author Share Posted December 6, 2022 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)); } }) } } Late reply, sorry. But yeah you assumed right. Thank you!! Link to comment Share on other sites More sharing options...
rupesh814 Posted December 22, 2022 Share Posted December 22, 2022 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. Link to comment Share on other sites More sharing options...
][NT3L][G3NC][ Posted December 23, 2022 Share Posted December 23, 2022 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. 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 Link to comment Share on other sites More sharing options...
rupesh814 Posted December 23, 2022 Share Posted December 23, 2022 it will stop after 2 loss and that's not same thong i want something like that Link to comment Share on other sites More sharing options...
][NT3L][G3NC][ Posted December 24, 2022 Share Posted December 24, 2022 21 hours ago, rupesh814 said: it will stop after 2 loss and that's not same thong i want something like that /cdn-cgi/mirage/0f7d5b63522881e99ffe5752b3cd21067e1d0b3dd67a2c74d3fccf53de26b0e7/1280/https://forum.bc.game/uploads/monthly_2022_12/2022-12-23.thumb.png.c0fa77b4d5c34455de9c9478dd32e855.png Alright when get to computer I'll take a look. Link to comment Share on other sites More sharing options...
][NT3L][G3NC][ Posted December 24, 2022 Share Posted December 24, 2022 @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); }); } } Link to comment Share on other sites More sharing options...
LIVER Posted December 28, 2022 Share Posted December 28, 2022 Just down load the script and save to your phone or to external Link to comment Share on other sites More sharing options...
][NT3L][G3NC][ Posted January 3, 2023 Share Posted January 3, 2023 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? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.