Advertisement
coinwalk

freebitco.in

Jun 14th, 2020
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.55 KB | None | 0 0
  1. //variables to change
  2. var baseBetAmount = 0.00000001;
  3. var betMultiplier = 2.0;
  4. var supportedLoseSequenceBetsLength = 16;
  5. var betsPatternsLengthInDecimal = [4];
  6. var betPatternReversed = 1; //will create the pattern reverse only when equal to 1!!!!
  7. var patternPlayPeriodInSeconds = 900; //the period of playing a single pattern.
  8. var binarySequenceOpposite = 2;//if equal to 1, will create binary opposed sequences pattern. value vary from 0 to 2
  9.  
  10.  
  11. //no need to touch the rest!!!!!
  12. //first we load all bets sequences
  13. var betsPatterns = [];
  14. function reverseString(str) {
  15. return str.split('').reverse().join('');
  16. }
  17. function isNumberBetweenInterval(number, a, b, inclusive) {
  18. var min = Math.min(a, b),
  19. max = Math.max(a, b);
  20.  
  21. return inclusive ? number >= min && number <= max :number > min && number < max;
  22. }
  23. function loadBetsPattern(){
  24. betsPatternsLengthInDecimal.forEach(function (t) {
  25. //looking for regular binary
  26. if(isNumberBetweenInterval(binarySequenceOpposite,0, 1, true)){
  27. current = [];
  28. for (i = 0; i < Math.pow(2, t); i++) {
  29. //it support only 9!!!
  30. binary = ("00000000" +i.toString(2)).slice(-1 * t);
  31. current.push( binary );
  32. }
  33. betsPatterns.push(current);
  34. //looking for reverse
  35. if(betPatternReversed === 1){
  36. current = [];
  37. for (i = Math.pow(2, t) - 1; i >= 0 ; i--){
  38. //it support only 9!!!
  39. binary = ("00000000" +i.toString(2)).slice(-1 * t);
  40. current.push( binary );
  41. }
  42. betsPatterns.push(current);
  43. }
  44. }
  45.  
  46.  
  47. //looking for binary opposite
  48. if(isNumberBetweenInterval(binarySequenceOpposite,1, 2, true)){
  49. current = [];
  50. for (i = 0; i < Math.pow(2, t); i++) {
  51. //it support only 9!!!
  52. binary = ("00000000" +i.toString(2)).slice(-1 * t);
  53. current.push( reverseString(binary) );
  54. }
  55. betsPatterns.push(current);
  56. //looking for reverse
  57. if(betPatternReversed === 1){
  58. current = [];
  59. for (i = Math.pow(2, t) - 1; i >= 0 ; i--){
  60. //it support only 9!!!
  61. binary = ("00000000" +i.toString(2)).slice(-1 * t);
  62. current.push( reverseString(binary) );
  63. }
  64. betsPatterns.push(current);
  65. }
  66. }
  67.  
  68.  
  69.  
  70. });
  71. }
  72. loadBetsPattern();
  73. //console.log(betsPatterns);
  74. var currentPattern = 0;
  75. var currentPatternSequenceIndex = 0;
  76. var currentInnerSequencePosition = 0;
  77. var betsCounter = 0;
  78. var currentLoseSequenceBetsCounter = 0;
  79. var maxWait = 500;
  80. var betsButtons = [$('#double_your_btc_bet_hi_button'),$('#double_your_btc_bet_lo_button')];//we can reverse them here if needed
  81. var bets = ["h", "l"];
  82. var currentBetIndex = parseInt(betsPatterns[currentPattern][currentPatternSequenceIndex].charAt(currentInnerSequencePosition));
  83. var $betButton = betsButtons[currentBetIndex];
  84. var gameStopped = false;
  85. var patternStartingDateTime = new Date();
  86.  
  87. function getSecondsBetweenDates(startDate, endDate) {
  88. var diff = endDate.getTime() - startDate.getTime();
  89. return (diff / 1000);
  90. }
  91.  
  92. function setRandomClientSeed() {
  93. var chaine_CLIENT =
  94. "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
  95. var generate, i;
  96. var CLIENT_SEED = "";
  97. var CLIENT_SEED_size = 64;
  98. for (i = 0; i < CLIENT_SEED_size; i++) {
  99. if (!i) {
  100. generate = Math.floor(Math.random() *chaine_CLIENT.length + 1); //un nombre entre 1 et 62
  101. } else {
  102. generate = Math.floor(Math.random() *chaine_CLIENT.length); //un nombre entre 0 et 62
  103. }
  104.  
  105. CLIENT_SEED += chaine_CLIENT.charAt(generate);
  106. }
  107.  
  108.  
  109.  
  110. $("#next_client_seed").val(CLIENT_SEED);
  111. return CLIENT_SEED;
  112. }
  113.  
  114. function getRandomWait() {
  115. var wait = Math.floor(Math.random() * maxWait) + 100;//was 100
  116. //console.log('Waiting for ' + wait + 'ms before next bet.');
  117. return wait;
  118. }
  119.  
  120. function setMultiply() {
  121. var current = $('#double_your_btc_stake').val();
  122. var nbr = parseInt(current * 100000000 * betMultiplier)/ 100000000;
  123. var multiply = nbr.toFixed(8);
  124. $('#double_your_btc_stake').val(multiply);
  125. return multiply;
  126. }
  127.  
  128. function reset() {
  129. $('#double_your_btc_stake').val(parseFloat(baseBetAmount).toFixed(8));
  130. }
  131.  
  132. function stop() {
  133. console.log('Game will stop soon! Let me finish.');
  134. gameStopped = true;
  135. }
  136.  
  137. function start() {
  138.  
  139. console.log('Game started!');
  140.  
  141. //change client seed, that have to be changed for every roll
  142. setRandomClientSeed();
  143. //return to base bet amount
  144. reset();
  145.  
  146. //we start betting
  147. setTimeout(function () {
  148. $betButton.trigger('click');
  149. }, getRandomWait());
  150. }
  151.  
  152. // Unbind old shit
  153. $('#double_your_btc_bet_lose').unbind();
  154. $('#double_your_btc_bet_win').unbind();
  155.  
  156.  
  157. // Loser
  158. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event) {
  159. if ($(event.currentTarget).is(':contains("lose")')) {
  160. /*when losing, follow current sequence, when finished start the next sequence*/
  161.  
  162. //save the old bet in current lose sequence and general bets counters
  163.  
  164. //index: local variable: will save the old value for a bit, till we update them.
  165. index = currentPatternSequenceIndex;
  166.  
  167. currentInnerSequencePosition++;
  168. currentPatternSequenceIndex =(currentPatternSequenceIndex +parseInt(currentInnerSequencePosition /betsPatterns[currentPattern][index].length) ) %betsPatterns[currentPattern].length;
  169. currentInnerSequencePosition =currentInnerSequencePosition % betsPatterns[currentPattern][index].length;
  170.  
  171.  
  172. currentLoseSequenceBetsCounter++;
  173. betsCounter++;
  174.  
  175.  
  176.  
  177. console.log('Bet Stats::: betsCounter:'+betsCounter+';currentLoseSequenceBetsCounter:'+currentLoseSequenceBetsCounter+';currentBet:'+bets[currentBetIndex]);
  178. console.log('You Lose! Betting again.');
  179.  
  180. //start working on the next bet
  181. //change client seed, that have to be changed for every roll
  182. setRandomClientSeed();
  183. //multiply bet amount
  184. setMultiply();
  185.  
  186. if(currentLoseSequenceBetsCounter <supportedLoseSequenceBetsLength){
  187. //we still can bet supporting another lose bet, so we build the next bet
  188. //we load next bet index from betsPattern
  189. console.log('currentPattern: '+currentPattern+' || currentPatternSequenceIndex: '+currentPatternSequenceIndex+' || currentInnerSequencePosition: '+currentInnerSequencePosition);
  190. currentBetIndex =parseInt(betsPatterns[currentPattern][currentPatternSequenceIndex].charAt(currentInnerSequencePosition));
  191. //we load the next bet button
  192. $betButton = betsButtons[currentBetIndex];
  193. //we play another new bet
  194. setTimeout(function () {
  195. $betButton.trigger('click');
  196. }, getRandomWait());
  197.  
  198.  
  199.  
  200. }else{
  201. //we can't support another bet! so we stop the game
  202. //nothing to do now, and the game will be stopped. but we need to make sure, that browser didn't refresh automatically
  203. console.log('Game stopped after losing. supported lose sequence reached.');
  204. }
  205. }
  206. });
  207.  
  208. // Winner
  209. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event) {
  210. if ($(event.currentTarget).is(':contains("win")')) {
  211.  
  212.  
  213. /*when winning, stop current sequence and start the next sequence.*/
  214.  
  215. //the first character in the next looped sequence
  216. currentPatternSequenceIndex =++currentPatternSequenceIndex %betsPatterns[currentPattern].length;
  217. currentInnerSequencePosition = 0;
  218.  
  219. //save the old winning bet
  220. betsCounter ++;
  221. currentLoseSequenceBetsCounter = 0;
  222.  
  223. console.log('Bet Stats::: betsCounter:'+betsCounter+';currentLoseSequenceBetsCounter:'+currentLoseSequenceBetsCounter+';currentBet:'+bets[currentBetIndex]);
  224. console.log('You WON! Betting again.');
  225.  
  226. /*when winning, we check pattern validity. we change pattern every fixed minutes only when we win!!*/
  227. if(getSecondsBetweenDates(patternStartingDateTime,new Date()) >= patternPlayPeriodInSeconds){
  228. //we update the date
  229. patternStartingDateTime = new Date();
  230. //we loop the next pattern and start fresh
  231. currentPattern = ++currentPattern %betsPatterns.length;
  232. currentPatternSequenceIndex = 0;
  233. currentInnerSequencePosition = 0;
  234. console.log('Single Pattern Play Period Reached ==> Moving to the next pattern!');
  235. }
  236.  
  237.  
  238. if(!gameStopped){
  239. //start working on the next bet
  240. //change client seed, that have to be changed for every roll
  241. setRandomClientSeed();
  242. //return to base bet amount
  243. reset();
  244.  
  245. //we load next bet index from betsPattern
  246. console.log('currentPattern: '+currentPattern+' || currentPatternSequenceIndex: '+currentPatternSequenceIndex+' || currentInnerSequencePosition: '+currentInnerSequencePosition);
  247. currentBetIndex =parseInt(betsPatterns[currentPattern][currentPatternSequenceIndex].charAt(currentInnerSequencePosition));
  248. //we load the next bet button
  249. $betButton = betsButtons[currentBetIndex];
  250. setTimeout(function () {
  251. $betButton.trigger('click');
  252. }, getRandomWait());
  253.  
  254.  
  255. }else{
  256. console.log('Game Stopped.');
  257. }
  258.  
  259. }
  260. });
  261. //starting the script
  262. start();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement