You are on page 1of 3

setChip("Black",0.

00000001)
setChip("Red",0.00000001)

div = 2000
nextMulti = 4
baseBet = 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

-- result.Chips - в этом массиве индекс начинается с 0


-- arrayLine - в этом массиве первый элемент с индексом 1

function dobet()
betrate = 50
bets = bets+1

if (result.Chips[0].name == "Line1" 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
nextBet = nextBet*nextMulti
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

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 > 8) 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 >= 8) 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
and arrayLine[7] == 2
and arrayLine[8] == 3) 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 >= 8) 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
and arrayLine[7] == 2
and arrayLine[8] == 1) 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

You might also like