Advertisement
Guest User

v0.5

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