Advertisement
Guest User

PasteToBin (Tue Jul 03 2018)

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