Advertisement
dicekode

botmanager_config_07

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