text 投注和2跳过
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 投注和2跳过相关的知识,希望对你有一定的参考价值。
const baseBet = 100
const target = 2.0
const skips = 2 // number to skips after loss
const startHighPlaceAt = 7 // after 6 loss, on 7th time it will place high bets
const highLossBaseBet = 2500 // in satoshi, starting base of high bets
const betMultiplier = 2 // How much to multiply high bets
const changeSeed = true // Change seed after loss
const changeSeedOnLossAt = 2 // change seed after N loss and more
const stopLoss = 0 // Stop script if balance will go under this value, 0 to disable
let engine = this
let _baseBet = baseBet
let _skips = 0
let lossCount = 0
let hloss = 0
let highLossBet = highLossBaseBet
while (true)
{
if(stopLoss > this.balance && stopLoss != 0){
this.log("stopLoss was activated and stopped script")
await this.stop()
}
if(_skips > 0){
await this.skip()
this.log("Skipping bet")
_skips = _skips - 1
collectSound()
continue
} else {
this.log(`Betting ${_baseBet / 100}`)
var { multiplier } = await this.bet(_baseBet, target)
}
if (multiplier < target){ // loss
lossCount++
collectSound()
if (_skips == 0){
_skips = skips
}
if (lossCount == 4){
_skips = skips + 1
}
if (lossCount >= changeSeedOnLossAt && changeSeed == true){
await generateSeed()
}
if (lossCount >= startHighPlaceAt){
hloss++
highLossBet = highLossBet * betMultiplier
_baseBet = highLossBet
}
} else { // win
gong()
hloss = 0
_baseBet = baseBet
_skips = 0
lossCount = 0
highLossBet = highLossBaseBet
}
}
function gong(){
const audio = new Audio("https://bustadice.com/5bb187b7ef764e76fb519939f77288c1.mp3")
audio.play()
return new Promise(resolve => audio.onended = resolve)
}
function collectSound(){
const audio = new Audio ("http://kz-developer.ru/sounds/chipsHandle6.wav")
audio.play()
return new Promise(resolve => audio.onended = resolve)
}
async function generateSeed(){
try{
const { server_seed_hash } = await engine.newSeedPair()
engine.log(`Server Seed: ${server_seed_hash}`)}
catch(e){
engine.log("Server Seed already was placed, make bet first")
}
const clientSeed = randomSeed()
await engine.setClientSeed(clientSeed)
}
function randomSeed(){
const words = ['Alegrans ','Bravonna ','ACharlika ','Delagoni ','Zechoa ','ForextrombXCi ','Hotelkalas ','Gnomussu ','Addictedc ','Aureliaa ','Zigalos ','Wivermaa ',
'Marinerss ','Octoberfestsa ','Nascarss ','Papajans ','Albertsas ','Gomusus ','Fierrar ','GTOM4 ','Unicornon ','Vicsantusa ','Si5kis ','Naviera ','NPoiupletn ','NAntutulikam ']
return words[Math.floor(words.length * Math.random())] + words[Math.floor(words.length * Math.random())] + words[Math.floor(words.length * Math.random())]
}
以上是关于text 投注和2跳过的主要内容,如果未能解决你的问题,请参考以下文章