Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chance=2.7500
- nextbet=0.00014000
- bethigh=false
- currency="Ltc"
- local lastBetID = nil
- local lastBetNumber = nil
- function dobet()
- if win then
- if lastBetID == nil then
- lastBetID = lastBet.Id
- lastBetNumber = lastBet.Roll
- bethigh = not bethigh
- else
- if getNumberOfMatches(getUniqueDigits(lastBetNumber), getUniqueDigits(lastBet.Roll)) >= 2 then
- ching()
- print(lastBetID)
- print(lastBet.ID)
- stop()
- else
- resetHunt()
- end
- end
- else
- resetHunt()
- end
- end
- function resetHunt()
- lastBetID = nil
- lastBetNumber = nil
- end
- function round(x)
- return math.floor(x + 0.5)
- end
- function getUniqueDigits(rollNumber)
- local digits = {}
- local digit4 = round((rollNumber * 100) % 10)
- local digit3 = round(((rollNumber * 100) % 100 - digit4) / 10)
- local digit2 = round(((rollNumber * 100) % 1000 - digit3 * 10 - digit4) / 100)
- local digit1 = round(((rollNumber * 100) - digit2 * 100 - digit3 * 10 - digit4) / 1000)
- digits[digit1] = true
- digits[digit2] = true
- digits[digit3] = true
- digits[digit4] = true
- return digits
- end
- function getNumberOfMatches(set1, set2)
- local matchCount = 0
- for key1, value1 in pairs(set1) do
- if set2[key1] ~= nil then
- matchCount = matchCount + 1
- end
- end
- return matchCount
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement