Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var divider = 100; var chance = 49.5; var a = 1;
- var balance = parseFloat(document.getElementById('pct_balance').value);
- var target = balance*1.2;
- var betAmt = ((balance/divider).toFixed(8));
- var mybet;
- document.getElementById('pct_chance').value = chance;
- parseFloat(document.getElementById('pct_bet').value = betAmt);
- function dobet(){
- balancez = document.getElementById('pct_balance').value;
- var stuit = document.getElementById('pct_bet').value;
- document.getElementById('pct_chance').value = chance;
- if (mybet==null) {
- mybet = stuit;
- }
- if (balancez>balance) {
- balance = parseFloat(balancez);
- mybet = ((stuit*2).toFixed(8));
- }
- if (balancez<balance) {
- balance = parseFloat(balancez);
- mybet = betAmt;
- }
- if (balancez>=target) {
- //stop();
- return;
- }
- if (a==0) {
- //stop();
- return;
- }
- balancez = document.getElementById('pct_balance').value;
- parseFloat(document.getElementById('pct_bet').value = ((mybet*1).toFixed(8)));
- $('#a_lo').click();
- console.log(balancez, balance, mybet, target);
- }
- setInterval(() => dobet(), 300);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement