Jump to content
Minaa

🏆 [$800] The Greatest Minds: Mahatma Gandhi 🙏

Recommended Posts

96.87

placed by Serlite on 10/03/2021

Wagered

0.00015336ltc.svg

Multiplier

6.00x

Profit

0.00076680ltc.svg

6.52

placed by Serlite on 10/03/2021

Wagered

0.00015336ltc.svg

Multiplier

6.00x

Profit

0.00076680ltc.svg

This was a straightforward one to do. Just took a remix of a couple older scripts to make this one:

chance   = 16.5000
nextbet  = 0.00015336
bethigh  = true
currency = "Ltc"

local targetStreak  = 2
local targetDigit   = 6
local currentStreak = 0

function dobet()
    -- break down roll number into comparable components
    local digit4 = round((lastBet.Roll * 100) % 10)
    local digit3 = round(((lastBet.Roll * 100) % 100 - digit4) / 10)
    local digit2 = round(((lastBet.Roll * 100) % 1000 - digit3 * 10 - digit4) / 100)
    local digit1 = round(((lastBet.Roll * 100) - digit2 * 100 - digit3 * 10 - digit4) / 1000)
    
    if isValidPattern(digit1, digit2, digit3, digit4) and win then
        print (lastBet.Roll)
        print (lastBet.Id)
        currentStreak = currentStreak + 1
        bethigh = not bethigh
    else
        currentStreak = 0
        bethigh       = true
    end
    
    if currentStreak >= targetStreak then
        ching()
        stop()
    end
end

function round(x)
    return math.floor(x + 0.5)
end

function isValidPattern(digit1, digit2, digit3, digit4)
    return (digit1 == targetDigit or digit2 == targetDigit or digit3 == targetDigit or digit4 == targetDigit)
end

 

Share this post


Link to post
Share on other sites
Posted (edited)

placed by pfodo on 10/03/2021

Wagered

0.80000000trx.svg

Multiplier

6.00x

Profit

4.00000000trx.svg

placed by pfodo on 10/03/2021

Wagered

0.80000000trx.svg

Multiplier

6.00x

Profit

4.00000000trx.svg

 

4 hours ago, Serlite said:

This was a straightforward one to do. Just took a remix of a couple older scripts to make this one:


chance   = 16.5000
nextbet  = 0.00015336
bethigh  = true
currency = "Ltc"

local targetStreak  = 2
local targetDigit   = 6
local currentStreak = 0

function dobet()
    -- break down roll number into comparable components
    local digit4 = round((lastBet.Roll * 100) % 10)
    local digit3 = round(((lastBet.Roll * 100) % 100 - digit4) / 10)
    local digit2 = round(((lastBet.Roll * 100) % 1000 - digit3 * 10 - digit4) / 100)
    local digit1 = round(((lastBet.Roll * 100) - digit2 * 100 - digit3 * 10 - digit4) / 1000)
    
    if isValidPattern(digit1, digit2, digit3, digit4) and win then
        print (lastBet.Roll)
        print (lastBet.Id)
        currentStreak = currentStreak + 1
        bethigh = not bethigh
    else
        currentStreak = 0
        bethigh       = true
    end
    
    if currentStreak >= targetStreak then
        ching()
        stop()
    end
end

function round(x)
    return math.floor(x + 0.5)
end

function isValidPattern(digit1, digit2, digit3, digit4)
    return (digit1 == targetDigit or digit2 == targetDigit or digit3 == targetDigit or digit4 == targetDigit)
end

 

Thank you @Serlite, it served as well as before. It was fast 😉

Edited by pfodo

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×