Advertisement
Ypleitez

Untitled

Oct 10th, 2023
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.73 KB | None | 0 0
  1. -- Blak's Runner V5.1
  2. -- Constant Profit on every win with tipping and logging
  3. --
  4. -- This script tries to win at least "Payout X Amount" over what has been spent for every win.
  5. --
  6. -- For example, basechance of 1.2345 = 96.680 payout X, so every win will be "Around" 96 above what was spent.
  7. -- Due to the decimal point resolution, it will never be exact. It may be more or less than the Payout X.
  8. --
  9. -- basechance > 25, may result in negative payouts on long red runs, but short runs will still be positive.
  10. --
  11. -- basechance can be used in the console during run-time to change your payout after the next win.
  12. -- Example: basechance = 0.2048
  13. -- That will change your payout to 483.3984 after the next win.
  14. --
  15. -- incDivisor variable: Controls winMult calculation based on your balance
  16. -- Changing this variable is not advisable
  17. -- Any balance under 10 million sats (or 10 million tokens on Bitvest) will result in a starting bet of 1
  18. -- Any balance over 10 million will result in a starting run bet of 1 + balance / incDivisor
  19. -- Example: balance = 11256780, winMult would be 1.12 ... or balance = 23456780, winmult would be 2.34
  20. --
  21. -- If there are more than Payout X number of losing rolls, then the winMult is set to 1, to just get
  22. -- through this streak without busting, but will still profit around Payout X amount.
  23. --
  24. -- chanceInc variable: increase your chance to win by X amount
  25. -- Set to zero to stop the increment of base chance selected for the run
  26. --
  27. -- Example: balance = 2345678, basechance = 9.9 = Payout X of 10.00, First 10 rolls, winMult = 2.34.
  28. -- after 10 losing rolls, the winMult value will be forced to 1.0, resulting in an overall profit of around 10, instead of 23.4
  29. --
  30. -- Version 5.1 additions:
  31. -- High / Low betting Enable / dissable
  32. -- Set high or low bet on first bet
  33.  
  34.  
  35. isTokens = false-- Used for Bitvest tokens
  36. basechance = 4.4 -- The starting chance that you would like use.
  37. chanceInc = 0.00010 -- How much to increase chance on a bad run
  38. incDivisor = 10000000 -- When to start raising winMult (12.5 million seems safe so far)
  39. siteMaxProfit = 0.00000000 -- Set to the max profit of the site. Set to 0 to disable. This will make sure the profit of the bet will never go above this value if set
  40. toggleHighLow = false
  41. bethigh = false
  42.  
  43. -- ***************** IMPORTANT TO CHANGE THESE SETTINGS BEFORE ENABLING OR YOU WILL TIP ME ***********************
  44. autotip = false -- If the isTokens is true, tipping is automatically turned off
  45. -- With auto tip enabled, It will auto tip to your named
  46. -- alt account when your balance is above bankroll + tipamount
  47. -- On BitVest, minimum 10k BTC, 50k ETH, and 100k LTC
  48. bankroll = 0 -- Minimum you want to keep rolling with. Set to 0 to use your current balance
  49. tipamount = 0.0 -- How much to tip
  50. bankappend = 0.0 -- How much of your tip amount to add to your bankroll over time in %. 0.10 = 10% Set to 0 for no addition to the bankroll
  51. receiver = "BlaksBank" -- Who gets the tip? **** CHANGE THIS ****
  52. -- ^^^^^^ CHANGE THE ABOVE VALUE!!!!! ^^^^^^
  53.  
  54. restTime = 0.0 -- How long to wait in seconds before the next bet. Some sites need this
  55. -- Bitvest setting 0.75 for low bet values
  56.  
  57. maxWinMult = 512 -- Max multiplier to hit. siteMaxProfit can lower this value Set to 0 to disable
  58.  
  59. housePercent = 1 -- Set this according to the site you are on.
  60. -- Known site percentages
  61. -- Freebitco.in = 5%
  62. -- Bitsler = 1.5%
  63. -- Bitvest = 1.0%
  64.  
  65. maxbet = 0 -- raise for higher betting. 10x basebet seems good so far. Set to 0 to disable
  66. minbet = 1-- Use whole integers
  67. basebet = 1 -- Use whole integers
  68.  
  69. tippedOut = 0
  70.  
  71.  
  72. -- Should not need to change anything below this line
  73.  
  74. chanceMult = 1.6666 -- was 1.6666
  75. chanceMax = 1.5
  76.  
  77. tempCalc = balance
  78. if(isTokens == false) then
  79. tempCalc = tempCalc * 100000000
  80. end
  81. tempMult = tempCalc / incDivisor
  82. if(tempMult < 1) then tempMult = 1 end
  83. winMult = tempMult
  84.  
  85. totalProfit = 0
  86. winMult = 1 -- Multiplier for X times over chance win
  87. tempWinMult = winMult
  88. incroll = 0
  89. startBalance = balance
  90.  
  91. print(string.format("Starting Win Multiplier: %.2f", tempWinMult))
  92. if(bankroll == 0) then
  93. bankroll = balance
  94. end
  95.  
  96. if(isTokens == false) then
  97. minbet = minbet * 0.00000001
  98. basebet = basebet * 0.00000001
  99. maxbet = maxbet * 0.00000001
  100. -- minWinAmount = minWinAmount * 0.00000001
  101. end
  102.  
  103. local clock = os.clock
  104. function sleep(n) -- seconds
  105. local t0 = clock()
  106. while clock() - t0 <= n do end
  107. end
  108.  
  109. oldBaseChance = 0
  110. currentStep = 0
  111. lossCount = 0
  112. stepCount = 0
  113. spent = 0
  114.  
  115. highLowLossCount = 0
  116. highLowAverage = {}
  117. averageCount = 0
  118. averageIndex = 0
  119. averageMax = 8 -- High / Low average switching.
  120.  
  121. rollCount = 0
  122. rollSeedCount = 0
  123. profit = 0
  124.  
  125. if(appendlog != true) then
  126. fin = assert(io.open(filename, "w"))
  127. -- fin:write("Timestamp, Bet ID, Streak, Bet, Chance, Spent, Win Amount, Win Profit\n")
  128. fin:write(" Timestamp, Bet ID, Strk, Bet, Chance, Spent, Win Amount, Win Profit, Roll, High/Low Total Profit\n")
  129. fin:close()
  130. end
  131.  
  132. -- Initialize the array
  133. for i=0, averageMax do
  134. highLowAverage[i] = basechance
  135. end
  136.  
  137. function calcChance()
  138. if(oldBaseChance == 0) then oldBaseChance = basechance end
  139. if(win) then
  140. if(lastBet.Roll >= 50) then
  141. target = 100 - lastBet.Roll
  142. else
  143. target = lastBet.Roll
  144. end
  145. highLowAverage[averageCount] = target
  146. averageCount = averageCount + 1
  147. if(averageCount >= averageMax) then averageCount = 0 end
  148. tempAverage = 0
  149. for i=0, averageMax do
  150. tempAverage = tempAverage + highLowAverage[i]
  151. end
  152. tempAverage = tempAverage / averageMax
  153. -- chance = tempAverage * chanceMult
  154. chance = tempAverage
  155. if(chance > (oldBaseChance * chanceMax)) then chance = oldBaseChance * chanceMax end
  156. tempcalc = string.format("Temp Average: %.4f / chance: %.4f", tempAverage, chance)
  157. print(tempcalc)
  158. else
  159. winAmount = (100 - (100 * (housePercent / 100))) / chance -- how much you will win for a 1 bet
  160. if(lossCount > winAmount) then
  161. chance = chance + chanceInc
  162. tempcalc = string.format("New chance: %.4f", chance)
  163. -- print(tempcalc)
  164. end
  165. end
  166. end
  167.  
  168. function autoTune()
  169. -- Auto tune to win at least minWinAmount
  170. tempstr = "Win Amount: winAmount, Needed: amtNeeded, Next Mult: nextmult, Next Bet: nextbet"
  171. winAmount = (100 - (100 * (housePercent / 100))) / chance -- how much you will win for a 1 bet
  172. if(isTokens == false) then
  173. winAmount = winAmount * 0.00000001
  174. end
  175. tempcalc = string.format("%.8f", winAmount)
  176. tempstr = string.gsub(tempstr, "winAmount", tempcalc)
  177. tempcalc = 1 + ((chance / 100) * ((100 - housePercent) / ((100 - housePercent) / 2)))
  178. needed = (winAmount * tempWinMult) + (nextbet * tempcalc) + spent -- No need to go by balance for next bet. Only how much has been spent. Will allow tipping and not accidentally bust
  179.  
  180.  
  181. tempcalc = string.format("%.8f", needed)
  182. tempstr = string.gsub(tempstr, "amtNeeded", tempcalc)
  183. -- print(string.format("Needed: %.8f", needed))
  184. nextMult = needed / winAmount
  185. tempcalc = string.format("%.8f", nextMult)
  186. tempstr = string.gsub(tempstr, "nextmult", tempcalc)
  187. -- print(string.format("nextMult: %.8f", nextMult))
  188. if(nextMult < 1) then nextMult = 1 end
  189. nextbet = basebet * nextMult
  190. if((winAmount * nextbet) - nextbet > siteMaxProfit and siteMaxProfit != 0) then
  191. nextbet = siteMaxProfit / winAmount
  192. end
  193. tempcalc = string.format("%.8f", nextbet)
  194. tempstr = string.gsub(tempstr, "nextbet", tempcalc)
  195. -- print(tempstr)
  196. if nextbet > maxbet and maxbet != 0 then
  197. nextbet = maxbet
  198. end
  199. if(tippedOut == 1) then
  200. nextbet = basebet
  201. tippedOut = 0
  202. startBalance = balance
  203. end
  204. end
  205.  
  206. chance = basechance
  207. nextbet=basebet
  208. autoTune()
  209.  
  210. function logWin(opposite)
  211. if(enableLogging == true) then
  212. tempstr = "year-0month-0day 0hour:0minute:0second, betid, streak, bet, chance, spent, winamount, profit, roll, highlo opposite"
  213. tempstr = string.gsub(tempstr, "year", lastBet.date.year)
  214. if (lastBet.date.month >= 10) then tempstr = string.gsub(tempstr, "0month", "month") end
  215. if (lastBet.date.day >= 10) then tempstr = string.gsub(tempstr, "0day", "day") end
  216. if (lastBet.date.hour >= 10) then tempstr = string.gsub(tempstr, "0hour", "hour") end
  217. if (lastBet.date.minute >= 10) then tempstr = string.gsub(tempstr, "0minute", "minute") end
  218. if (lastBet.date.second >= 10) then tempstr = string.gsub(tempstr, "0second", "second") end
  219. tempstr = string.gsub(tempstr, "month", lastBet.date.month)
  220. tempstr = string.gsub(tempstr, "day", lastBet.date.day)
  221. tempstr = string.gsub(tempstr, "hour", lastBet.date.hour)
  222. tempstr = string.gsub(tempstr, "minute", lastBet.date.minute)
  223. tempstr = string.gsub(tempstr, "second", lastBet.date.second)
  224. tempstr = string.gsub(tempstr, "betid", lastBet.Id)
  225. if(lossCount < 10000) then tempstr = string.gsub(tempstr, "streak", " streak") end
  226. if(lossCount < 1000) then tempstr = string.gsub(tempstr, "streak", " streak") end
  227. if(lossCount < 100) then tempstr = string.gsub(tempstr, "streak", " streak") end
  228. if(lossCount < 10) then tempstr = string.gsub(tempstr, "streak", " streak") end
  229. tempstr = string.gsub(tempstr, "streak", lossCount)
  230. tempcalc = string.format("%.8f", nextbet)
  231. tempstr = string.gsub(tempstr, "bet", tempcalc)
  232. if(chance < 10) then
  233. tempcalc = string.format(" %.4f", chance)
  234. else
  235. tempcalc = string.format("%.4f", chance)
  236. end
  237. tempstr = string.gsub(tempstr, "chance", tempcalc)
  238. tempcalc = string.format("%.8f", spent)
  239. tempstr = string.gsub(tempstr, "spent", tempcalc)
  240. tempcalc = string.format("%.8f", lastBet.Profit)
  241. tempstr = string.gsub(tempstr, "winamount", tempcalc)
  242. profit = lastBet.Profit - spent
  243. tempcalc = string.format("%.8f", profit)
  244. tempstr = string.gsub(tempstr, "profit", tempcalc)
  245. if(lastBet.Roll < 10) then
  246. tempstr = string.gsub(tempstr, "roll", string.format(" %.4f", lastBet.Roll))
  247. else
  248. tempstr = string.gsub(tempstr, "roll", string.format("%.4f", lastBet.Roll))
  249. end
  250.  
  251. if(bethigh == true) then
  252. tempstr = string.gsub(tempstr, "highlo", "Betting High")
  253. else
  254. tempstr = string.gsub(tempstr, "highlo", "Betting Low ")
  255. end
  256.  
  257. if(opposite == false) then
  258. tempstr = string.gsub(tempstr, "opposite", string.format("%.8f", totalProfit))
  259. end
  260.  
  261. tipstr = ""
  262. if(autotip == true and isTokens == false and bankroll != 0) then
  263. tipvalue = bankroll + tipamount + (tipamount * bankappend)
  264. pct = ((balance - bankroll) / (tipvalue - bankroll)) * 100
  265. if(win and isHunting == true) then
  266. tipstr = string.format(" ... Percent towards tip: %.2f to %s! ... Total Tipped: %.8f\n", pct, receiver, totalTipped)
  267. end
  268. end
  269.  
  270. fin = assert(io.open(filename, "r"))
  271. content = fin:read("*a")
  272. fin:close()
  273.  
  274. fout = assert(io.open(tempfile, "w"))
  275. fout:write(content)
  276. fout:write(tempstr)
  277. if(tipstr != "") then
  278. fout:write(tipstr)
  279. else
  280. fout:write("\n")
  281. end
  282.  
  283. fout:close()
  284. os.remove(filename)
  285. os.rename(tempfile, filename)
  286. end
  287. end
  288.  
  289.  
  290. function dobet()
  291.  
  292. if(enableLogging == true and !win) then
  293. if(lastBet.Roll >= 99.9 or lastBet.Roll <= 0.10) then
  294. if(bethigh == true) then
  295. if(lastBet.Roll < chance) then logWin(true) end
  296. else
  297. if(lastBet.Roll > (99.9999 - chance)) then logWin(true) end
  298. end
  299. -- logWin(true)
  300. -- tempstr = "year-0month-0day 0hour:0minute:0second, betid, roll, highlo\n"
  301. -- tempstr = string.gsub(tempstr, "year", lastBet.date.year)
  302. -- if (lastBet.date.month >= 10) then tempstr = string.gsub(tempstr, "0month", "month") end
  303. -- if (lastBet.date.day >= 10) then tempstr = string.gsub(tempstr, "0day", "day") end
  304. -- if (lastBet.date.hour >= 10) then tempstr = string.gsub(tempstr, "0hour", "hour") end
  305. -- if (lastBet.date.minute >= 10) then tempstr = string.gsub(tempstr, "0minute", "minute") end
  306. -- if (lastBet.date.second >= 10) then tempstr = string.gsub(tempstr, "0second", "second") end
  307. -- tempstr = string.gsub(tempstr, "month", lastBet.date.month)
  308. -- tempstr = string.gsub(tempstr, "day", lastBet.date.day)
  309. -- tempstr = string.gsub(tempstr, "hour", lastBet.date.hour)
  310. -- tempstr = string.gsub(tempstr, "minute", lastBet.date.minute)
  311. -- tempstr = string.gsub(tempstr, "second", lastBet.date.second)
  312. -- tempstr = string.gsub(tempstr, "betid", lastBet.Id)
  313. -- tempstr = string.gsub(tempstr, "roll", lastBet.Roll)
  314. -- if(bethigh == true) then
  315. -- tempstr = string.gsub(tempstr, "highlo", "Betting High")
  316. -- else
  317. -- tempstr = string.gsub(tempstr, "highlo", "Betting Low")
  318. -- end
  319. -- fin = assert(io.open(filename, "r"))
  320. -- content = fin:read("*a")
  321. -- fin:close()
  322. --
  323. -- fout = assert(io.open(tempfile, "w"))
  324. -- fout:write(content)
  325. -- fout:write(tempstr)
  326. -- -- fout:write(oppositeOut)
  327. --
  328. -- fout:close()
  329. -- os.remove(filename)
  330. -- os.rename(tempfile, filename)
  331. end
  332. end
  333.  
  334. if win then
  335.  
  336. totalProfit = totalProfit + (lastBet.Profit - spent)
  337. print(string.format("Total Profit: %.8f", totalProfit))
  338.  
  339. logTest = rollLog
  340. if(rollLog == 0) then
  341. logTest = (100 - (100 * (housePercent / 100))) / chance
  342. end
  343. -- print(logTest)
  344. tipvalue = bankroll + tipamount + (tipamount * bankappend)
  345. pct = ((balance - bankroll) / (tipvalue - bankroll)) * 100
  346. if isTokens == false and autotip == true then
  347. print(string.format("Percent of next tip won: %.2f", pct))
  348. end
  349. if(enableLogging == true and lossCount >= logTest) then
  350. logWin(false)
  351. -- tempstr = "year-0month-0day 0hour:0minute:0second, betid, streak, bet, chance, spent, winamount, profit, roll, highlo\n"
  352. -- tempstr = string.gsub(tempstr, "year", lastBet.date.year)
  353. -- if (lastBet.date.month >= 10) then tempstr = string.gsub(tempstr, "0month", "month") end
  354. -- if (lastBet.date.day >= 10) then tempstr = string.gsub(tempstr, "0day", "day") end
  355. -- if (lastBet.date.hour >= 10) then tempstr = string.gsub(tempstr, "0hour", "hour") end
  356. -- if (lastBet.date.minute >= 10) then tempstr = string.gsub(tempstr, "0minute", "minute") end
  357. -- if (lastBet.date.second >= 10) then tempstr = string.gsub(tempstr, "0second", "second") end
  358. -- tempstr = string.gsub(tempstr, "month", lastBet.date.month)
  359. -- tempstr = string.gsub(tempstr, "day", lastBet.date.day)
  360. -- tempstr = string.gsub(tempstr, "hour", lastBet.date.hour)
  361. -- tempstr = string.gsub(tempstr, "minute", lastBet.date.minute)
  362. -- tempstr = string.gsub(tempstr, "second", lastBet.date.second)
  363. -- tempstr = string.gsub(tempstr, "betid", lastBet.Id)
  364. -- tempstr = string.gsub(tempstr, "streak", lossCount)
  365. -- tempcalc = string.format("%.8f", nextbet)
  366. -- tempstr = string.gsub(tempstr, "bet", tempcalc)
  367. -- tempcalc = string.format("%.2f", chance)
  368. -- tempstr = string.gsub(tempstr, "chance", tempcalc)
  369. -- tempcalc = string.format("%.8f", spent)
  370. -- tempstr = string.gsub(tempstr, "spent", tempcalc)
  371. -- tempcalc = string.format("%.8f", lastBet.Profit)
  372. -- tempstr = string.gsub(tempstr, "winamount", tempcalc)
  373. -- profit = lastBet.Profit - spent
  374. -- tempcalc = string.format("%.8f", profit)
  375. -- tempstr = string.gsub(tempstr, "profit", tempcalc)
  376. -- tempstr = string.gsub(tempstr, "roll", lastBet.Roll)
  377. -- if(bethigh == true) then
  378. -- tempstr = string.gsub(tempstr, "highlo", "Betting High")
  379. -- else
  380. -- tempstr = string.gsub(tempstr, "highlo", "Betting Low")
  381. -- end
  382. -- -- print(tempstr)
  383. --
  384. -- fin = assert(io.open(filename, "r"))
  385. -- content = fin:read("*a")
  386. -- fin:close()
  387. --
  388. -- fout = assert(io.open(tempfile, "w"))
  389. -- fout:write(content)
  390. -- fout:write(tempstr)
  391. -- -- fout:write(oppositeOut)
  392. --
  393. -- fout:close()
  394. -- os.remove(filename)
  395. -- os.rename(tempfile, filename)
  396.  
  397. end
  398. chance = basechance
  399. lossCount = 0 -- reset
  400.  
  401.  
  402. stepCount = 0 -- reset
  403. spent = 0
  404. highLowLossCount = 0
  405. startBalance = balance
  406. tempCalc = balance
  407. if(isTokens == false) then
  408. tempCalc = tempCalc * 100000000
  409. end
  410. tempMult = tempCalc / incDivisor
  411.  
  412. if(tempMult < 1) then tempMult = 1 end
  413. winMult = tempMult
  414. if(winMult > maxWinMult and maxWinMult != 0) then winMult = maxWinMult end
  415. if(tempWinMult != winMult) then
  416. print(string.format("New Win Multiplier: %.2f", winMult))
  417. tempWinMult = winMult
  418. end
  419. nextbet = basebet
  420. calcChance()
  421. autoTune()
  422. else -- if lose
  423. lossCount += 1
  424. highLowLossCount += 1
  425. spent += nextbet
  426.  
  427. winTemp = (100 - (100 * (housePercent / 100))) / chance -- how much you will win for a 1 bet
  428. if(highLowLossCount >= winTemp) then
  429. if(toggleHighLow == true) then
  430. if(bethigh == true) then
  431. bethigh = false
  432. else
  433. bethigh = true
  434. end
  435. end
  436. if(lossCount >= winTemp * 25) then -- was 2
  437. -- if(tempWinMult > 1) then
  438. -- tempWinMult = tempWinMult - 1
  439. -- tempWinMult = tempWinMult / 2
  440. if(tempWinMult > 1) then
  441. tempWinMult = 1 -- Abort the high value, and go minimum for now
  442. if(tempWinMult < 1) then tempWinMult = 1 end
  443. print(string.format("New Win Multiplier: %.2f", tempWinMult))
  444. end
  445. end
  446. highLowLossCount = 0
  447. end
  448. calcChance()
  449. autoTune()
  450.  
  451. if nextbet >= balance then -- Keep rolling, without completely busting. May add flag to disable
  452. if(enableLogging == true) then
  453. tempstr = "year-0month-0day 0hour:0minute:0second, betid, streak, bet, chance, spent, winamount, profit, roll, highlo *******LOSING STOP*******\n"
  454. tempstr = string.gsub(tempstr, "year", lastBet.date.year)
  455. if (lastBet.date.month >= 10) then tempstr = string.gsub(tempstr, "0month", "month") end
  456. if (lastBet.date.day >= 10) then tempstr = string.gsub(tempstr, "0day", "day") end
  457. if (lastBet.date.hour >= 10) then tempstr = string.gsub(tempstr, "0hour", "hour") end
  458. if (lastBet.date.minute >= 10) then tempstr = string.gsub(tempstr, "0minute", "minute") end
  459. if (lastBet.date.second >= 10) then tempstr = string.gsub(tempstr, "0second", "second") end
  460. tempstr = string.gsub(tempstr, "month", lastBet.date.month)
  461. tempstr = string.gsub(tempstr, "day", lastBet.date.day)
  462. tempstr = string.gsub(tempstr, "hour", lastBet.date.hour)
  463. tempstr = string.gsub(tempstr, "minute", lastBet.date.minute)
  464. tempstr = string.gsub(tempstr, "second", lastBet.date.second)
  465. tempstr = string.gsub(tempstr, "betid", lastBet.Id)
  466. tempstr = string.gsub(tempstr, "streak", lossCount)
  467. tempcalc = string.format("%.8f", nextbet)
  468. tempstr = string.gsub(tempstr, "bet", tempcalc)
  469. tempcalc = string.format("%.2f", chance)
  470. tempstr = string.gsub(tempstr, "chance", tempcalc)
  471. tempcalc = string.format("%.8f", spent)
  472. tempstr = string.gsub(tempstr, "spent", tempcalc)
  473. tempcalc = string.format("%.8f", lastBet.Profit)
  474. tempstr = string.gsub(tempstr, "winamount", tempcalc)
  475. profit = lastBet.Profit - spent
  476. tempcalc = string.format("%.8f", profit)
  477. tempstr = string.gsub(tempstr, "profit", tempcalc)
  478. tempstr = string.gsub(tempstr, "roll", lastBet.Roll)
  479. if(bethigh == true) then
  480. tempstr = string.gsub(tempstr, "highlo", "Betting High")
  481. else
  482. tempstr = string.gsub(tempstr, "highlo", "Betting Low ")
  483. end
  484. -- print(tempstr)
  485.  
  486. fin = assert(io.open(filename, "r"))
  487. content = fin:read("*a")
  488. fin:close()
  489.  
  490. fout = assert(io.open(tempfile, "w"))
  491. fout:write(content)
  492. fout:write(tempstr)
  493. -- fout:write(oppositeOut)
  494.  
  495. fout:close()
  496. os.remove(filename)
  497. os.rename(tempfile, filename)
  498. end
  499. print("Balance too low for the bet. Stopping.")
  500. stop()
  501. print("Resetting")
  502. chance = basechance
  503. lossCount = 0 -- reset
  504. nextbet = basebet -- reset
  505. stepCount = 0 -- reset
  506. spent = 0
  507.  
  508. end
  509. end
  510.  
  511. if(autotip == true and isTokens == false) then
  512. if(balance > bankroll + tipamount + (tipamount * bankappend)) then
  513. preTipBalance = balance
  514. tip(receiver, balance - bankroll - (tipamount * bankappend))
  515. sleep(5)
  516. bankroll += (tipamount * bankappend)
  517. tempstr = "New Bankroll: banker"
  518. tempstr = string.gsub(tempstr, "banker", bankroll)
  519. print(tempstr)
  520. tippedOut = 1
  521. end
  522. end
  523.  
  524. sleep(restTime)
  525.  
  526. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement