Advertisement
Guest User

v0.2

a guest
Jun 24th, 2018
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
4CS 9.17 KB | None | 0 0
  1.               -- Script for PrimeDice V5 by CanihoJR
  2. --V0.2
  3.  
  4. resetseed()
  5. resetstats()
  6.  
  7. -- Settings
  8. prebet  = 0.00000000
  9. basebet = 0.00000001
  10. nextbet = prebet
  11. chance  = 49.5
  12. strategy= 'kamikaze'
  13.  
  14. -- Tips
  15. dotips      = true
  16. autosettip  = true
  17. bank        = 'cc958db0-db63-4bae-b9b3-fadc399b8ca5'   -- canihojrbank on PD
  18. basetip     = 1.00000000
  19.  
  20. -- Session
  21. sessioninitbalance  = balance
  22.  
  23. -- Inicializacion
  24. initbalance = balance
  25. tempbalance = 0
  26. ctips       = 0
  27.  
  28. -- Variables canihojr
  29. bbet = 0
  30. bwin = 0
  31. bloss= 0
  32.  
  33.  
  34. -- Variables colbit
  35. rmivariable=0
  36. rmivariable2=0
  37.  
  38. -- Variables Recuperar
  39. chance=49.5
  40. revchance=50.5
  41. jackpot=99.89
  42. revjackpot=0.1
  43. multup=2.05
  44. multjackpot=1.0014
  45. rbase=0.01*1.1/(multup^20-1)
  46. basejackpot=rbase
  47. initial=3
  48. threshold=3000
  49. bethigh=true
  50. currentstreak=0
  51. counter=1
  52. reversecounter=0
  53. countjackpot=1
  54. revcountjackpot=0
  55. --nextbet=rbase
  56. main=1
  57.  
  58. -- Variables kamikaze
  59. k_basebet = 0.00000005
  60. k_ganancia = 0.00001000
  61. k_ganancia_base = 0.00001000
  62. k_total = 0
  63. k_high = 0
  64. k_low = 0
  65. k_preroll = 9
  66. k_ganancias = 0.00000000
  67. k_diferencia = 0
  68. k_perdidas_consecutivas = 0
  69. k_recuperar = false
  70. k_contador_ganancia = 0
  71. k_random = 0
  72. k_apuestas_fuertes = 0
  73. k_primera = false
  74. k_apostar = false
  75. k_perdidas = 0
  76. limite = 0.00002999
  77.  
  78. function dobet()
  79.     -- Solo la primera vez:
  80.     settip()
  81.    
  82.     -- Obtengo datos y muestro
  83.    
  84.     preLCD()
  85.  
  86.     -- Selecciono proxima estategia:
  87.     if (strategy == 'canihojr') then
  88.         stracanihojr()
  89.     elseif (strategy == 'colbit') then
  90.         stracolbit()
  91.     elseif (strategy == 'kamikaze') then
  92.         strakamikaze()
  93.     elseif (strategy == 'recuperar') then
  94.         strarecuperar()
  95.     end
  96.  
  97. end
  98.  
  99. function settip()
  100.    if (autosettip) then
  101.         if (currency == 'Btc') then
  102.             basetip = 0.00001001
  103.         elseif (currency == 'Eth') then
  104.             basetip = 0.00010001
  105.         elseif (currency == 'Ltc') then
  106.             basetip = 0.00100001
  107.         end
  108.     end
  109.     autosettip = false
  110. end
  111.  
  112.  
  113.  
  114.  
  115. function preLCD()
  116.     tempbalance = balance - initbalance
  117.    
  118.     --clear()
  119.     --print('\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v')
  120.     print('GENERAL')
  121.     print("═══════")
  122.     print("Currency:\t "..string.upper(currency)..'\t\t Strategy:\t '..strategy)
  123.     print(string.format("Start Bal:\t %.8f", sessioninitbalance))
  124.     print("")
  125.     print(string.format("Base Tip:\t %.8f", basetip))
  126.     print(string.format("Profit:\t %.8f", tempbalance))
  127. end
  128.  
  129. -- STRA KAMIKAZE
  130. function strakamikaze()
  131.     if (win) then
  132.         if (bethigh) then
  133.             k_high = k_high + 1
  134.         else
  135.             k_low = k_low + 1
  136.         end
  137.        
  138.         k_perdidas = k_perdidas + nextbet
  139.     else
  140.         if (bethigh) then
  141.             k_low = k_low + 1
  142.         else
  143.             k_high = k_high + 1
  144.         end
  145.  
  146.         k_perdidas = k_perdidas - nextbet
  147.     end
  148.    
  149.     k_diferencia = math.abs(k_high - k_low)
  150.    
  151.     -- Cáclulo nextapuesta
  152.     if (k_preroll > 0 ) then
  153.             nextbet = 0.00000000
  154.             k_preroll = k_preroll - 1
  155.         else
  156.             if(win) then
  157.                 if(k_recuperar and nextbet >= k_ganancia) then
  158.                     k_recuperar = false
  159.                     k_random = 0
  160.                     k_primera = false
  161.                     k_apostar = false
  162.                     k_ganancia = k_ganancia_base
  163.                 end
  164.  
  165.                 nextbet = k_basebet
  166.                 k_perdidas_consecutivas = 0
  167.                 k_apuestas_fuertes = 0
  168.                 if (k_recuperar) then
  169.                     if  (k_diferencia > 5 and k_contador_ganancia > k_random and k_apostar == true) then
  170.                         nextbet = k_ganancia
  171.                         k_contador_ganancia = 0
  172.                         k_apuestas_fuertes = 0
  173.                     end
  174.                 end
  175.             else
  176.                 k_perdidas_consecutivas = k_perdidas_consecutivas + 1
  177.                 if(k_perdidas_consecutivas < 5) then
  178.                     nextbet = nextbet * 2
  179.                     if(nextbet > k_ganancia_base) then
  180.                         if(nextbet > k_ganancia_base * 4) then
  181.                             k_ganancia = nextbet
  182.                             k_recuperar = true
  183.                             nextbet = 0.00000001
  184.                             k_contador_ganancia = 0
  185.                             k_random = math.random(15, 50)
  186.                         else
  187.                             k_apuestas_fuertes = k_apuestas_fuertes + 1
  188.                             if(k_apuestas_fuertes == 2) then
  189.                                 nextbet = nextbet
  190.                             else
  191.                                 if (k_apuestas_fuertes >= 3) then
  192.                                     k_ganancia = nextbet
  193.                                     nextbet = 0.00000001
  194.                                     k_recuperar = true
  195.                                     if(k_random == 0) then
  196.                                         k_contador_ganancia = 0
  197.                                         k_random = math.random(15, 50)
  198.                                     end
  199.                                 end
  200.                             end
  201.                         end
  202.                     end
  203.                 else
  204.                     nextbet = 0.00000001
  205.                     k_recuperar = true
  206.                     if(k_random == 0) then
  207.                         k_contador_ganancia = 0
  208.                         k_random = math.random(0, 50)
  209.                         k_primera = false
  210.                     else
  211.                         if k_random > 0 then
  212.                             k_contador_ganancia = 0
  213.                         end
  214.                     end
  215.                     if(k_primera == false) then
  216.                         k_primera = true
  217.                         k_apostar = false
  218.                     else
  219.                         k_apostar = true
  220.                     end
  221.                 end
  222.             end
  223.         end
  224.        
  225.        
  226.         -- Cambio lado apuesta, si procede
  227.         if(k_high - 2 <= k_low) then
  228.             bethigh = true
  229.         else
  230.             if(k_low - 2 <= k_high) then
  231.                 bethigh = false
  232.             end
  233.         end
  234.  
  235.         k_total = k_total + 1
  236.         k_contador_ganancia = k_contador_ganancia + 1
  237.  
  238.         if(bethigh) then
  239.             print('Bet high')
  240.         else
  241.             print('Bet Low')
  242.         end
  243.        
  244.  
  245.         if k_perdidas < 0 then
  246.             if math.abs(k_perdidas) >= limite then
  247.                 -- Toca recuperar
  248.             --    kamikaze = false
  249.             --    chance = 90
  250.             --    s_recuperar = 4
  251.                 print("CAMBIO RECUPERAR")
  252.                 nextbet = 0.00000000
  253.                 k_perdidas = math.abs(k_perdidas)
  254.             --    s_roll = 0
  255.             --    s_countloss = 0
  256.             --    s_rolls = 0
  257.             --    s_num = 0
  258.             --    s_last = 0
  259.                 strategy = 'recuperar'
  260.             --    s_seguidas = 0
  261.             --    s_limpiar = false
  262.             --    resetstats()
  263.             --    resetseed()
  264.             end
  265.         else
  266.             k_perdidas = 0
  267.         end
  268. end
  269.  
  270. -- STRA RECUPERAR
  271. function strarecuperar()
  272. if bethigh==true then
  273.     if lastBet.roll>revchance then
  274.         counter=0
  275.     else
  276.         counter=counter+1
  277.     end
  278.    
  279.     if lastBet.roll<chance then
  280.         reversecounter=0
  281.     else
  282.         reversecounter=reversecounter+1
  283.     end
  284.  
  285. else
  286.  
  287.     if lastBet.roll<chance then
  288.         counter=0
  289.     else
  290.         counter=counter+1
  291.     end
  292.    
  293.     if lastBet.roll>revchance then
  294.         reversecounter=0
  295.     else
  296.         reversecounter=reversecounter+1
  297.     end
  298. end
  299.  
  300. if lastBet.roll>=revjackpot then
  301.     revcountjackpot=revcountjackpot+1
  302. else
  303.     revcountjackpot=0
  304. end
  305.  
  306. if lastBet.roll<=jackpot then
  307.     countjackpot=countjackpot+1
  308. else
  309.     countjackpot=0
  310. end
  311.  
  312. -- --------------------------------------
  313. -- Main Martingale ----------------------
  314. -- --------------------------------------
  315.  
  316. if main==1 then
  317.  
  318.  
  319.     if win then
  320.         if reversecounter<initial then
  321.             counter=0
  322.             nextbet=rbase
  323.         else
  324.             bethigh=not bethigh
  325.             counter=reversecounter
  326.             reversecounter=0
  327.             if counter>=initial then
  328.                 nextbet=rbase*math.pow(multup,counter)
  329.             else
  330.                 nextbet=rbase
  331.             end
  332.         end
  333.  
  334.         if countjackpot>threshold then
  335.             --bethigh=true
  336.             --chance=revjackpot
  337.             --nextbet=basejackpot
  338.             --main=2
  339.             nextbet = 0
  340.             strategy = 'kamikaze'
  341.         end
  342.  
  343.         if revcountjackpot>threshold then
  344.             --bethigh=false
  345.             --chance=revjackpot
  346.             --nextbet=basejackpot
  347.             --main=2
  348.             nextbet = 0
  349.             strategy = 'kamikaze'
  350.         end
  351.        
  352.     else
  353.         if counter>=initial then
  354.             nextbet=rbase*math.pow(multup,counter)
  355.         else
  356.             nextbet=rbase
  357.         end
  358.     end
  359.  
  360. else
  361.  
  362. -- -------------------
  363. -- Bonus martingale --
  364. -- -------------------
  365.  
  366.     if win then
  367.         --ching()
  368.         main=1
  369.         nextbet=rbase
  370.         chance=49.5
  371.         bethigh=true
  372.     else
  373.         nextbet=previousbet*multjackpot
  374.     end
  375.  
  376. -- ----------------------------------
  377. -- Stop Loss for the bonus martingale
  378. -- ----------------------------------
  379.  
  380.     if profit<0 then
  381.         --ching()
  382.         main=1
  383.         nextbet=rbase
  384.         chance=49.5
  385.         bethigh=true
  386.         countjackpot=0
  387.         revcountjackpot=0
  388.     end
  389.    
  390. end
  391.  
  392.    
  393. end
  394.  
  395. -- STRA CANIHOJR 16.5x
  396. function stracanihojr()
  397.     chance = 16.5
  398.     bbet += 1
  399.    
  400.     if (win) then
  401.         bwin += 1
  402.         bloss = 0
  403.     else
  404.         bloss += 1
  405.         bwin = 0
  406.     end
  407.    
  408.     print('Apuestas: '..bbet)
  409.     print('Victorias: '..bwin)
  410.     print('Perdidas: '..bloss)
  411. end
  412.  
  413. -- STRA COLBIT
  414. function stracolbit()
  415.    
  416. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement