Closed

Make javascript betting script (small script) max price £35

NOTE: THIS A SMALL SCRIPT MAX PRICE IS £35

I would like a javascript betting script done.

This betting site uses a multiplier to place bets FOR EXAMPLE x1.7 any bet that falls below x1.7 will be lost and any bet that becomes equal to or higher than x1.7 will bea win. Nobody knows whether multiplier (x) will be higher or lower than x1.7 until it actually happens.

What I would like is, place a bet for 20 for x1.55 if bet loses (< x.155) then script automatically places a bet with the number 60. If the bet 60 < x1.55 and is a loss the script will then place 185 bet and so on.

If ANY bet is > than x1.55 for example 20(loss) 60(loss) 180(loss) 550(win) then return bets back to 20 and begin again.

The bet numbers used will be 20,60,185,550,1750,4900

There is a script similar out there

var config = {

baseBet: { value: 2000, type: 'balance'},

payout: { value: 1.55, type: 'multiplier' },

stop: { value: 1e8, type: 'balance', label: 'stop if bet >' },

loss: {

value: 'increase', type: 'radio', label: 'On Loss',

options: {

base: { type: 'noop', label: 'Return to base bet' },

increase: { value: 2, type: 'multiplier', label: 'Increase bet by' },

}

},

win: {

value: 'base', type: 'radio', label: 'On Win',

options: {

base: { type: 'noop', label: 'Return to base bet' },

increase: { value: 60, type: 'multiplier', label: 'Increase bet by' },

}

}

};

log('Script is running..');

var currentBet = [login to view URL];

// Always try to bet when script is started

[login to view URL](roundBit(currentBet), [login to view URL]);

[login to view URL]('GAME_STARTING', onGameStarted);

[login to view URL]('GAME_ENDED', onGameEnded);

function onGameStarted() {

[login to view URL](roundBit(currentBet), [login to view URL]);

}

function onGameEnded() {

var lastGame = [login to view URL]()

// If we wagered, it means we played

if (![login to view URL]) {

return;

}

// we won..

if ([login to view URL]) {

if ([login to view URL] === 'base') {

currentBet = [login to view URL];

} else {

[login to view URL]([login to view URL] === 'increase');

currentBet *= [login to view URL];

}

log('We won, so next bet will be', currentBet/100, 'bits')

} else {

// damn, looks like we lost :(

if ([login to view URL] === 'base') {

currentBet = [login to view URL];

} else {

[login to view URL]([login to view URL] === 'increase');

currentBet *= [login to view URL];

}

log('We lost, so next bet will be', currentBet/100, 'bits')

}

if (currentBet > [login to view URL]) {

log('Was about to bet', currentBet, 'which triggers the stop');

[login to view URL]('GAME_STARTING', onGameStarted);

[login to view URL]('GAME_ENDED', onGameEnded);

}

}

function roundBit(bet) {

return [login to view URL](bet / 100) * 100;

}

But it needs to be edited to allow 20,60,185,550,1750,4900

Here is the betting engine APIs

[login to view URL]

Thank you

Skills: Javascript, Software Architecture

See more: php small project price, javascript form auto calculate price, javascript order form table price calculation, small job price list, javascript tabs small, javascript jquery multiple quantity price, javascript resize image max height, resize javascript image maxwidth max height, javascript code calculate total price form, javascript image resize max height max width, javascript input number fee price, javascript rollover small image larger, javascript resize image max width, small webcam price, javascript resize image max, baby tickers make javascript, javascript betting site, javascript gallery small, javascript resize image max width height

About the Employer:
( 0 reviews ) Livingston, United Kingdom

Project ID: #21981908

3 freelancers are bidding on average £173 for this job

liveexperts123

Hi there, I have read your project description and i'm confident i can do this project for you perfectly.I still have a few questions. please leave a message on my chat so we can discuss the budget and deadline of the More

£250 GBP in 6 days
(50 Reviews)
6.9
bestit4u

Hello Respect sir I saw your description, I can't stand the excitement of seeing the project you post on... I bet one's shirt on I have the ability to complete your project perfetly because I have experience with your More

£135 GBP in 7 days
(87 Reviews)
7.0
BitzageTechHub

Greetings, my name is Ahmad. I am Head of Client Relations and a web-developer myself. I would love to have an opportunity to discuss your project with you. With over 5 years of experience in mobile/web design and de More

£135 GBP in 7 days
(2 Reviews)
2.8