Advertisement
dicekode

botmanager_config_04

Feb 27th, 2023
473
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // CONFIG-04
  2. // FAST
  3.  
  4. function bet_init(balance,minbet,use){
  5.  
  6.     data     = lastBet[use]
  7.     logic_is = "04"
  8.     basebet  = balance/1e6
  9.     if(basebet < minbet){basebet = minbet}
  10.  
  11.     config_add = {
  12.  
  13.         'basebet'   : basebet,
  14.         'chance'    : 66,
  15.         'minc'      : 9.46,
  16.         'maxc'      : 12.36,
  17.         'multi'     : 1.12,
  18.         'multi2'    : 1.14,
  19.         'somu1f1'   : 0,
  20.         'somu2f1'   : 1,
  21.         'somu1f2'   : 1.74,
  22.         'somu2f2'   : 1.62,
  23.         'point1'    : 16,
  24.         'point2'    : 10,
  25.         'f1'        : true,
  26.         'profitf1'  : 0,
  27.         'nx1'       : 1,
  28.         'f1stw'     : 0,
  29.         'f1stl'     : 0,
  30.         'f1x'       : true,
  31.         'f2'        : false,
  32.         'profitf2'  : 0,
  33.         'nx2'       : 1,
  34.         'f2st'      : 0,
  35.         'nextbet'   : basebet,
  36.         'chance'    : 66,
  37.         'bethigh'   : false,
  38.         'ctlose'    : 0,
  39.         'maxstreak' : 0,
  40.         'maxdrop'   : 30,
  41.         'maxlose'   : 0,
  42.         'target'    : balance*1.50,
  43.     }
  44.  
  45.     config  = {
  46.         'balance_start': balance,
  47.         'partialprofit': 0,
  48.         'minimum_bet' : minbet,
  49.         'bets' : 0,
  50.         'profit' : 0,
  51.         'currentprofit' : 0,
  52.         'currentstreak' : 0,
  53.         'winstreak' : 0,
  54.         'losestreak' : 0,
  55.         'previousbet' : basebet,
  56.         'balance_high' : 0,
  57.         'drop_value' : 0,
  58.         'wager' : 0,
  59.         'win' : false,
  60.         'balance' : balance,
  61.         'stopwin' : false,
  62.         'stopnow' : false,
  63.     }
  64.  
  65.     if(lastBet.length > 1){
  66.         $('#balance'+use).html('<span style="color:DodgerBlue;">'+balance.toFixed(8)+'</span>')
  67.         $('#hid_balance'+use).val(balance)
  68.         $('#logic'+use).html(logic_is)
  69.     }
  70.  
  71.     config      = Object.assign(config, config_add)
  72.     data.config = config
  73.  
  74.     if(balance > 0){data.betroll = true}
  75.     if(data.betroll){get_place_bet(data.coin,data.config.chance,data.config.nextbet,data.config.bethigh,use)}
  76. }
  77.  
  78. function bet_dobet(use){
  79.     data = lastBet[use]
  80.     Object.keys(data.config).forEach(function(key){eval(key+" = "+data.config[key])})
  81.  
  82.     // bethigh = randchance(0,100) > 50
  83.     chance  = randchance(minc*100,maxc*100)/100
  84.     if (f1) {
  85.         if (win) {
  86.            f1x = false
  87.            if (f1stw >= 1 || f1stl >= 1) {
  88.                nextbet = minimum_bet
  89.                nx1     = 1
  90.                f1stw   = 0
  91.                f1x     = true
  92.             } else {
  93.                nx1 += somu1f1
  94.                f1stw += 1
  95.                nextbet = basebet * (multi**nx1)
  96.             }
  97.             f1stl = 0
  98.          } else  {
  99.             f1stw = 0
  100.             if (f1stl >= point1) {
  101.                 nextbet = minimum_bet
  102.                 nx2     = nx1
  103.                 f2      = true
  104.                 f1stl   = 0
  105.                 f1stw   = 0
  106.                 nx1     = 1
  107.                 f1      = false
  108.             } else {
  109.                 if (f1x) {
  110.                    nextbet = minimum_bet
  111.                 } else {
  112.                    nx1 += somu2f1
  113.                    f1stl += 1
  114.                    nextbet = basebet * (multi**nx1)
  115.                 }
  116.             }
  117.         }
  118.     }
  119.     if (f2) {
  120.         if (win) {
  121.             if (f2st >= 1) {
  122.                 f1      = true
  123.                 f2      = false
  124.                 f1x     = true
  125.                 nextbet = minimum_bet
  126.                 nx2     = 1
  127.                 f2st    = 0
  128.             } else {
  129.                 nx2 += somu1f2
  130.                 nextbet = basebet * (multi2**nx2)
  131.                 f2st += 1
  132.             }
  133.         } else {
  134.             if (f2st >= 1 && f2st < point2) {
  135.                 nx2 += somu2f2
  136.                 nextbet = basebet * (multi2**nx2)
  137.                 f2st += 1
  138.             } else {
  139.                 nextbet = minimum_bet
  140.                 f2st    = 0
  141.             }
  142.        }
  143.     }
  144.  
  145.     nextbet = Math.ceil(nextbet*1e8)/1e8
  146.  
  147.     if (nextbet < basebet){nextbet = basebet}
  148.     if (nextbet < minimum_bet) { nextbet = minimum_bet }
  149.  
  150.     if (ctlose > maxstreak && maxstreak > 0 ){stopwin = true}
  151.     if (balance > target && target > 0) { stopnow = true }
  152.     if (balance < maxlose && maxlose > 0) {
  153.         nextbet = minimum_bet
  154.         stopnow = true
  155.     }
  156.  
  157.     previousbet = nextbet
  158.     Object.keys(data.config).forEach(function(key){data.config[key] = eval(key)})
  159.  
  160.     if(data.betroll){get_place_bet(data.coin,data.config.chance,data.config.nextbet,data.config.bethigh,use)}
  161. }                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement