Advertisement
dicekode

botmanager_config_03

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