Advertisement
coinwalk

sorry here freebitco.in script

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