Advertisement
cryptomonkey

99 Luftballons

Dec 5th, 2019
451
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.54 KB | None | 0 0
  1. -- 99 Luftballons
  2. -- https://youtu.be/La4Dcd1aUcE
  3.  
  4.  
  5. -- c9.91
  6. -- basebet=bal/1,000,000
  7. -- bets=99
  8. -- increase on loss 19.99%
  9.  
  10.  
  11.  
  12. ------------------
  13. basechance = 9.91
  14. basebet    = balance/1000000
  15. ------------------
  16. nextbet=basebet
  17. chance=basechance
  18. ------------------
  19. bethigh=false
  20. lowhigh     = 1
  21. rollcount   = 0
  22. betcount=0
  23.  
  24. stoploss  = balance*0.90
  25. wintarget = balance*1.10
  26.  
  27. function dobet()
  28.  
  29.     -- Check Balance
  30.     if balance-(nextbet) >= wintarget and wintarget ~= 0 then
  31.             print("\n\nWinTarget Reach\n\n")
  32.             resetseed()
  33.             resetstats()
  34.             nextbet = basebet
  35.             stop();
  36.             ching();
  37.     end
  38.    
  39.     if balance-(nextbet) <= stoploss and stoploss ~= 0 then
  40.         print("\n\nStoploss Reach\n\n")
  41.         stop()
  42.         ching()
  43.         end
  44.  
  45. if win then
  46.     print("Winner! Chicken dinner!")
  47.     nextbet=basebet
  48.     lowhigh = math.random(0,1)
  49.     betcount=betcount+1
  50.     end
  51.  
  52. if !win then
  53.     betcount=betcount+1
  54.     nextbet  = previousbet*1.1999
  55.     end
  56.  
  57. if betcount==99 then
  58.     print("99 Luftballons :p")
  59.     resetseed()
  60.     stop();
  61.     ching();
  62.     betcount = 0
  63.     print("Dare to continue..?")
  64.    
  65. --sets hi/lo
  66. if (lowhigh == 0) then
  67.     bethigh = false
  68. else
  69.     bethigh = true
  70. end
  71.  
  72. --change seed every 10 rolls/bets
  73. if (rollcount == 99) then
  74.     rollcount = 0
  75.     --resetseed();
  76.     print("-----------------------------------")
  77.     print("PROFIT:") print(profit)
  78.     print("-----------------------------------")
  79. else
  80.     rollcount = rollcount + 1
  81. end
  82.  
  83.  
  84. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement