NotADeveloper

Bob The Banker Script

Mar 24th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.45 KB | None | 0 0
  1. // Script Name: Bob the Banker
  2. // Author: Jiggles 03-24-2017
  3.  
  4. // for background music when playing: https://www.youtube.com/watch?v=XlUjryOP3LE
  5.  
  6. // Please remember Jiggles if you do well with this script - send a transfer - will be in Jiggles history and can assist in custom tweaking requests.
  7. // I spend hours a day refining scripts, so all people have to do is paste them in.
  8. // So keep ole Jiggles in mind if you do well. Thanks
  9.  
  10. // User Defined variables
  11.  
  12. var BetSizeIsBankrollDividedBy = 50;
  13. var BetSizeIsBankrollDividedByBase = BetSizeIsBankrollDividedBy;
  14. var BetSizeIsBankrollDividedByMinimum=10;
  15. var CashoutPercentage = 110;
  16. var UpperRangeLimit = 136;
  17. var BetProtectionLimit = 10;
  18.  
  19. // Internal use
  20. var CashoutPercentageBase = CashoutPercentage;
  21. var BitsToBet=10;
  22. var BitsToBetBase; //BitsToBet;
  23. var LossCount =0; // forces aggressive first bet for win streak
  24. var WinCount=0;
  25. var LastCrash=0;
  26. var BitsToRecover=0;
  27.  
  28. var RoundCount=0;
  29. var LossRecoveryTemp =1;
  30. var NyanChaseCounterBase = 25;
  31. var NyanChaseAmount = 5;
  32. var NyanChaseCounter =0;
  33. var NyanNotSeenSince = 950
  34. ; // Manually set this at run to current Nyan Seen last count
  35. var NyanTrigger = 2500;
  36. var NyanTest =0;
  37. var NeverChaseNyan = false;
  38. var WinStreak=0;
  39.  
  40. var BitsToBetTemp;
  41.  
  42. var TempCashout;
  43.  
  44. // Round Start Evaluate last round status was it a win or loss:
  45.  
  46. engine.on('game_starting', function(data) {
  47. RoundCount++;
  48. // if (RoundCount==1) alert('If you do well with this script - please consider sending something back to the author Landrew - greatly appreciated, ask in chat for updates. Press F12 or CTRL-Shift I to see console log / stats');
  49.  
  50.  
  51. // Last round was a loss record loss for later recovery
  52. if (engine.lastGamePlay() == 'LOST') {
  53.  
  54. if (NyanChaseCounter <= 0) {
  55. if (LossCount==0) {
  56. BetSizeIsBankrollDividedBy-=0.25;
  57. CashoutPercentage=CashoutPercentageBase+20+Math.random()*25;
  58. BitsToBet=(BitsToBet-(BitsToRecover(0.05)))*2.9;
  59. BitsToRecover+=BitsToBet;
  60. console.log('%cFirst Loss Adjusted to: ' + BitsToBet, 'color:orange');
  61. } else if (LossCount==1) {
  62.  
  63.  
  64. BitsToBet=(BitsToBet-(BitsToRecover*0.05))*2.1;
  65. BitsToRecover+=BitsToBet;
  66. CashoutPercentage+=10;
  67. BetSizeIsBankrollDividedBy-=1;
  68.  
  69. } else {
  70.  
  71. BitsToRecover+=BitsToBet*1.1;
  72. BitsToBet*=0.90;
  73. CashoutPercentage+=10;
  74. BetSizeIsBankrollDividedBy-=1;
  75. }
  76. }
  77.  
  78. LossCount++;
  79. WinCount=0;
  80.  
  81. }
  82. // Last round was a win - derive base bet plus loss recovery portion.
  83. else {
  84. if (WinCount ==0 || WinStreak==0) {
  85. CashoutPercentage=CashoutPercentageBase;
  86.  
  87. } else {
  88. CashoutPercentage+=Math.random()*10;
  89. BetSizeIsBankrollDividedBy+=0.1
  90. }
  91.  
  92. BitsToBetBase = Math.floor(((engine.getBalance()/100)-BitsToRecover)/BetSizeIsBankrollDividedBy);
  93.  
  94. BitsToBet=BitsToBetBase;
  95.  
  96. // BetSizeIsBankrollDividedBy*=0.99 ;
  97. //BetSizeIsBankrollDividedBy-=WinCount;
  98.  
  99. if (BetSizeIsBankrollDividedBy < BetSizeIsBankrollDividedByMinimum) BetSizeIsBankrollDividedBy = BetSizeIsBankrollDividedByBase;
  100.  
  101. LossRecoveryTemp = BitsToRecover*0.05; // 5% of debt
  102.  
  103. BitsToBet+=LossRecoveryTemp;
  104. BitsToRecover-=LossRecoveryTemp*0.75; // 25% interest on debt remaining
  105. if (BitsToRecover < 0) BitsToRecover = 0;
  106. if (BitsToRecover > 0) CashoutPercentage+=5;
  107.  
  108.  
  109. if (!NeverChaseNyan) {
  110. NyanTest = Math.random();
  111. if (NyanNotSeenSince > NyanTrigger) {
  112.  
  113. if (NyanTest > 0.66) {
  114. NyanChaseCounter=NyanChaseCounterBase;
  115. console.log('Past Due Date: NyanTest= ', NyanTest);
  116. }
  117.  
  118. }
  119.  
  120. if (NyanTest > 0.99) {
  121. NyanChaseCounter=NyanChaseCounterBase;
  122.  
  123. console.log('Random Chance: NyanTest= ', NyanTest);
  124. }
  125.  
  126. if (NyanNotSeenSince > NyanTrigger*2) {
  127.  
  128. NyanChaseCounter=NyanChaseCounterBase;
  129. console.log('Past 2x Due: NyanTest= ', NyanTest);
  130. }
  131. }
  132.  
  133. if (CashoutPercentage > UpperRangeLimit && LossCount <=0) CashoutPercentage = CashoutPercentageBase
  134. WinCount++;
  135. WinStreak++;
  136. LossCount=0;
  137. }
  138.  
  139.  
  140.  
  141. TempCashout=CashoutPercentage;
  142. BitsToBetTemp=BitsToBet;
  143.  
  144. if (Math.random() > 0.8 && WinCount > 0) {
  145. BitsToBetTemp*=1.3;
  146. console.log('Bonus WinCount> 0: ' + BitsToBetTemp, 'color:green');
  147. }
  148. if (Math.random() > 0.8 && WinCount > 5) {
  149. TempCashout*=1.1;
  150. console.log('Bonus WinCount> 5: ' + BitsToBetTemp, 'color:green');
  151. }
  152. if (Math.random() > 0.8 && WinCount > 3) {
  153. BitsToBetTemp*=1.2;
  154. console.log('Bonus WinCount> 3: ' + BitsToBetTemp, 'color:green');
  155. }
  156.  
  157.  
  158. if (WinStreak > 10) {
  159. WinStreak=0;
  160. BetSizeIsBankrollDividedBy+=10;
  161. BitsToBetTemp*=0.8;
  162. CashoutPercentage=1.05;
  163. }
  164.  
  165.  
  166. if (NyanChaseCounter > 0 && !NeverChaseNyan) {
  167. NyanChaseCounter--;
  168. if (NyanChaseCounter==0) WinCount=0;
  169. BitsToBetTemp=NyanChaseAmount + ((NyanChaseCounterBase-NyanChaseCounter)/2);
  170. TempCashout=100000;
  171.  
  172. console.log(' ');
  173. console.log('Chasing %cN'+'%cY'+'%cA'+'%cN', 'color:red', 'color:blue', 'color:yellow', 'color:green');
  174. console.log('Nyan Counter: ', NyanChaseCounter)
  175. console.log('Bits Bet: ', BitsToBetTemp);
  176. console.log('Cashout: ', TempCashout);
  177. } else {
  178.  
  179. console.log(' ');
  180. console.log('Bits Bet: ', BitsToBetTemp);
  181. console.log('Bit Bet Minimum: ',BitsToBetBase);
  182. console.log('Cashout: ', TempCashout);
  183. console.log('WinCount: ', WinCount);
  184. console.log('LossCount: ', LossCount);
  185.  
  186. console.log('Last Crash: ', LastCrash);
  187. console.log('Divide BR by: ',BetSizeIsBankrollDividedBy);
  188. console.log('Bits To Recover: ',BitsToRecover);
  189. console.log('Recovery Add-on: ', LossRecoveryTemp*1.1);
  190.  
  191. }
  192. //alert(BitsToBetTemp + ':' + Math.floor(((engine.getBalance()/100)-BitsToRecover)/BetProtectionLimit));
  193. if (BitsToBetTemp < Math.floor(((engine.getBalance()/100)-BitsToRecover)/BetProtectionLimit)) {
  194. engine.placeBet(Math.floor(BitsToBetTemp)*100 ,Math.floor(TempCashout));
  195. } else {
  196. engine.placeBet(Math.floor(BitsToBetTemp/2)*100 ,Math.floor(TempCashout));
  197. BitsToRecover+=BitsToBetTemp*0.5;
  198. console.log('%cOVERFLOW: ' + Math.floor(BitsToBetTemp) + ' to ' +Math.floor(((engine.getBalance()/100)-BitsToRecover)/BetProtectionLimit) , 'color:red')
  199. BetSizeIsBankrollDividedBy+=10;
  200. }
  201.  
  202. });
  203.  
  204. engine.on('game_crash', function(data) {
  205. LastCrash=data.game_crash/100;
  206. if (LastCrash < 100000) {
  207. NyanNotSeenSince++;
  208. } else {
  209. NyanNotSeenSince=0;
  210. }
  211.  
  212. // if (CashoutPercentage/100 > LastCrash) BitsToRecover+=BitsToBetTemp;
  213.  
  214. });
Add Comment
Please, Sign In to add comment