999doge - dynamic basebet

 

Script basebet dinamis, menyesuaikan dengan streak loss dan streak win. 


Kalau berkenan referal

DiceBot 3.4.11

Source Code


--- script ---


base          = balance / 100000
maxloss       = -10
setloss       = 3
setwin        = 4
stopbalance   = balance * 0.5
targetbalance = balance * 1.5
chance        = 65
ifwin         = 1.512345
ifloss        = 1.621345
c1            = 64.542154
c2            = 65.245143
ip            = 0.00000001
justloss      = 0
justwin       = 0
profit1       = 0
stopwin       = false
stopnow       = false
rebet         = true
baseDB        = base
nextbet       = base
resetstats()

function dobet()

    chance = math.random(c1*100,c2*100)/100
    
    if win then
        justwin += 1
        justloss = 0
        if stopnow then stop() end
        if (profit > profit1+ ip) then
            if stopwin then stop() end
            profit1 = profit
            nextbet = base
        else
            nextbet = previousbet * ifwin
        end
    else
        justloss += 1
        justwin = 0
        nextbet = previousbet * ifloss
    end
    
    nowprofit = profit / (balance - profit) * 100
    
    print("\n\n")
    print("base "..base)
    print("bet L/W "..justloss.."/"..justwin)
    print("profit : "..string.format("%.2f",nowprofit).."%")
    
    if currentstreak <= maxloss then 
        if rebet then
            base = baseDB / 1000
        else 
            stopwin = true  
        end 
    end
    
    if balance < stopbalance then stopnow = true end
    if balance > targetbalance then stop() end
    if (justloss == setloss) then base *= 0.1 end
    if (justwin == setwin) then base = baseDB end
end


EmoticonEmoticon