Bitcoin Forum

Economy => Gambling => Topic started by: NoirSuccubus on May 17, 2015, 06:00:34 PM



Title: Looking for someone to make bustabit script, paying $20
Post by: NoirSuccubus on May 17, 2015, 06:00:34 PM
I'm looking for someone to make me a betting script for this site that I can also use on nxtbubble.com
I will pay 20 bucks in nxt or btc. I'll pay first if you're well known or we can use escrow.

Here's an idea of what I must have.

Each bet, the numbers have to adjust to maximum bet size and minimum multiplier to offset prior round's loss and leaving a small profit.   

Bet example:

My base bet it 1 nxt, 3 nxt is cash out goal.

1nxt is bet,  3x multiplier goal reached - - > cash out

1nxt is bet,  bust  comes before 3x  (-1nxt profit)  so
11nxt is bet, 1.1x multiplier  goal reached--> +1.1nxt profit,  cash out. Return to base bet of 1nxt.

11nxt is bet,  bust comes  before 1.1x  (- 11nxt profit) ,  so
111nxt is bet, 1.1x multiplier goal reached--> +11.1nxt profit, cash out.  Return to base bet of 1nxt.

111nxt is bet, bust comes before, 1.1x (- 111nxt profit) ,  so   
1111nxt is bet, 1.1x multiplier goal reached--> +111.1nxt profit, cash out.  Return to base bet of 1nxt.

so on and so forth.

I'll be adjusting the numbers on my own, will just need to know what numbers mean what.


Title: Re: Looking for someone to make bustabit script, paying $20
Post by: Gronthaing on May 17, 2015, 06:43:41 PM
Don't think this should be in gambling. Maybe in the services board: https://bitcointalk.org/index.php?board=52.0 I think you can move the thread with a button below on the left side. Then choose the new board. And good luck with it.


Title: Re: Looking for someone to make bustabit script, paying $20
Post by: RHavar on May 17, 2015, 08:40:00 PM
A while ago, Dooglus posted a script he made:

https://bitcointalk.org/index.php?topic=709185.msg9379308#msg9379308

which seems like it would fit your purposes. Since then there's been a minor API change, so here's the adapted version:

Code:
var baseBet = 10; // in Bits

var cashout;
var mult;

// set one of mult or cashout, and the other will be calculated for you:

// mult = 1.12;
cashout = 1.5;

// what percentage to increase the net profit by each time we lose a bet; 0 for pure martingale
greed_percent = 5;

if (!mult)
    mult = cashout / (cashout - 1) * (1 + greed_percent/100);
else if (!cashout)
    cashout = mult / (mult - 1) * (1 + greed_percent/100);

var satoshis = baseBet * 100;
var crash = Math.floor(cashout*100 + 1e-6);

var currentBet = false;

engine.on('game_starting', function () {
    if (currentBet && engine.lastGamePlay() === 'LOST')
        currentBet *= mult;
    else
        currentBet = satoshis;

    if (currentBet < engine.getBalance()) {
        console.log('place bet of', Math.round(currentBet/100), 'at', crash/100);
        engine.placeBet(Math.round(currentBet/100)*100, crash, false);
    }
    else {
        engine.stop();
        console.log('You ran out of bits :(');
    }
});

Give that a go, and let me know if it fits your needs