Created
August 28, 2018 20:09
-
-
Save roninhack/4a210571767897924390c66dda549f0b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* purzi's Count up script V.1 | |
Don't copy this part :D | |
donations for idk memes | |
Btc: DCJ1S92joR9uZfujkxo8utadCEZoWCSBv | |
ETH: 0x6158e8A6574EdCAa6d229D3b67b726f70C704911 | |
BCH: qq0yjc8ts8uvt75y2f7kmk3yme2jlhsxwy9w5ua5v2 | |
you can tip me on bustadice or bustabit "/tip purzi" | |
*/ | |
const baseBet = 200 //base bet (in sats) | |
const baseTarget = 1.20 //base target | |
const maxRolls = 200 //max rolls script will do | |
const infiniteRolls = true //ignores max rolls | |
const changeSeedAfterY = 200 //change seed after this many rolls | |
let target = baseTarget //initialize target as base | |
let betCount = 0 //bet count if using max rolls | |
this.log(`Give me all the wins!...`) | |
while (betCount < maxRolls || infiniteRolls) { | |
//make bet, wait for result | |
const {multiplier} = await this.bet(baseBet, target) | |
if (multiplier < target) { | |
//loss | |
this.log(`Loss. :/`) | |
//increase target by baseTarget | |
target = target + baseTarget | |
} else { | |
//win | |
//set target back to baseTarget | |
target = baseTarget | |
this.log(`Win.`) | |
} | |
betCount++ | |
if (betCount % changeSeedAfterY == 0 && betCount != 0) { | |
const { server_seed_hash } = await this.newSeedPair() | |
await this.log("The new server seed has the hash: ", server_seed_hash) | |
// set the client seed | |
const clientSeed = randomSeed() | |
await this.setClientSeed(clientSeed) | |
await this.log("The client seed was set to: ", clientSeed) | |
} | |
} | |
function randomSeed() { | |
const words = ['Alpha ','Bra3qtwvo ','Charlie ','Delta ','Echo ', | |
'Foxtrot ','Go3tewlf ','Hotel ','Indda ','Juliet ', | |
'Kiqagalo ','L24rqwima ','Mirhe ','November ','Oscar ', | |
'Papayww ','Quebec ','Romeo ','Sierra ','Tango ', | |
'Uniform ','Victor ','Whiskey ','X-ray ','pooper ','Zulu '] | |
return words[Math.floor(words.length * Math.random())] + words[Math.floor(words.length * Math.random())] + words[Math.floor(words.length * Math.random())] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment