Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //betset#1
- function bet_init(balance,minbet,use){
- data = lastBet[use]
- logic_is = "M"
- chancef = 5
- basebet = 1e-5
- if(basebet < minbet){basebet = minbet}
- config_add = {
- 'basebet' : basebet,
- 'ctlose' : 0,
- 'ctreset' : 0,
- 'chance' : chancef,
- 'nextbet' : basebet,
- 'bethigh' : false,
- 'maxstreak' : 0,
- 'maxdrop' : 30,
- 'maxlose' : 0,
- 'target' : balance * 1.50,
- }
- config = {
- 'balance_start': balance,
- 'partialprofit': 0,
- 'minimum_bet' : minbet,
- 'bets' : 0,
- 'profit' : 0,
- 'currentprofit' : 0,
- 'currentstreak' : 0,
- 'winstreak' : 0,
- 'losestreak' : 0,
- 'previousbet' : basebet,
- 'balance_high' : 0,
- 'drop_value' : 0,
- 'wager' : 0,
- 'win' : false,
- 'balance' : balance,
- 'stopwin' : false,
- 'stopnow' : false,
- }
- if(lastBet.length > 1){
- $('#balance'+use).html('<span style="color:DodgerBlue;">'+balance.toFixed(8)+'</span>')
- $('#hid_balance'+use).val(balance)
- $('#logic'+use).html(logic_is)
- }
- config = Object.assign(config, config_add)
- data.config = config
- if(balance > 0){data.betroll = true}
- if(data.betroll){get_place_bet(data.coin,data.config.chance,data.config.nextbet,data.config.bethigh,use)}
- }
- function bet_dobet(use){
- data = lastBet[use]
- Object.keys(data.config).forEach(function(key){eval(key+" = "+data.config[key])})
- if(win){
- if(chance > 50){
- ctreset += 1
- if(ctreset > 20){stopnow = true}
- chance = chancef
- }
- ctlose = 0
- nextbet = basebet
- } else {
- ctlose += 1
- //nextbet = previousbet * (1 +(chance*0.02))
- nextbet = nextbet + (nextbet*(15/100))
- if(ctlose%5==0){chance = chance + (chance*(1/100))}
- if(ctlose%10==0){nextbet = nextbet + (nextbet*(35/100))}
- if(ctlose%20==0){nextbet = nextbet - (nextbet*(25/100))}
- if(ctlose%30==0){nextbet = nextbet + (nextbet*(75/100))}
- if(ctlose > 40){nextbet = nextbet - (nextbet*(5/100))}
- }
- if (nextbet < basebet){nextbet = basebet}
- if (nextbet < minimum_bet) { nextbet = minimum_bet }
- if (ctlose > maxstreak && maxstreak > 0 ){stopwin = true}
- if (balance > target && target > 0) { stopnow = true }
- if (balance < maxlose && maxlose > 0) {
- nextbet = minimum_bet
- stopnow = true
- }
- previousbet = nextbet
- Object.keys(data.config).forEach(function(key){data.config[key] = eval(key)})
- if(data.betroll){get_place_bet(data.coin,data.config.chance,data.config.nextbet,data.config.bethigh,use)}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement