Advertisement
Guest User

PasteToBin (Tue Jun 26 2018)

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