You are on page 1of 4

setChip("Black",0.

00000001)
setChip("Red",0.00000001)

div = 4000
nextMulti = 3
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

multiplyArray =
{3,1,4,1,5,9,2,6,5,3,5,8,9,7,9,3,2,3,8,4,6,2,6,4,3,3,8,3,2,7,9,5,2,8,8,4,1,9,7,1,6,
9,3,9,9,3,7,5,1,5,8,2,9,7,4,9,4,4,5,9,2,3,7,8,1,6,4,6,2,8,6,2,8,9,9,8,6,2,8,3,4,8,2
,5,3,4,2,1,1,7,6,7,9,8,2,1,4,8,8,6,5,1,3,2,8,2,3,6,6,4,7,9,3,8,4,4,6,9,5,5,5,8,2,2,
3,1,7,2,5,3,5,9,4,8,1,2,8,4,8,1,1,1,7,4,5,2,8,4,1,2,7,1,9,3,8,5,2,1,1,5,5,5,9,6,4,4
,6,2,2,9,4,8,9,5,4,9,3,3,8,1,9,6,4,4,2,8,8,1,9,7,5,6,6,5,9,3,3,4,4,6,1,2,8,4,7,5,6,
4,8,2,3,3,7,8,6,7,8,3,1,6,5,2,7,1,2,1,9,9,1,4,5,6,4,8,5,6,6,9,2,3,4,6,3,4,8,6,1,4,5
,4,3,2,6,6,4,8,2,1,3,3,9,3,6,7,2,6,2,4,9,1,4,1,2,7,3,7,2,4,5,8,7,6,6,6,3,1,5,5,8,8,
1,7,4,8,8,1,5,2,9,2,9,6,2,8,2,9,2,5,4,9,1,7,1,5,3,6,4,3,6,7,8,9,2,5,9,3,6,1,1,3,3,5
,3,5,4,8,8,2,4,6,6,5,2,1,3,8,4,1,4,6,9,5,1,9,4,1,5,1,1,6,9,4,3,3,5,7,2,7,3,6,5,7,5,
9,5,9,1,9,5,3,9,2,1,8,6,1,1,7,3,8,1,9,3,2,6,1,1,7,9,3,1,5,1,1,8,5,4,8,7,4,4,6,2,3,7
,9,9,6,2,7,4,9,5,6,7,3,5,1,8,8,5,7,5,2,7,2,4,8,9,1,2,2,7,9,3,8,1,8,3,1,1,9,4,9,1,2,
9,8,3,3,6,7,3,3,6,2,4,4,6,5,6,6,4,3}
countLoss = 1
multiply = 1
tenPercent = 0

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

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

mainProfit += profit
tenPercent = balance * 0.1

if (mainProfit > tenPercent) then


mainProfit = 0
countLoss = 1 -- Начать заново когда профит ставки 10%
end
print("Ten Percent profit#: "..string.format("%.8f", mainProfit))
--if (lost == 0) then
-- countLoss = 1 -- На первый элемент массива когда прибыль
--end

multiply = multiplyArray[countLoss]
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
countLoss -= 1 -- на 1 шаг влево при выигрыше
if (countLoss < 1) then
countLoss = 1
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 -- на шаг 1 шаг вправо при проигрыше
if (countLoss > #multiplyArray) then
countLoss = 1
end
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