Advertisement
coinwalk

Untitled

Jul 22nd, 2023
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. var chance = 49.5;
  2. var arr_of_bets = [];
  3. var s_bets = $(".statspanel>.bets").text();
  4. var s_b = 0,num_bets=5;
  5. var bT;
  6. var bb = 0.00000001;
  7. s_bets = parseFloat(s_bets.replace(/\,/g,''));
  8. function dobet()
  9. {
  10. if(s_b<num_bets-1){
  11. s_b = s_b+1;
  12. $("#pct_chance").val(chance);
  13. $("#pct_bet").val((bb).toFixed(8));
  14. $("#a_hi").click();
  15. add_bets();
  16. }
  17. else {
  18. clearInterval(bT);
  19. arr_of_bets.shift();
  20. var balance = $("#pct_balance").val();
  21. var betid = parseFloat($($('#me.results>div>.betid')[0]).text());
  22. var lucky = parseFloat($($("#me>div>.lucky")[0]).text());
  23. var target = String($($("#me>div>.chance")[0]).text());
  24. var bet = parseFloat($($("#me>div>.bet")[0]).text());
  25. var profit_from_bet = parseFloat($($("#me>div>.profit")[0]).text());
  26. arr_of_bets.push(String('BET_ID => '+betid+' LUCKY => '+lucky+' TARGET => '
  27. +target+' BET_AMOUNT => '+(bet).toFixed(8)+' THIS_PROFIT => '+(profit_from_bet).toFixed(8)+' BALANCE => '+balance));
  28. }
  29. }
  30. function add_bets() {
  31. var balance = $("#pct_balance").val();
  32. var bets = $(".statspanel>.bets").text();
  33. bets = parseFloat(bets.replace(/\,/g,''));
  34. s_b = bets - s_bets;
  35. var betid = parseFloat($($('#me.results>div>.betid')[0]).text());
  36. var lucky = parseFloat($($("#me>div>.lucky")[0]).text());
  37. var target = String($($("#me>div>.chance")[0]).text());
  38. var bet = parseFloat($($("#me>div>.bet")[0]).text());
  39. var profit_from_bet = parseFloat($($("#me>div>.profit")[0]).text());
  40. if(s_b>0){
  41. arr_of_bets[s_b] = String('BET_ID => '+betid+' LUCKY => '+lucky+' TARGET => '
  42. +target+' BET_AMOUNT => '+(bet).toFixed(8)+' THIS_PROFIT => '+(profit_from_bet).toFixed(8)+' BALANCE => '+balance);}
  43. }
  44. bT = setInterval(() => dobet(), 200);
  45. //SHOW ARRAY : arr_of_bets;
  46. //SHOW 5TH BET IN ARRAY : arr_of_bets[4];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement