Advertisement
dicekode

botmanager_config_06

Feb 28th, 2023
568
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // CONFIG-06
  2. // ARRAY CHANCE BASED
  3.  
  4. function bet_init(balance,minbet,use){
  5.  
  6.     data     = lastBet[use]
  7.     logic_is = "05"
  8.     chrange  = [5,15]
  9.     basebet  = minbet
  10.     if(basebet < minbet){basebet = minbet}
  11.  
  12.     data.arr = []
  13.     data.arr.chance = []
  14.     data.arr.lose = []
  15.     data.arr.streak = []
  16.     data.arr.drop = []
  17.     len = Number(chrange[1])-Number(chrange[0])
  18.     for(var i=0;i<=len;i++){
  19.         data.arr.chance.push(Number(chrange[0]+i))
  20.         data.arr.lose.push(0)
  21.         data.arr.streak.push(0)
  22.         data.arr.drop.push(0)
  23.     }
  24.  
  25.     config_add = {
  26.         'del_ch'    : false,
  27.         'del_id'    : 0,
  28.         'chrange'   : chrange,
  29.         'bet_hold'  : 15,
  30.         'bet_incr'  : 10,
  31.         'cut_drop'  : 1,
  32.         'minbet'    : minbet,
  33.         'basediv'   : 0,
  34.         'profitc'   : 0 ,
  35.         'ctlose'    : 0,
  36.         'betroll'   : 0,
  37.         'balhigh'   : balance,
  38.         'chance'    : chrange[0],
  39.         'basebet'   : basebet,
  40.         'nextbet'   : basebet,
  41.         'chance'    : 66,
  42.         'bethigh'   : false,
  43.         'ctlose'    : 0,
  44.         'maxstreak' : 0,
  45.         'maxdrop'   : 50,
  46.         'maxlose'   : 0,
  47.         'target'    : balance*1.30,
  48.     }
  49.  
  50.     config  = {
  51.         'balance_start': balance,
  52.         'partialprofit': 0,
  53.         'minimum_bet' : minbet,
  54.         'bets' : 0,
  55.         'profit' : 0,
  56.         'currentprofit' : 0,
  57.         'currentstreak' : 0,
  58.         'winstreak' : 0,
  59.         'losestreak' : 0,
  60.         'previousbet' : basebet,
  61.         'balance_high' : 0,
  62.         'drop_value' : 0,
  63.         'wager' : 0,
  64.         'win' : false,
  65.         'balance' : balance,
  66.         'stopwin' : false,
  67.         'stopnow' : false,
  68.     }
  69.  
  70.     if(lastBet.length > 1){
  71.         $('#balance'+use).html('<span style="color:DodgerBlue;">'+balance.toFixed(8)+'</span>')
  72.         $('#hid_balance'+use).val(balance)
  73.         $('#logic'+use).html(logic_is)
  74.     }
  75.  
  76.     config      = Object.assign(config, config_add)
  77.     data.config = config
  78.  
  79.     if(balance > 0){data.betroll = true}
  80.     if(data.betroll){get_place_bet(data.coin,data.config.chance,data.config.nextbet,data.config.bethigh,use)}
  81. }
  82.  
  83. function bet_dobet(use){
  84.     data = lastBet[use]
  85.     Object.keys(data.config).forEach(function(key){eval(key+" = "+data.config[key])})
  86.  
  87.     if (betroll == 0){betincrement_profitbet = 0}
  88.     betroll += 1
  89.     profitc += currentprofit
  90.  
  91.     if(profitc > 0){
  92.         profitc = 0
  93.         ctlose  = 0
  94.         balhigh = balance
  95.         if(del_ch){
  96.             del_ch = false
  97.             data.arr.chance.splice(del_id,1)
  98.             data.arr.lose.splice(del_id,1)
  99.             data.arr.streak.splice(del_id,1)
  100.             data.arr.drop.splice(del_id,1)
  101.         }
  102.         if(data.arr.chance.length == 0){
  103.             stopnow = true
  104.         } else {
  105.             if(data.arr.chance.length == 1){
  106.                 chance = data.arr.chance[0]
  107.             } else {
  108.                 chance = data.arr.chance[randchance(0,data.arr.chance.length-1)]
  109.             }
  110.             payout = 95/chance
  111.             betrisk_maxls = payout * bet_hold
  112.             betrisk_multi = payout / (payout - 1)
  113.             betrisk_div   = (betrisk_multi ** betrisk_maxls) * betrisk_maxls / (betrisk_maxls  * (betrisk_maxls-1))
  114.            
  115.             basebet = balance / betrisk_div
  116.             basediv = betrisk_div
  117.         }
  118.     } else {
  119.         ctlose += 1
  120.     }
  121.  
  122.     for(var i=0;i<data.arr.chance.length;i++){
  123.         if (data.arr.chance[i]==chance) {
  124.  
  125.             bet_drop = (balhigh-balance)/balhigh*100
  126.             if (bet_drop > data.arr.drop[i]) {
  127.                 data.arr.drop[i] = bet_drop
  128.                 // ch_drop  = true
  129.             }
  130.  
  131.             if (ctlose > data.arr.lose[i]) {
  132.                 data.arr.lose[i] = ctlose
  133.                 // ch_maxls = true
  134.             }
  135.  
  136.             if (basebet < minbet) {
  137.                 use_bet = minbet
  138.             } else {
  139.                 use_bet = basebet
  140.             }          
  141.            
  142.             if (profitc >= 0){
  143.                 betincrement_profitbet = bet_incr
  144.                 nextbet = use_bet
  145.             } else {
  146.                 nextbet = (Math.abs(profitc)/((95/data.arr.chance[i])-1))+(Math.abs(profitc)*(betincrement_profitbet/100)/((payout)-1))
  147.                 betincrement_profitbet -= bet_incr / data.arr.lose[i]
  148.                 if (betincrement_profitbet < 0) { betincrement_profitbet = 0 }
  149.             }
  150.  
  151.             if (data.arr.drop[i] > cut_drop) {
  152.                 del_ch = true
  153.                 del_id = i
  154.             }
  155.  
  156.         }
  157.     }
  158.  
  159.     nextbet = Math.ceil(nextbet*1e8)/1e8
  160.  
  161.     if (nextbet < basebet){nextbet = basebet}
  162.     if (nextbet < minimum_bet) { nextbet = minimum_bet }
  163.  
  164.     if (ctlose > maxstreak && maxstreak > 0 ){stopwin = true}
  165.     if (balance > target && target > 0) { stopnow = true }
  166.     if (balance < maxlose && maxlose > 0) {
  167.         nextbet = minimum_bet
  168.         stopnow = true
  169.     }
  170.  
  171.     previousbet = nextbet
  172.     Object.keys(data.config).forEach(function(key){data.config[key] = eval(key)})
  173.  
  174.     if(data.betroll){get_place_bet(data.coin,data.config.chance,data.config.nextbet,data.config.bethigh,use)}
  175. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement