-
Notifications
You must be signed in to change notification settings - Fork 3
/
lua_30_10_BIG.lua
204 lines (201 loc) · 7.01 KB
/
lua_30_10_BIG.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
--Random initialize
math.randomseed(os.time())
--Warming up
math.random(); math.random(); math.random()
--List setting chance
listTarget = {1.02;1.03;1.04;1.05};listChanceTarget = {97.05;96.11;95.19;94.28}
--Default value
highProfit = 0;lowProfit = 0
oldBalace = balance;sleepBet = 0.0000000
chance = 49.5;nextbet = sleepBet
--Sleep setting
timeToRun = math.floor(99/chance*math.random(1, 3)+0.5)
time = 1800;maintime = os.clock();midTime = 0;backTime=0;checkWait=false;toBig=true
--Type bet setting
typeBet = math.random(1, 2)
if(typeBet ==1)then
timeToRun = math.floor(99/chance*math.random(1, 3)+0.5)
elseif(typeBet == 2)then
timeToRun = math.floor(99/chance*math.random(2, 4)+0.5)+1
end
--Bet setting
divBalanceToBig = 7
bigBig = oldBalace*0.9998/divBalanceToBig
mainBigBig = bigBig
multiplierBig = 2
multiplyProfit = 0.1
resMain = balance + bigBig
takeProfitPerTime = balance + bigBig*multiplyProfit;raseProfitPerTime = takeProfitPerTime - balance
--Joke value
joker = math.random(1, 200)
divedeJoke = math.random(200, 300)
joke = bigBig/divedeJoke;countJoke = 0
--Stop take profit
takeProfit = balance*2
resetseed()
function dobet()
function jokeDealer()
joker = math.random(1, 200)
if(joker == 99)then
divedeJoke = math.random(200, 300)
joke = bigBig/divedeJoke
nextbet = joke
countJoke = countJoke + 1
print("SEND JOKES...")
end
end
function sleepToNext()
s = 0
for i=1,10000 do s = s + i end
if(os.clock() - x <= time )then
newtime = time - (os.clock() - x)
nextbet = sleepBet
jokeDealer()
print("Wait " ..string.format("%.2d:%.2d", math.floor(newtime/60), math.floor(newtime%60)).. " for next session... Sent "..string.format("%d",countJoke).." jokes....")
toBig = false
else
print("Back to bet...")
toBig = true
maintime = os.clock()
if(bigBig == mainBigBig or balance == resMain)then
bigBig = balance*0.9998/divBalanceToBig
mainBigBig = bigBig
end
takeProfitPerTime = balance + bigBig*multiplyProfit
raseProfitPerTime = takeProfitPerTime - balance
backTime = backTime + midTime
end
typeBet = math.random(1, 2)
end
function seedRandomizer()
seedRandomizer = math.random(0, 2)
while (seedRandomizer >= 1) do
resetseed()
seedRandomizer = seedRandomizer - 1
end
end
function randomChane()
CHANCE_RANDOMIZER = math.random(330,495)
chance = CHANCE_RANDOMIZER/10
nextbet = sleepBet
payout = 99/chance
timeToRun = math.floor(payout*math.random(2, 4)+0.5)
if(typeBet ==1)then
timeToRun = math.floor(99/chance*math.random(1, 3)+0.5)
elseif(typeBet == 2)then
timeToRun = math.floor(99/chance*math.random(2, 4)+0.5)+1
end
end
function randomChaneReal()
CHANCE_RANDOMIZER = math.random(1, #listChanceTarget)
chance = listChanceTarget[CHANCE_RANDOMIZER]
nextbet = bigBig
end
function randomTime()
TIME_RANDOMIZER = math.random(1, 6)
if(TIME_RANDOMIZER == 1 or TIME_RANDOMIZER == 2 or TIME_RANDOMIZER == 3)then
time = math.random(300, 480)
elseif(TIME_RANDOMIZER == 4 or TIME_RANDOMIZER == 5)then
time = math.random(600, 900)
elseif(TIME_RANDOMIZER == 6)then
time = math.random(1200, 1800)
end
end
function dobet1()
e = currentstreak - timeToRun
if win then
if(nextbet ~= sleepBet)then
randomChane()
end
if(toBig == true)then
if(e == 0 and nextbet == sleepBet)then
randomChaneReal()
else
jokeDealer()
end
end
else
if(toBig == true)then
if(nextbet >= mainBigBig)then
bigBig = bigBig*multiplierBig
resMain = balance + bigBig
takeProfitPerTime = balance + bigBig*multiplyProfit
raseProfitPerTime = takeProfitPerTime - balance
x = os.clock()
sleepToNext()
end
end
if(nextbet ~= sleepBet)then
seedRandomizer()
end
randomChane()
end
end
function dobet2()
e = currentstreak + timeToRun
if win then
if(nextbet ~= sleepBet)then
seedRandomizer()
end
randomChane()
else
if(toBig == true)then
if(nextbet >= mainBigBig)then
bigBig = bigBig*multiplierBig
resMain = balance + bigBig
takeProfitPerTime = balance + bigBig*multiplyProfit
raseProfitPerTime = takeProfitPerTime - balance
x = os.clock()
sleepToNext()
randomChane()
end
if(e == 0)then
randomChaneReal()
else
jokeDealer()
end
end
end
end
if(typeBet == 1)then
dobet1()
else
dobet2()
end
if(profit > highProfit)then
highProfit = profit
elseif(profit < lowProfit)then
lowProfit = profit
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("[Type]: ["..string.format("%d",typeBet).."]")
print("[Tobet]: ["..string.format("%d",e).."]")
print("[Big Bet]: ["..string.format("%.8f",bigBig).."] ["..string.format("%.4f",bigBig/(balance)*100).."]%")
print("[Chance]: ["..string.format("%.2f",chance).."]")
print("[Payout]: ["..string.format("%.2f",99/chance).."]")
print("[Profit]: ["..string.format("%.8f",profit).."] ["..string.format("%.4f",profit/(oldBalace)*100).."]%")
print("[Session]: ["..string.format("%.8f",raseProfitPerTime).."] ["..string.format("%.4f",(raseProfitPerTime)/oldBalace*100).."]%")
print("[Jokes]: ["..string.format("%d",countJoke).."]")
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
x = os.clock()
sleepToNext()
end
if(balance >= takeProfitPerTime and toBig == true)then
checkWait = true
randomTime()
randomChane()
end
if(balance >= takeProfit)then
print("GET RICK...")
stop()
end
end