-- 4 ninja strategies
---- SETTINGS ----
basebet = 0.00000001 -- base bet
initBet = 0.00000001 -- init bet
minchance = 1 -- min chance
maxchance = 98 -- max chance
series = 1 -- bet series
setMode = 1 -- 1-mode 1, 2-mode 2, 3-mode 3, 4-mode 4
setlowhigh = 0 -- 0-low, 1-high, 2-random, 3-random on win, 4-random on profit +
profitTarget = 1.00000000 -- target profit
balanceTarget = 1.00000000 -- target balance
------------------
if setlowhigh == 0 then
bethigh=false
end
if setlowhigh == 1 then
bethigh=true
end
if setlowhigh == 2 then
r=math.random(1,2)
if r == 1 then
bethigh=true
else
bethigh=false
end
end
if setlowhigh == 3 then
r=math.random(1,2)
if r == 1 then
bethigh=true
else
bethigh=false
end
end
if setlowhigh == 4 then
r=math.random(1,2)
if r == 1 then
bethigh=true
else
bethigh=false
end
end
loss = 0
losss = 0
betss = 0
betsss = 0
profitBets = 0
houseEdge = 1 -- house edge
lastbalance=balance
nextbet = basebet
chance=(math.random(minchance*100.00,maxchance*100.00)/100.00)
payout = (100-houseEdge)/chance
function dobet()
if (profit) >= profitTarget then
stop()
end
if (balance) >= balanceTarget then
stop()
end
if (balance) < (nextbet) then
stop()
end
if setlowhigh == 0 then
bethigh=false
end
if setlowhigh == 1 then
bethigh=true
end
if setlowhigh == 2 then
r=math.random(1,2)
if r == 1 then
bethigh=true
else
bethigh=false
end
end
if (win) then
if setlowhigh == 3 then
r=math.random(1,2)
if r == 1 then
bethigh=true
else
bethigh=false
end
end
end
if balance >= lastbalance then
--lastbalance = balance
if setlowhigh == 4 then
r=math.random(1,2)
if r == 1 then
bethigh=true
else
bethigh=false
end
end
end
profitBets+=currentprofit
-- Mode 1
if setMode == 1 then
if currentprofit < 0 then
loss+=1
if nextbet > basebet then
nextbet = (-profitBets+initBet)/(payout-1)
if nextbet < initBet then nextbet = initBet end
end
if loss >= series then nextbet = basebet end
else
if loss >= series and nextbet == basebet then
nextbet = (-profitBets+initBet)/(payout-1)
if nextbet < initBet then nextbet = initBet end
end
if balance >= lastbalance then
chance=(math.random(minchance*100.00,maxchance*100.00)/100.00)
payout = (100-houseEdge)/chance
lastbalance = balance
nextbet = basebet
profitBets = 0
end
loss = 0
end
end
---------------------------------
-- Mode 2
if setMode == 2 then
if balance >= lastbalance then
chance=(math.random(minchance*100.00,maxchance*100.00)/100.00)
payout = (100-houseEdge)/chance
lastbalance = balance
profitBets = 0
end
if (win) then
loss = 0
nextbet = basebet
else
loss+=1
if loss >= series then
nextbet = (-profitBets+initBet)/(payout-1)
if nextbet < initBet then nextbet = initBet end
end
end
end
---------------------------------
-- Mode 3
if setMode == 3 then
if balance >= lastbalance then
chance=(math.random(minchance*100.00,maxchance*100.00)/100.00)
payout = (100-houseEdge)/chance
lastbalance = balance
profitBets = 0
end
if (win) then
loss = 0
losss = 0
nextbet = basebet
else
loss+=1
if loss >= series then
losss+=1
if losss >= series then
loss = 0
losss = 0
nextbet = basebet
else
nextbet = (-profitBets+initBet)/(payout-1)
if nextbet < initBet then nextbet = initBet end
end
end
end
end
------------------------
-- Mode 4
if setMode == 4 then
if balance >= lastbalance then
chance=(math.random(minchance*100.00,maxchance*100.00)/100.00)
payout = (100-houseEdge)/chance
lastbalance = balance
nextbet = basebet
profitBets = 0
betss = 0
betsss = 0
else
betss+=1
if betss >= series then
betsss+=1
if betsss >= series then
betss = 0
betsss = 0
nextbet = basebet
else
nextbet = (-profitBets+initBet)/(payout-1)
if nextbet < initBet then nextbet = initBet end
end
end
end
end
----------------------------------
end
0 Comments