Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 4

setChip("Black",0.

00000001)
setChip("Red",0.00000001)

div = 4000
nextMulti = 3
baseBet = 0.00000100 --balance/div
nextBet = baseBet
sbal = balance
ath = balance
bets = 0
target = 3.00000000

pocketLine1 = { 3,6,9,12,15,18,21,24,27,30,33,36 }
pocketLine2 = { 2,5,8,11,14,17,20,23,26,29,32,35 }
pocketLine3 = { 1,4,7,10,13,16,19,22,25,28,31,34 }

arrayLine = {}

table.insert(arrayLine, 1, 0)
table.insert(arrayLine, 1, 0)
table.insert(arrayLine, 1, 0)
table.insert(arrayLine, 1, 0)
table.insert(arrayLine, 1, 0)

linenow = 0
visualchips = true

multiplyArray = {1, 2, 5, 8, 13, 21, 34}


countLoss = 0
multiply = 1
-- result.Chips - в этом массиве индекс начинается с 0
-- arrayLine - в этом массиве первый элемент с индексом 1

function dobet()
betrate = 50
bets = bets + 1
if (lost == 0) then
countLoss = 0
end

if ((result.Chips[0].name == "Line1" and result.Chips[1].name == "Line2") or


(result.Chips[0].name == "Line2" and result.Chips[1].name == "Line3")) then
if (result.Chips[0].win or result.Chips[1].win) then
if balance > ath then
ath = balance
baseBet = balance/div
end

nextBet = baseBet
if (result.Chips[0].win) then
--print("Bet Line1 and Line3 Won Line1
baseBet="..convert(result.Chips[0].payin).." NextBet="..convert(nextBet))
end
if (result.Chips[1].win) then
--print("Bet Line1 and Line3 Won Line3
baseBet="..convert(result.Chips[1].payin).." NextBet="..convert(nextBet))
end
else
countLoss += 1
if (countLoss > multiplyArray) then
countLoss = 1
end
multiply = multiplyArray[countLoss]
nextBet = nextBet * multiply
if (not result.Chips[0].win) then
--print("Bet Line1 and Line3 Loss Line1
baseBet="..convert(result.Chips[0].payin).." NextBet="..convert(nextBet))
end
if (not result.Chips[1].win) then
--print("Bet Line1 and Line3 Loss Line3
baseBet="..convert(result.Chips[1].payin).." NextBet="..convert(nextBet))
end
end
--pause() -- Pause to check when line 1 and line 3 have happened
end

if (result.Chips[0].name == "Red" and result.Chips[1].name == "Black") then


if (not result.Chips[0].win and not result.Chips[1].win) then
nextBet += 0.00000002 -- Если проиграли обе фишки к базовой ставке
добавлем суму двух фишек
--print("Lose two chips added to the base bet
BaseBet="..convert(nextBet))
end
end

print("BET #: "..string.format("%.8f", nextBet))


print("Multiply #: "..string.format("%.0f", multiply))

if (roll > 0) then


for i = 1, #pocketLine1 do
if (pocketLine1[i] == roll) then
linenow = 1
end
if (pocketLine2[i] == roll) then
linenow = 2
end
if (pocketLine3[i] == roll) then
linenow = 3
end
end
else
linenow = 0
end

table.insert(arrayLine, 1, linenow) -- Add to the beginning of the array


if (#arrayLine > 7) then
table.remove(arrayLine) -- Remove the last element of an array
end

for i = 1, #arrayLine do
if (i == 1) then
--print("Bet Line "..arrayLine[i].." Now the line has dropped")
else
--print("Bet Line "..arrayLine[i])
end

end

if (#arrayLine >= 7) then


--print("Work start")

if (arrayLine[1] == 2
and arrayLine[2] == 1
and arrayLine[3] == 2
and arrayLine[4] == 3
and arrayLine[5] == 2
and arrayLine[6] == 1)

then
for i = 1, #arrayLine do
arrayLine[i] = 0
end
--print("The combination happened Nex Bet Line1 and Line3")
setChip("Line1", nextBet)
setChip("Line2", nextBet)
end
end
if (#arrayLine >= 7) then
--print("Work start")

if (arrayLine[1] == 2
and arrayLine[2] == 3
and arrayLine[3] == 2
and arrayLine[4] == 1
and arrayLine[5] == 2
and arrayLine[6] == 3)
then

for j = 1, #arrayLine do
arrayLine[j] = 0
end

setChip("Line2", nextBet)
setChip("Line3", nextBet)
else
--print("Bet Red and Black")
setChip("Red",0.00000001)
setChip("Black",0.00000001)
end
else
--print("Bet Red and Black")
setChip("Red",0.00000001)
setChip("Black",0.00000001)
end
end
--if (bets%99==0) then
-- --print("Result number "..roll)
-- print("BaseBet "..baseBet)
-- --print("BET #: "..string.format("%.0f", bets))
-- --print("BALANCE: "..string.format("%.8f", balance))
-- --print("PROFIT: " ..string.format("%.8f", balance-sbal))
-- print("GAIN IS : " ..string.format("%.2f", (balance - sbal)/(sbal/100)) .."
%")
-- print("TO TARGET : " ..string.format("%.2f", (balance -
target)/(sbal/100)) .." %")
--
-- --print("========================= ")
--end
--
--if balance >= target then
-- stop()
-- print("PROFIT TARGET IS REACHED!! CONGRATS!!!");
-- print("GAIN IS : " ..string.format("%.2f", (balance - sbal)/(sbal/100)) .."
%")
-- print("REMOVE 8/10th OF PROFIT " ..string.format("%.8f", (balance-sbal)*.8))
--end
----pause() -- Pause to check at every bet
--end
--end
--end

You might also like