Gold

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

setChip("Black",0.

00000001)
setChip("Red",0.00000001)

div = 1000000
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 }

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

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)

arraysLine = {}

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

linenow = 0
dozennow = 0
visualchips = true

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

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

tenPercent = balance * 0.1

if (profit > tenPercent) then


countLoss = 1 -- Начать заново когда профит ставки 10%
end
print("Ten Percent profit#: "..string.format("%.8f", tenPercent))

if ((result.Chips[0].name == "Line1") or (result.Chips[0].name == "Dozen1"))


and (result.Chips[1].name == "Line2") or (result.Chips[1].name == "Dozen2")) or
((result.Chips[0].name == "Line2") and (result.Chips[1].name == "Line3")) or
((result.Chips[0].name == "Dozen2") and (result.Chips[1].name == "Dozen3")) 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 *= 5
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

if (roll > 0) then


for i = 1, #docketLine1 do
if (docketLine1[i] == roll) then
dozennow = 1
end
if (docketLine2[i] == roll) then
dozennow = 2
end
if (docketLine3[i] == roll) then
dozennow = 3
end
end
else
dozennow = 0
end

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


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

table.insert(arraysLine, 1, dozennow) -- Add to the beginning of the array


if (#arraysLine > 2) then
table.remove(arraysLine) -- 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 >= 1) then


--print("Work start")

if (arrayLine[1] == 2
and arrayLine[2] == 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 >= 2) then
--print("Work start")
if (arrayLine[1] == 2
and arrayLine[2] == 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 (#arraysLine >= 1) then
--print("Work start")

if (arraysLine[1] == 2
and arraysLine[2] == 1)

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

if (arraysLine[1] == 2
and arraysLine[2] == 3)
then

for q = 1, #arraysLine do
arrayLine[q] = 0
end

setChip("Dozen2", nextBet)
setChip("Dozen3", 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