-
Notifications
You must be signed in to change notification settings - Fork 3
/
lua_28_10(2).lua
117 lines (111 loc) · 4.31 KB
/
lua_28_10(2).lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
-- Chance x3
baseChance = 33
-- Chance x1.5
changeChance = 66
-- Giá trị nhân khi thua khi đổi payout thành 1.5
multiplier = 4
-- Giá trị đặt cược khi chờ chuỗi thua
betleep = 0.00000001
-- Giá trị đặt cược khi thay đổi payout thành 1.5
divedeBalance = 50
base = balance/divedeBalance
-- Dừng lại khi thắng
multiplierBase = 2
valueTaken = base*multiplierBase
takeProfit = balance + valueTaken
--Thời gian đợi cho lân cược tiếp theo
time = 1500
-----------------------------------------------
chance = baseChance;betBackUp = base;nextbet = betleep;sleepToBet = 7; maxBetToOut = 2;;currentLoseStreak = 0;currentWinStreak = 0;s = 0;resetstats();resetseed();maintime = os.clock();midTime = 0;maxBet = base;highProfit = 0;lowProfit = 0;oldBalace = balance;maxBetBalance = balance;backTime=0;checkWait=false;toBig=true
function dobet()
function sleepToNext()
s = 0
for i=1,100000 do s = s + i end
if(os.clock() - x <= time )then
newtime = time - (os.clock() - x)
print("Đợi " ..string.format("%.2d:%.2d", math.floor(newtime/60), math.floor(newtime%60)).. " cho đến lần cược tiếp theo...")
nextbet = betleep
toBig = false
else
print("Trở lại cược...")
toBig = true
maintime = os.clock()
end
end
function hiloRandomizer()
hiloRandomizer = math.random(0, 1);
if (hiloRandomizer == 1) then
bethigh = true
else
bethigh = false
end
end
function seedRandomizer()
seedRandomizer = math.random(0, 2)
while (seedRandomizer >= 1) do
resetseed()
seedRandomizer = seedRandomizer - 1
end
end
if win then
loseStreak = 0
chance = baseChance
nextbet = betleep
currentWinStreak = currentWinStreak + 1
currentLoseStreak = 0
else
currentWinStreak = 0
if(toBig == true) then
currentLoseStreak = currentLoseStreak + 1
if (currentLoseStreak == sleepToBet) then
chance = changeChance
nextbet = base
elseif (currentLoseStreak > sleepToBet and currentLoseStreak < sleepToBet + maxBetToOut) then
nextbet = nextbet * multiplier
elseif (currentLoseStreak >= sleepToBet + maxBetToOut) then
currentLoseStreak = 0
chance = baseChance
nextbet = betleep
end
end
end
if(profit > highProfit)then
highProfit = profit
elseif(profit < lowProfit)then
lowProfit = profit
end
if(nextbet > maxBet)then
maxBet = nextbet
maxBetBalance = balance
end
if(toBig == true)then
midTime = math.floor(os.clock() - maintime)+backTime
print("[Time]: ["..string.format("%.2d:%.2d", math.floor(midTime/60), math.floor(midTime%60)).."]")
print("[Payout]: ["..string.format("%.2f",99/chance).."]")
print("[Chance]: ["..string.format("%.2f",chance).."]")
print("[Bet High]: ["..tostring(bethigh).."]")
print("[Max Bet]: ["..string.format("%.8f",maxBet).."] ["..string.format("%.4f",maxBet/(maxBetBalance)*100).."]%")
print("[Next Bet]: ["..string.format("%.8f",nextbet).."] ["..string.format("%.4f",nextbet/(balance)*100).."]%")
print("[Profit]: ["..string.format("%.8f",profit).."] ["..string.format("%.4f",profit/(oldBalace)*100).."]%")
print("[High PF]: ["..string.format("%.8f",highProfit).."] ["..string.format("%.4f",highProfit/(oldBalace)*100).."]%")
print("[Low PF]: ["..string.format("%.8f",lowProfit).."] ["..string.format("%.4f",lowProfit/(oldBalace)*100).."]%")
print("==========================")
else
sleepToNext()
end
if(checkWait == true)then
checkWait = false
base = balance/divedeBalance
valueTaken = base*multiplierBase
takeProfit = balance + valueTaken
takeProfit = balance + valueTaken
backTime = backTime + midTime
x = os.clock()
sleepToNext()
seedRandomizer()
hiloRandomizer()
end
if(balance >= takeProfit)then
checkWait = true
end
end