Advertisement
dicekode

botmanager_config_x_02

Mar 1st, 2023
1,054
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // CONFIG-X1
  2. // BETLOW
  3.  
  4. function bet_init(balance,minbet,use){
  5.  
  6.     data     = lastBet[use]
  7.     logic_is = "X1"
  8.     basebet  = balance/1e5
  9.     if(basebet < minbet){basebet = minbet}
  10.  
  11.     data.prediction = []
  12.     for(var i = 5; i < 100; i+=5){
  13.         data.prediction.push({chance: i,populer: 0})
  14.     }
  15.  
  16.     config_add = {
  17.         'basebet' : basebet,
  18.         'populer' : 0,
  19.         'chance'  : 90,
  20.         'nextbet' : basebet,
  21.         'bethigh' : false,
  22.     }
  23.  
  24.     config  = {
  25.         'balance_start': balance,
  26.         'partialprofit': 0,
  27.         'minimum_bet' : minbet,
  28.         'result' : 0,
  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.         'balance' : balance,
  40.         'win' : false,
  41.         'stopwin' : false,
  42.         'stopnow' : false,
  43.         'profitc' : 0,
  44.         'ctlose' : 0,
  45.         'maxstreak' : 0,
  46.         'maxdrop' : 20,
  47.         'maxlose' : 0,
  48.         'target' : balance*1.10,
  49.     }
  50.     if(lastBet.length > 1){
  51.         $('#balance'+use).html('<span style="color:DodgerBlue;">'+balance.toFixed(8)+'</span>')
  52.         $('#hid_balance'+use).val(balance)
  53.         $('#logic'+use).html(logic_is)
  54.     }
  55.  
  56.     config      = Object.assign(config, config_add)
  57.     data.config = config
  58.  
  59.     if(balance > 0){data.betroll = true}
  60.     if(data.betroll){get_place_bet(data.coin,data.config.chance,data.config.nextbet,data.config.bethigh,use)}
  61. }
  62.  
  63. function bet_dobet(use){
  64.     data = lastBet[use]
  65.     Object.keys(data.config).forEach(function(key){eval(key+" = "+data.config[key])})
  66.  
  67.     for(var i=0;i<data.prediction.length;i++){
  68.         if(data.prediction[i].chance > result && data.prediction[i].chance < result + 5){
  69.             data.prediction[i].populer += 1
  70.         }
  71.         if(populer < data.prediction[i].populer && data.prediction[i].chance < 75){
  72.             populer = data.prediction[i].populer
  73.             if(populer > 5){
  74.                 chance  = data.prediction[i].chance
  75.             } else {
  76.                 chance  = 90
  77.             }
  78.         }
  79.     }
  80.  
  81.     if(bets%2500 == 0){
  82.         populer = 0
  83.         for(var i=0;i<data.prediction.length;i++){
  84.             data.prediction[i].populer = 0
  85.         }
  86.     }
  87.  
  88.     profitc += currentprofit
  89.     if(profitc > 0){
  90.         profitc = 0
  91.         nextbet = basebet
  92.     } else {
  93.         if (chance > 80){
  94.             nextbet = previousbet * 1.01
  95.         } else {
  96.             nextbet = Math.abs(profitc)/((95/chance)-1)+basebet
  97.         }
  98.     }
  99.  
  100.  
  101.  
  102.    
  103.     if (nextbet < basebet){nextbet = basebet}
  104.     if (nextbet < minimum_bet) { nextbet = minimum_bet }
  105.  
  106.     if (ctlose > maxstreak && maxstreak > 0 ){stopwin = true}
  107.     if (balance > target && target > 0) { stopnow = true }
  108.     if (balance < maxlose && maxlose > 0) {
  109.         nextbet = minimum_bet
  110.         stopnow = true
  111.     }
  112.  
  113.     previousbet = nextbet
  114.     Object.keys(data.config).forEach(function(key){data.config[key] = eval(key)})
  115.  
  116.     if(data.betroll){get_place_bet(data.coin,data.config.chance,data.config.nextbet,data.config.bethigh,use)}
  117. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement