Advertisement
dicekode

botmanager_config_08

Feb 28th, 2023
676
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // CONFIG-08
  2. // LINIER ARRAY
  3.  
  4. function bet_init(balance,minbet,use){
  5.  
  6.     data     = lastBet[use]
  7.     logic_is = "08"
  8.     basebet  = balance * 1e-7
  9.     if(basebet < minbet){basebet = minbet}
  10.  
  11.     config_add = {
  12.         'basebet'   : basebet,
  13.         'chance'    : 30,
  14.         'nextbet'   : basebet,
  15.         'bethigh'   : false,
  16.     }
  17.  
  18.     config  = {
  19.         'balance_start': balance,
  20.         'partialprofit': 0,
  21.         'minimum_bet' : minbet,
  22.         'bets' : 0,
  23.         'profit' : 0,
  24.         'currentprofit' : 0,
  25.         'currentstreak' : 0,
  26.         'winstreak' : 0,
  27.         'losestreak' : 0,
  28.         'previousbet' : basebet,
  29.         'balance_high' : 0,
  30.         'drop_value' : 0,
  31.         'wager' : 0,
  32.         'win' : false,
  33.         'balance' : balance,
  34.         'stopwin' : false,
  35.         'stopnow' : false,
  36.         'profitc' : 0,
  37.         'ctlose' : 0,
  38.         'maxstreak' : 0,
  39.         'maxdrop' : 0,
  40.         'maxlose' : 0,
  41.         'target' : balance*1.50,
  42.     }
  43.  
  44.     if(lastBet.length > 1){
  45.         $('#balance'+use).html('<span style="color:DodgerBlue;">'+balance.toFixed(8)+'</span>')
  46.         $('#hid_balance'+use).val(balance)
  47.         $('#logic'+use).html(logic_is)
  48.     }
  49.  
  50.     config      = Object.assign(config, config_add)
  51.     data.config = config
  52.  
  53.     if(balance > 0){data.betroll = true}
  54.     if(data.betroll){get_place_bet(data.coin,data.config.chance,data.config.nextbet,data.config.bethigh,use)}
  55. }
  56.  
  57. function bet_dobet(use){
  58.     data = lastBet[use]
  59.     Object.keys(data.config).forEach(function(key){eval(key+" = "+data.config[key])})
  60.  
  61.     arr_chance = [25,10,35,7,15,35,19,30,15,25,32,15,10,25,26,35,12,7,17,24,25,26,10,16,19,7,9,10,28,11,12,22,17,19,25,26,20,12,18,19]
  62.     arr_multi  = [100,100,140,-20,20,120,39,40,15,140,70,20,19,141,40,70,-35,10,22,141,40,41,-29,130,40,-30,20,20,140,-30,20,1.45,1.39,40,40,40,40,-30,39,40]
  63.  
  64.     if(win){
  65.         ctlose  = 0
  66.         chance  = 30
  67.         nextbet = basebet
  68.     } else {
  69.         chance  = arr_chance[ctlose]
  70.         nextbet = nextbet + (nextbet * (arr_multi[ctlose]/100))
  71.         ctlose += 1
  72.     }
  73.  
  74.     if (nextbet < basebet){nextbet = basebet}
  75.     if (nextbet < minimum_bet) { nextbet = minimum_bet }
  76.  
  77.     if (ctlose > maxstreak && maxstreak > 0 ){stopwin = true}
  78.     if (balance > target && target > 0) { stopnow = true }
  79.     if (balance < maxlose && maxlose > 0) {
  80.         nextbet = minimum_bet
  81.         stopnow = true
  82.     }
  83.  
  84.     previousbet = nextbet
  85.     Object.keys(data.config).forEach(function(key){data.config[key] = eval(key)})
  86.  
  87.     if(data.betroll){get_place_bet(data.coin,data.config.chance,data.config.nextbet,data.config.bethigh,use)}
  88. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement