Advertisement
dicekode

botmanager_config_01

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