Post
Topic
Board Gambling discussion
Re: Bustabit Sniper mode but with %?
by
o_e_l_e_o
on 05/02/2020, 09:20:29 UTC
Is there a way to use Sniper mode script to follow someone but using a % of for the bets? Example the follower is betting 20000 I would like it to bet only 2% (400)...

If you can help me successfully do this I would greatly be appreciated might give you a reward.
This is easily done.

Open the default sniper mode script for editing on Bustabit.
Line 13 should look like this:
Code:
log('Spotted', bet.uname, 'betting', bet.wager / 100, 'bit(s) with a', bet.payout + 'x payout.');
"bet.wager / 100" is telling the script to take the target's bet in satoshis, divide it by 100, and use that as your bet in bits (which is the same value). If you change the 100, you will bet different proportions of the target's bet. You can think of the "100" as "100%" of the target's bet. If you want to only bet 2% of their bet, simply change the "100" to "2", save the script, and run it. Your code would now look like this:

Code:
log('Spotted', bet.uname, 'betting', bet.wager / 2, 'bit(s) with a', bet.payout + 'x payout.');