Jump to content
Nenad

🥇 [$1,000] The Eighth Bday Celebration 🍾🎈

Recommended Posts

placed by Serlite on 17/05/2021

Wagered

0.00010317ltc.svg

Multiplier

8.00x

Profit

0.00072252ltc.svg

A straightforward forum challenge, which I don't mind. Here's a script, as usual:

chance   = 12.37
nextbet  = 0.00010317
bethigh  = true
currency = "Ltc"

local stringToFind  = "8"
local targetMatches = 1

function dobet()
    -- Get roll number
    local betIdString = tostring(lastBet.Roll)
    
    if win and countOccurrences(betIdString, stringToFind) >= targetMatches then
        print(lastBet.Roll)
        print(lastBet.Id)
        ching()
        stop()
    end
end

function countOccurrences(baseString, searchString)
    return select(2, string.gsub(baseString, searchString, ""))
end

 

Share this post


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

×