MandaAde10000 Posted July 11, 2022 Share Posted July 11, 2022 Good Morning, Does anyone have a simple script for the game "CoinFlip"? Link to comment Share on other sites More sharing options...
Skele Posted July 12, 2022 Share Posted July 12, 2022 <p> I do, currently its just setup so that you can do number of games, or hunting for so many flips of a coin.<br> It also has an input where you can specify a pattern to repeat like 1101 for tails tail heads tails. This same also displays a history of the coin flips. That part used to be limited to the last 80 flips but something happened and now it just goes on forever hahaha. But it is a user and not in the sandbox. And i unless you are min betting and just going for multiplier i don't believe it will be more profitable than manually playing. </p> Link to comment Share on other sites More sharing options...
Pkpehlgshwb Posted July 14, 2022 Share Posted July 14, 2022 On 7/13/2022 at 2:35 AM, Skele said: <p> I do, currently its just setup so that you can do number of games, or hunting for so many flips of a coin.<br> It also has an input where you can specify a pattern to repeat like 1101 for tails tail heads tails. This same also displays a history of the coin flips. That part used to be limited to the last 80 flips but something happened and now it just goes on forever hahaha. But it is a user and not in the sandbox. And i unless you are min betting and just going for multiplier i don't believe it will be more profitable than manually playing. </p> I'm trying a script but I think I'm doing something wrong, can you help me? //Bc Game Hash Dice var config = { baseBet: { label: "base bet", value: currency.minAmount, type: "number" }, //payout: { label: "payout", value: 2, type: "number" }, minChange: { label: "min change", value: 1, type: "number" }, maxChance: { label: "max cahge", value:98, type: "number" }, stop: { label: "stop if bet >", value: 1e8, type: "number" }, balanceRisk: { label: "balance risk %", value: 100, type: "number" }, targetProfit: {label:'Target-Profit-Stop; value: 1000, type:'number'}, targetBalance: {label:'Target-Balance-Stop; value: 1000, type:'number'}, onLoseTitle: { label: "On Lose", type: "title" }, onLoss: { label: "", value: "reset", type:"radio", options: { { value: "reset", label: "Return to base bet" }, { value: "increase", label: "lncrease bet by (loss multiplier)" }, }, }, lossStreak: { label: "loss streak", value:2, type: "number" }, lossMultiplier: { label: "loss multiplier", value: 2, type: "number" }, onWinTitle: { label: "On Win", type: "title" }, onWin: { label: "", value: "reset", type: "radio", options: { { value: "reset", label: "Return to base bet" }, { value: "increase", label: "increase bet by (win multiplier)" }, }, }, winStreak: { label: "win streak", value: 2, type: "number" }, winMultiplier: { label: "win multiplier", value: 2, type: "number" }, }; var run = false; //var bet = currency.amount/config.divider.value; var bet = config.baseBet.value; var basebet = bet; var startTime = new Date(); var timestring = "; var roundWins = 0; var roundLosses = 0; var chance = Math.random() * (config.maxChance.value - config.minChance.value) + config.minChance.value; var currentProfitt = 0; var currentProfittt = 0; var curProf = 0; var profitTotal = 0; var balance = currency.amount; var lastbalance = balance; function main (){ run = true; var currentBet = config.baseBet.value; game.onBet = function () { //balance = currency.amount; //if(balance >= lastbalance) lastbalance = balance; chance = Math.random() * (config.maxChance.value - config.minChance.value) + config.minChance.value; //game.bet(currentBet; config.payout.value).then(function (payout) { game.bet(currentBet, (99/chance).toFixed(4)).then(function (payout) { /* currentProfit += curProf; if (currentProfitt >= currentProfittt) { currentProfittt = currentProfittt; currentBet = config.baseBet.value; roundWins = 0; roundLosses = 0; } */ if (payout > 1) { balance += currentBet*99/chance-currentBet; profitTotal += currentBet*99/chance- currentBet; }else{ balance -= currentBet; profitTotal -= currentBet; } if(balance >= lastbalance) lastbalance = balance; if (payout > 1) { curProf = currentBet*99/chance-currentBet; roundWins++; if (config.onWin.value === "reset") { currentBet = config.baseBet.value; } else { //currentBet *= config.winMultiplier.value; if (roundWins % config.winStreak.value === 0) { currentBet *= config.winMultiplier.value; } } log.success( "We won, so next bet will be " + currentBet + " " + currency.currencyName ); } else { curProf = -currentBet; roundLosses++; if (config.onLoss.value === "reset") { currentBet = config.baseBet.value; } else { //currentBet *= config.lossMultiplier.value; if (roundLosses % config.lossStreak.value === 0) { currentBet *= config.lossMuliplier.value; } } log.error( "We lost, so next bet will be " + currentBet + " " + currency.currencyName ); } currentProfitt += curProf; if (currentProfitt >= currentProfittt) { currentProfittt = currentProfitt; currentBet = config.baseBet.value; roundWins = 0; roundLosses = 0; } if (currentBet < config.baseBet.value) { currentBet = config.baseBet.value } var stoplevel = (100- config.balanceRisk.value)*lastbalance/100; if(balance - currentBet < stoplevel){ log.error( "Balance Risk " + currentBet + "Stop" ); game.stop(); } if (currentBet > config.stop.value) { log.error( "Was about to bet " + currentBet + " which triggers the stop" ); game.stop(); } if (currentBet > balance) { log.error( "Loss " + balance + "which triggers the stop" ); game stop(); } if (profitTotal >= config.targetProfit.value) { //bet = currency.amount/config.divider.value; log.success('Target Profit ' + (profitTotal).toFixed(8) + ' ' + currency.currencyName); game.stop(); } if (balance >= config.targetBalance.value) { //bet = currency.amount/config.divider.value; log.success('Target Balance ' + balance + ' ' + currency.currencyName); game.stop(); } )); ); } setinterval(function(){ var cur = new Date(); var t = Math.floor((cur - startTime) / 1000); var hour = Math.floor(t / 3600); if (hour < 10) hour = '0' + Math.floor(t / 3600); t = t % 3600; var minutes = Math.floor(t / 60); if (minutes <10) minutes = '0' + t % 60; if(run) timestring = 'PlayTime ' + hour + ':' + minutes + ':' + seconds + ' '; else timestring = "; },'1000'); 1 Link to comment Share on other sites More sharing options...
Skele Posted July 14, 2022 Share Posted July 14, 2022 There were were many many just tiny sytax issues. Stuff like having an open string marker " but never closing it" so that it would spill into all of the code that followed. I haven't ran ran the script but it will load up and give you UI and everything now. If you don't already use one i recommend either downloading visual studio code, or notepad++ or both. They both have some great tools around code highlighting and making sure you have all of the closing tags and no mismatches. There were a number of places where the wrong breakets were used which is also an issue ({[ are not all equal :). Anyway both of those programs are free to download and have a good community supporting them if you ever have questions. //Bc Game Hash Dice var config = { baseBet: { label: "base bet", value:currency.minAmount, type: "number" }, //payout: { label: "payout", value: 2, type: "number" }, minChance: { label: "min change", value: 1, type:"number" }, maxChance: { label: "max cahge", value: 98, type:"number" }, stop: { label: "stop if bet >", value: 1e8, type: "number" }, balanceRisk: { label: "balance risk %", value: 100, type:"number" }, targetProfit: {label: "Target-Profit-Stop", value: 1000, type:"number"}, targetBalance: {label: "Target-Balance-Stop", value: 1000, type:"number"}, onLoseTitle: {label: "On Lose", type: "title" }, onLoss: { label: "", value: "reset", type:"radio", options: [ { value: "reset", label: "Return to base bet" }, { value: "increase", label: "lncrease bet by (loss multiplier)" }, ], }, lossStreak: { label: "loss streak", value:2, type: "number" }, lossMultiplier: { label: "loss multiplier", value: 2, type: "number" }, onWinTitle: { label: "On Win", type: "title" }, onWin: { label: "", value: "reset", type: "radio", options: [ { value: "reset", label: "Return to base bet" }, { value: "increase", label: "increase bet by (winmultiplier)" }, ], }, winStreak: { label: "win streak", value: 2, type: "number"}, winMultiplier: { label: "win multiplier", value: 2, type:"number" }, }; var run = false; //var bet = currency.amount/config.divider.value; var bet = config.baseBet.value; var basebet = bet; var startTime = new Date(); var timestring = ""; var roundWins = 0; var roundLosses = 0; var chance = Math.random() * (config.maxChance.value - config.minChance.value) + config.minChance.value; var currentProfitt = 0; var currentProfittt = 0; var curProf = 0; var profitTotal = 0; var balance = currency.amount; var lastbalance = balance; function main (){ run = true; var currentBet = config.baseBet.value; game.onBet = function () { chance = Math.random() * (config.maxChance.value - config.minChance.value) + config.minChance.value; game.bet(currentBet, (99/chance).toFixed(4)).then(function (payout) { if (payout > 1) { balance += currentBet*99/chance-currentBet; profitTotal += currentBet*99/chance-currentBet; }else { balance -= currentBet; profitTotal -= currentBet; } if(balance >= lastbalance) { lastbalance = balance; } if (payout > 1) { curProf = currentBet*99/chance-currentBet; roundWins++; if (config.onWin.value === "reset") { currentBet = config.baseBet.value; } else { if (roundWins % config.winStreak.value === 0) { currentBet *= config.winMultiplier.value; } } log.success("We won, so next bet will be " + currentBet + " " + currency.currencyName); } else { curProf = -currentBet; roundLosses++; if (config.onLoss.value === "reset") { currentBet = config.baseBet.value; } else { //currentBet *= config.lossMultiplier.value; if (roundLosses % config.lossStreak.value === 0) { currentBet *= config.lossMuliplier.value; } } log.error("We lost, so next bet will be " + currentBet + " " + currency.currencyName); } currentProfitt += curProf; if (currentProfitt >= currentProfittt) { currentProfittt = currentProfitt; currentBet = config.baseBet.value; roundWins = 0; roundLosses = 0; } if (currentBet < config.baseBet.value) { currentBet = config.baseBet.value } var stoplevel = (100-config.balanceRisk.value)*lastbalance/100; if(balance - currentBet < stoplevel) { log.error("Balance Risk " + currentBet + "Stop"); game.stop(); } if (currentBet > config.stop.value) { log.error("Was about to bet " + currentBet + " which triggers the stop"); game.stop(); } if (currentBet > balance) { log.error("Loss " + balance + "which triggers the stop"); game.stop(); } if (profitTotal >= config.targetProfit.value) { log.success('Target Profit ' +(profitTotal).toFixed(8) + ' ' + currency.currencyName); game.stop(); } if (balance >= config.targetBalance.value) { log.success('Target Balance ' + balance + ' ' + currency.currencyName); game.stop(); } }); } } setInterval(function() { var cur = new Date(); var t = Math.floor((cur - startTime) / 1000); var hour = Math.floor(t / 3600); if (hour < 10) { hour = '0' + Math.floor(t / 3600); } t = t % 3600; var minutes = Math.floor(t / 60); if (minutes < 10) { minutes = '0' + t % 60; } if(run) { timestring = "PlayTime " + hour + ":" + minutes + ":" + seconds + " "; } else { timestring = ""; } },'1000'); 1 Link to comment Share on other sites More sharing options...
MandaAde10000 Posted July 15, 2022 Author Share Posted July 15, 2022 Basically that's what I want, set up an automatic sequence and bet it until it comes, where at that time the script to run On 7/12/2022 at 4:35 PM, Skele said: <p> I do, currently its just setup so that you can do number of games, or hunting for so many flips of a coin.<br> It also has an input where you can specify a pattern to repeat like 1101 for tails tail heads tails. This same also displays a history of the coin flips. That part used to be limited to the last 80 flips but something happened and now it just goes on forever hahaha. But it is a user and not in the sandbox. And i unless you are min betting and just going for multiplier i don't believe it will be more profitable than manually playing. </p> Basically that's what I want, set up an automatic sequence and bet it until it comes, where at that time the script to run Link to comment Share on other sites More sharing options...
Pkpehlgshwb Posted July 15, 2022 Share Posted July 15, 2022 21 jam yang lalu, Skele berkata: Ada banyak banyak hanya masalah sintaksis kecil. Hal-hal seperti memiliki penanda string terbuka " tetapi tidak pernah menutupnya" sehingga akan tumpah ke semua kode yang mengikutinya. Saya belum menjalankan skrip tetapi itu akan memuat dan memberi Anda UI dan semuanya sekarang. Jika Anda belum menggunakannya, saya sarankan mengunduh kode visual studio, atau notepad ++ atau keduanya. Keduanya memiliki beberapa alat hebat seputar penyorotan kode dan memastikan Anda memiliki semua tag penutup dan tidak ada ketidakcocokan. Ada sejumlah tempat di mana breaket yang salah digunakan yang juga merupakan masalah ({[ tidak semuanya sama :). Bagaimanapun, kedua program tersebut gratis untuk diunduh dan memiliki komunitas yang baik yang mendukungnya jika Anda memiliki pertanyaan. //Bc Game Hash Dadu var config = { baseBet: { label: "base bet", nilai:currency.minAmount, type: "number" }, //payout: { label: "payout", value: 2, type: "number" }, minChance : { label: "min change", nilai: 1, ketik:"number" }, maxChance: { label: "max cahge", nilai: 98, ketik:"number" }, stop: { label: "stop if bet >", nilai: 1e8, ketik: "number" }, balanceRisk: { label: "balance risk %", nilai: 100, ketik:"number" }, targetProfit: {label: "Target-Profit-Stop", nilai : 1000, ketik:"number"}, targetBalance: {label: "Target-Balance-Stop", nilai: 1000, ketik:"number"}, onLoseTitle: {label: "On Lose", ketik: "title" }, onLoss: { label: "", nilai: "reset", ketik: "radio", opsi: [ { nilai: "reset", label: "Kembali ke taruhan dasar" }, { nilai: "kenaikan", label: "tingkatkan taruhan sebesar (pengganda kerugian)" }, ], }, lossStreak: { label: "kerugian beruntun", nilai:2, ketik: "angka" }, lossMultiplier: { label: "pengganda kerugian", nilai: 2, ketik: "angka " }, onWinTitle: { label: "On Win", ketik: "title" }, onWin: { label: "", nilai: "reset", ketik: "radio", options: [ { nilai: "reset", label: "Return to base bet" }, { value: "increase", label: "increase bet by (winmultiplier)" }, ], }, winStreak: { label: "win streak", nilai: 2, ketik: "number"}, winMultiplier: { label: "win multiplier", nilai: 2, ketik: "number" }, }; var run = salah; //var bet = currency.amount/config.divider.value; var bet = config.baseBet.value; var basebet = taruhan; var startTime = Tanggal baru(); var string waktu = ""; var roundMenang = 0; var roundKerugian = 0; var chance = Math.random() * (config.maxChance.value - config.minChance.value) + config.minChance.value; var saat iniProfitt = 0; var saatProfittt = 0; var curProf = 0; var keuntunganTotal = 0; var balance = mata uang.jumlah; var saldo terakhir = keseimbangan; fungsi main(){ run = true; var currentBet = config.baseBet.value; game.onBet = function () { kesempatan = Math.random() * (config.maxChance.value - config.minChance.value) + config.minChance.value; game.bet(Taruhan saat ini, (99/peluang).untuk Tetap(4)).lalu(fungsi (pembayaran) { if (pembayaran > 1) { saldo += Taruhan saat ini*99/Kesempatan- Saat iniBet; keuntunganTotal += Taruhan saat ini*99/ kesempatan-saat iniBet; }else { balance -= currentBet; profitTotal -= currentBet; } if(saldo >= saldo terakhir) { lastbalance = saldo; } if (pembayaran > 1) { curProf = currentBet*99/chance-currentBet; putaranMenang++; if (config.onWin.value === "reset") { currentBet = config.baseBet.value; } else { if (roundWins % config.winStreak.value === 0) { currentBet *= config.winMultiplier.value; } } log.success("Kami menang, jadi taruhan berikutnya adalah " + currentBet + " " + currency.currencyName); } else { curProf = -currentBet; putaranKerugian++; if (config.onLoss.value === "reset") { currentBet = config.baseBet.value; } else { //currentBet *= config.lossMultiplier.value; if (roundLosses % config.lossStreak.value === 0) { currentBet *= config.lossMuliplier.value; } } log.error("Kami kalah, jadi taruhan berikutnya adalah " + currentBet + " " + currency.currencyName); } CurrentProfitt += curProf; if (laba saat ini >= Laba saat ini) { Laba saat ini = Laba saat ini; currentBet = config.baseBet.value; putaranMenang = 0; putaranKerugian = 0; } jika (currentBet < config.baseBet.value) { currentBet = config.baseBet.value } var stoplevel = (100-config.balanceRisk.value)*lastbalance/100; if(balance - currentBet < stoplevel) { log.error("Risiko Saldo " + CurrentBet + "Stop"); permainan.berhenti(); } if (currentBet > config.stop.value) { log.error("Akan bertaruh " + currentBet + " yang memicu stop"); permainan.berhenti(); } if (Bet saat ini > saldo) { log.error("Loss " + balance + "yang memicu stop"); permainan.berhenti(); } if (profitTotal >= config.targetProfit.value) { log.success('Target Profit ' +(profitTotal).toFixed(8) + ' ' + currency.currencyName); permainan.berhenti(); } if (saldo >= config.targetBalance.value) { log.success('Target Saldo ' + saldo + ' ' + currency.currencyName); permainan.berhenti(); } }); }} setInterval(function() { var cur = new Date(); var t = Math.floor((cur - startTime) / 1000); var hour = Math.floor(t / 3600); if (jam < 10) { jam = '0' + Math.floor(t / 3600); } t = t % 3600; var menit = Math.floor(t / 60); if (menit < 10) { menit = '0' + t % 60; } if(run) { timestring = "PlayTime " + jam + ":" + menit + ":" + detik + " "; } else { string waktu = ""; } },'1000'); 21 hours ago, Skele said: Ada banyak banyak hanya masalah sintaksis kecil. Hal-hal seperti memiliki penanda string terbuka " tetapi tidak pernah menutupnya" sehingga akan tumpah ke semua kode yang mengikutinya. Saya belum menjalankan skrip tetapi itu akan memuat dan memberi Anda UI dan semuanya sekarang. Jika Anda belum menggunakannya, saya sarankan mengunduh kode visual studio, atau notepad ++ atau keduanya. Keduanya memiliki beberapa alat hebat seputar penyorotan kode dan memastikan Anda memiliki semua tag penutup dan tidak ada ketidakcocokan. Ada sejumlah tempat di mana breaket yang salah digunakan yang juga merupakan masalah ({[ tidak semuanya sama :). Bagaimanapun, kedua program tersebut gratis untuk diunduh dan memiliki komunitas yang baik yang mendukungnya jika Anda memiliki pertanyaan. //Bc Game Hash Dadu var config = { baseBet: { label: "base bet", nilai:currency.minAmount, type: "number" }, //payout: { label: "payout", value: 2, type: "number" }, minChance : { label: "min change", nilai: 1, ketik:"number" }, maxChance: { label: "max cahge", nilai: 98, ketik:"number" }, stop: { label: "stop if bet >", nilai: 1e8, ketik: "number" }, balanceRisk: { label: "balance risk %", nilai: 100, ketik:"number" }, targetProfit: {label: "Target-Profit-Stop", nilai : 1000, ketik:"number"}, targetBalance: {label: "Target-Balance-Stop", nilai: 1000, ketik:"number"}, onLoseTitle: {label: "On Lose", ketik: "title" }, onLoss: { label: "", nilai: "reset", ketik: "radio", opsi: [ { nilai: "reset", label: "Kembali ke taruhan dasar" }, { nilai: "kenaikan", label: " lncrease bet by (loss multiplier)" }, ], }, lossStreak: { label: "loss streak", nilai:2, ketik: "number" }, lossMultiplier: { label: "loss multiplier", nilai: 2, ketik : "number" }, onWinTitle: { label: "On Win", ketik: "title" }, onWin: { label: "", nilai: "reset", ketik: "radio", options:[ { nilai: "reset", label: "Kembali ke taruhan dasar" }, { nilai: "kenaikan", label: "tingkatkan taruhan sebesar (winmultiplier)" }, ], }, winStreak: { label: "win streak", nilai: 2, ketik: "angka"}, winMultiplier: { label: " menang pengali", nilai: 2, ketik: "angka" }, }; var run = salah; //var bet = currency.amount/config.divider.value; var bet = config.baseBet.value; var basebet = taruhan; var startTime = Tanggal baru(); var string waktu = ""; var roundMenang = 0; var roundKerugian = 0; var chance = Math.random() * (config.maxChance.value - config.minChance.value) + config.minChance.value; var saat iniProfitt = 0; var saatProfittt = 0; var curProf = 0; var keuntunganTotal = 0; var balance = mata uang.jumlah; var saldo terakhir = keseimbangan; fungsi main(){ run = true; var currentBet = config.baseBet.value; game.onBet = function () { kesempatan = Math.random() * (config.maxChance.value - config.minChance.value) + config.minChance.value; game.bet(Bet saat ini, (99/kesempatan).toFixed(4)).kemudian(fungsi (pembayaran) { if (pembayaran > 1) { saldo += CurrentBet*99/ Chance-currentBet; profitTotal += CurrentBet*99/ chance-currentBet; }else { balance -= currentBet; profitTotal -= currentBet; } if(saldo >= saldo terakhir) { lastbalance = saldo; } if (pembayaran > 1) { curProf = currentBet*99/chance-currentBet; putaranMenang++; if (config.onWin.value === "reset") { currentBet = config.baseBet.value; } else { if (roundWins % config.winStreak.value === 0) { currentBet *= config.winMultiplier.value; } } log.success("Kami menang, jadi taruhan berikutnya adalah " + currentBet + " " + currency.currencyName); } else { curProf = -currentBet; putaranKerugian++; if (config.onLoss.value === "reset") { currentBet = config.baseBet.value; } else { //currentBet *= config.lossMultiplier.value; if (roundLosses % config.lossStreak.value === 0) { currentBet *= config.lossMuliplier.value; } } log.error("Kami kalah, jadi taruhan berikutnya adalah " + currentBet + " " + currency.currencyName); } CurrentProfitt += curProf; if (laba saat ini >= Laba saat ini) { Laba saat ini = Laba saat ini; currentBet = config.baseBet.value; putaranMenang = 0; putaranKerugian = 0; } if (currentBet < config.baseBet.value) { currentBet = config.baseBet.value } var stoplevel = (100-config.balanceRisk.value)*lastbalance/100; if(balance - currentBet < stoplevel) { log.error("Risiko Saldo " + CurrentBet + "Stop"); permainan.berhenti(); } if (currentBet > config.stop.value) { log.error("Akan bertaruh " + currentBet + " yang memicu stop"); permainan.berhenti(); } if (currentBet > balance) { log.error("Loss " + balance + "yang memicu stop"); permainan.berhenti(); } if (profitTotal >= config.targetProfit.value) { log.success('Target Profit ' +(profitTotal).toFixed(8) + ' ' + currency.currencyName); permainan.berhenti(); } if (saldo >= config.targetBalance.value) { log.success('Target Saldo ' + saldo + ' ' + currency.currencyName); permainan.berhenti(); } }); } } setInterval(function() { var cur = new Date(); var t = Math.floor((cur - startTime) / 1000); var hour = Math.floor(t / 3600); if (jam < 10) { jam = '0' + Math.floor(t / 3600); } t = t % 3600; var menit = Math.floor(t / 60); if (menit < 10) { menit = '0' + t % 60; } if(run) { timestring = "PlayTime " + jam + ":" + menit + ":" + detik + " "; } else { string waktu = ""; } },'1000'); thank you sir...for fixing this script..i am very grateful for the help..God always bless you thank you sir...for fixing this script..i am very grateful for the help..God always bless you Link to comment Share on other sites More sharing options...
Pkpehlgshwb Posted July 17, 2022 Share Posted July 17, 2022 On 13/7/2022 at 02.35, Skele said: <p> Ya, saat ini hanya pengaturan sehingga Anda dapat melakukan sejumlah permainan, atau berburu begitu banyak lemparan koin.<br> Ini juga memiliki input di mana Anda dapat menentukan pola untuk diulang seperti 1101 untuk ekor ekor ekor kepala. Hal yang sama juga menampilkan riwayat lemparan koin. Bagian itu dulu terbatas pada 80 lemparan terakhir tetapi sesuatu terjadi dan sekarang berlangsung selamanya hahaha. Tapi itu adalah pengguna dan bukan di kotak pasir. Dan saya kecuali Anda bertaruh minimum dan hanya mencari pengganda, saya tidak percaya itu akan lebih menguntungkan daripada bermain secara manual. </p> Sir can you add stop profit in this script so that I can control it... thanks sir.. var config = { baseBet: { label: "Base Bet", value: currency.minAmount, type: "number" }, basePayout: { label: "Base Payout", value: 2, type: "number" }, newPayout: { label: "New Payout", value: 1.25, type: "number" }, stop: { label: "Stop If Next Bet >", value: 1e8, type: "number" }, onLoseTitle: { label: "On Lose", type: "title" }, onLoss: { label: "", value: "increase", type: "radio", options: [ { value: "increase", label: "Increase bet by (loss multiplier)" }, ], }, lossMultiplier: { label: "loss multiplier", value: 6, type: "number" }, onWinTitle: { label: "On Win", type: "title" }, onWin: { label: "", value: "reset", type: "radio", options: [ { value: "reset", label: "Return to base bet" }, ], }, }; function main() { var currentBet = config.baseBet.value; var currentPayout = config.basePayout.value; game.onBet = function () { game.bet(currentBet, currentPayout).then(function (payout) { if (payout > 1) { if (config.onWin.value === "reset") { currentBet = config.baseBet.value; currentPayout = config. basePayout.value; } log.success( "We won payout " + " " +currentPayout + "X " + "so next bet will be " + currentBet + " " + currency.currencyName ); } else { if (config.onLoss.value === "reset") { currentBet = config.baseBet.value; currentPayout = config.basePayout.value; } else { currentBet *= config.lossMultiplier.value; currentPayout = config.newPayout.value; } log.error( "We lost payout " + " " +currentPayout + "X " + "so next bet will be " + currentBet + " " + currency.currencyName ); } if (currentBet > config.stop.value) { log.error( "Was about to bet " + currentBet + " which triggers the stop" ); game.stop(); } }); }; } Link to comment Share on other sites More sharing options...
MandaAde10000 Posted July 21, 2022 Author Share Posted July 21, 2022 On 7/12/2022 at 4:35 PM, Skele said: <p> I do, currently its just setup so that you can do number of games, or hunting for so many flips of a coin.<br> It also has an input where you can specify a pattern to repeat like 1101 for tails tail heads tails. This same also displays a history of the coin flips. That part used to be limited to the last 80 flips but something happened and now it just goes on forever hahaha. But it is a user and not in the sandbox. And i unless you are min betting and just going for multiplier i don't believe it will be more profitable than manually playing. </p> Basically that's what I want, set up an automatic sequence and bet it until it comes, where at that time the script to run Link to comment Share on other sites More sharing options...
Bssqhkmuhwb Posted July 25, 2022 Share Posted July 25, 2022 On 7/13/2022 at 2:35 AM, Skele said: <p> I do, currently its just setup so that you can do number of games, or hunting for so many flips of a coin.<br> It also has an input where you can specify a pattern to repeat like 1101 for tails tail heads tails. This same also displays a history of the coin flips. That part used to be limited to the last 80 flips but something happened and now it just goes on forever hahaha. But it is a user and not in the sandbox. And i unless you are min betting and just going for multiplier i don't believe it will be more profitable than manually playing. </p> you help my to add stop profit at this script...please sir... thanks.. var config = { bet: { label: "bet profit(Min allowed amount / split)", value: 0.002, type: "number" }, splitSize: { label: "Size of Split", value: 20, type: "number" }, cycleSize: { label: "Maximum number of Cycles", value: 200, type: "number" }, payout: { label: "payout", value: 2.1, type: "number" }, }; var betAmount = 0; var iterationCount = 0; var betCount = 0; function createArray(profit,splitSize){ var item = strip(profit/splitSize); var splits = []; for (var i=0;i<splitSize; i++){ splits.push(item); } return splits; } var bettingArray; function main() { bettingArray = createArray(config.bet.value,config.splitSize.value); betAmount = strip(bettingArray[0] + bettingArray[bettingArray.length-1]); game.onBet = function() { game.bet(betAmount, config.payout.value).then(function(payout) { betCount++; var message = betAmount + " NewBet" + betAmount + " Bets Remaining[" + bettingArray.length + "]"; if (payout > 1) { log.success(iterationCount + " Won! " + message); console.log(iterationCount + " Won! " + betAmount); bettingArray.shift(); bettingArray.pop(); } else { bettingArray.push(betAmount); log.error("Lost! " + message); console.log("Lost! " + betAmount); } if(bettingArray.length == 0 || betCount == config.cycleSize.value){ console.log("Resetting the bet!"); bettingArray = createArray(config.bet.value,config.splitSize.value); iterationCount++; betCount = 0; clearConsoleLog(); } if(bettingArray.length == 1){ betAmount = bettingArray[0]; }else{ betAmount = strip(bettingArray[0] + bettingArray[bettingArray.length-1]); } console.log(betCount + " NewBet" + betAmount + " BettingAray[" + bettingArray.length + "]" + bettingArray.join(" ")); }); }; } function clearConsoleLog(){ console.log("Restarting!"); } function strip(number) { return (parseFloat(number).toPrecision(10))/1; } Link to comment Share on other sites More sharing options...
NoHairDontCare Posted May 22, 2023 Share Posted May 22, 2023 Curious, how do you script flip coin? I dont see the advanced tab. Via console? Ive ndver tried that way. Thanks Link to comment Share on other sites More sharing options...
Skele Posted May 22, 2023 Share Posted May 22, 2023 @NoHairDontCare open your browser push F12 Link to comment Share on other sites More sharing options...
Recommended Posts
You need to be a member in order to leave a comment
Sign up for a new account in our community. It's easy!
Register a new accountAlready have an account? Sign in here.
Sign In Now