Post
Topic
Board Gambling
Re: bustabit v2 – Dilution fee lowered to 1%
by
devans
on 03/08/2018, 06:12:11 UTC
And anyway, another question - is it possible, somewhere in the script, use some variables like NetProfit or "Current_Amount_on_My_Account" or something like this ? Let's say I'd like to bet (in case of win) 1/1000 of NetProfit (or CurrentAmount, doesn't matter), so my question is, if e.g. this part of code :

Code:
if (config.win.value === 'base') {
   currentBet = config.baseBet.value;
} ...

is possible to replace with something like this :

Code:
if (config.win.value === 'base') {
   currentBet = round(($NetProfit - 20000) / 1000);
} ...

Thanks again, devans, for all your help and communication!

Yes, scripts can access the current net profit at userInfo.profit. For more information on what else the userInfo store provides see its section in the API documentation.