Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // CONFIG-X1
- // BETLOW
- function bet_init(balance,minbet,use){
- data = lastBet[use]
- logic_is = "X1"
- basebet = balance/1e5
- if(basebet < minbet){basebet = minbet}
- data.prediction = []
- for(var i = 5; i < 100; i+=5){
- data.prediction.push({chance: i,populer: 0})
- }
- config_add = {
- 'basebet' : basebet,
- 'populer' : 0,
- 'chance' : 90,
- 'nextbet' : basebet,
- 'bethigh' : false,
- }
- config = {
- 'balance_start': balance,
- 'partialprofit': 0,
- 'minimum_bet' : minbet,
- 'result' : 0,
- 'bets' : 0,
- 'profit' : 0,
- 'currentprofit' : 0,
- 'currentstreak' : 0,
- 'winstreak' : 0,
- 'losestreak' : 0,
- 'previousbet' : basebet,
- 'balance_high' : 0,
- 'drop_value' : 0,
- 'wager' : 0,
- 'balance' : balance,
- 'win' : false,
- 'stopwin' : false,
- 'stopnow' : false,
- 'profitc' : 0,
- 'ctlose' : 0,
- 'maxstreak' : 0,
- 'maxdrop' : 20,
- 'maxlose' : 0,
- 'target' : balance*1.10,
- }
- 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])})
- for(var i=0;i<data.prediction.length;i++){
- if(data.prediction[i].chance > result && data.prediction[i].chance < result + 5){
- data.prediction[i].populer += 1
- }
- if(populer < data.prediction[i].populer && data.prediction[i].chance < 75){
- populer = data.prediction[i].populer
- if(populer > 5){
- chance = data.prediction[i].chance
- } else {
- chance = 90
- }
- }
- }
- if(bets%2500 == 0){
- populer = 0
- for(var i=0;i<data.prediction.length;i++){
- data.prediction[i].populer = 0
- }
- }
- profitc += currentprofit
- if(profitc > 0){
- profitc = 0
- nextbet = basebet
- } else {
- if (chance > 80){
- nextbet = previousbet * 1.01
- } else {
- nextbet = Math.abs(profitc)/((95/chance)-1)+basebet
- }
- }
- 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