setChip("Black",0.
00000001)
setChip("Red",0.00000001)
baseBetZero = 0.00000004
mainbaseBet = 0.00000004
nbet = mainbaseBet
nextBetZero = baseBetZero
mainnextBet = mainbaseBet
clearConsole()
--numEven1 = { 2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36 }
--numOdd2 = { 1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35 }
numLow = { 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18 }
numHigh = { 19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36 }
--numRed5 = { 1,3,5,7,9,12,14,16,18,19,21,23,25,27,30,32,34,36 }
--numBlack6 = { 2,4,6,8,10,11,13,15,17,20,22,24,26,28,29,31,33,35 }
pocketColumn1 = { 1,2,3,4,5,6,7,8,9,10,11,12}
pocketColumn2 = { 13,14,15,16,17,18,19,20,21,22,23,24 }
pocketColumn3 = { 25,26,27,28,29,30,31,32,33,34,35,36 }
arrayColumn = {}
table.insert(arrayColumn, 1, 0)
table.insert(arrayColumn, 1, 0)
table.insert(arrayColumn, 1, 0)
table.insert(arrayColumn, 1, 0)
--table.insert(arrayColumn, 1, 0)
NowColumn = 0
--numEvenCount = 0
--numOddCount = 0
numLowCount = 0
numHighCount = 0
--numRedCount = 0
--numBlackCount = 0
One2Two = 0
Three2Two = 0
countLoss = 0
visualchips = true
function dobet()
clearConsole()
for i = 1, #pocketColumn1 do
if (pocketColumn1[i] == roll) then
NowColumn = 1
end
end
for i = 1, #pocketColumn2 do
if (pocketColumn2[i] == roll) then
NowColumn = 2
end
end
for i = 1, #pocketColumn3 do
if (pocketColumn3[i] == roll) then
NowColumn = 3
end
end
for i = 1, #numLow do
if (roll == numLow[i]) then
numLowCount += 1
end
end
for i = 1, #numHigh do
if (roll == numHigh[i]) then
numHighCount += 1
end
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
mainnextBet += 0.00000002 -- Если проиграли обе фишки к базовой ставке
добавлем суму двух фишек
--print("Lose two chips added to the base bet
BaseBet="..convert(nextBet))
end
end
if (lost == 0) then
nextBetZero = baseBetZero
mainnextBet = mainbaseBet
end
--if (profit < 0) then
-- nextBetZero = baseBetZero
-- mainnextBet *= 2
--end
--if ( result.ChipCount > 2) then
if (profit < 0) then
if (math.abs(profit) > (nbet / 2)) then
mainnextBet *= 2.1
end
end
if (profit > 0) then
if (math.abs(profit) > (nbet / 2)) then
mainnextBet /= 2.1
end
end
--print(string.format("numEven1Count: %s", numEvenCount))
-- print(string.format("numOdd2Count: %s", numOddCount))
print(string.format("One2Two: %s", One2Two))
print(string.format("Three2Two: %s", Three2Two))
--print(string.format("Three2Two: %s", Three2Two))
--print(string.format("numBlack6Count: %s", numBlackCount))
table.insert(arrayColumn, 1, NowColumn) -- Add to the beginning of the array
if (#arrayColumn > 4) then
table.remove(arrayColumn) -- Remove the last element of an array
end
if (#arrayColumn >= 4) then
if ((arrayColumn[4] == 1 and arrayColumn[3] == 2 and arrayColumn[2] == 3
and arrayColumn[1] == 2)) then
for i = 1, #arrayColumn do
arrayColumn[i] = 0
end
Three2Two += 1
end
end
--table.insert(arrayColumn, 1, NowColumn) -- Add to the beginning of the array
--if (#arrayColumn > 4) then
-- table.remove(arrayColumn) -- Remove the last element of an array
--end
if (#arrayColumn >= 4) then
if ((arrayColumn[4] == 3 and arrayColumn[3] == 2 and arrayColumn[2] == 1
and arrayColumn[1] == 2)) then
for j = 1, #arrayColumn do
arrayColumn[j] = 0
end
One2Two += 1
end
end
if (One2Two == 1) then
setChip("Left",mainnextBet)
setChip("Dozen3",mainnextBet)
One2Two = 0
elseif
(Three2Two == 1) then
setChip("Right",mainnextBet)
setChip("Dozen1",mainnextBet)
Three2Two = 0
else
--print("Bet Red and Black")
setChip("Red",0.00000001)
setChip("Black",0.00000001)
end
end