Coder Social home page Coder Social logo

-'s Introduction

-

777

-'s People

Contributors

hmyti avatar

Stargazers

 avatar

Watchers

 avatar

-'s Issues

er

var config = {

scriptTitle: {label: '//////// Script by BeesH-RSA | UID 3198768 - Dont be an ass, share some love!\\\\ ) ', type: 'title'},

baseBet: {label: 'Starting Bet:', value: 0.000055, type: 'number'},

baseBet: {

    label: 'Base Bet',

    value: currency.minAmount,

    type: 'number'

},

startingChance: {

    label: 'Starting Chance',

    value: 0.01,

    type: 'number'

},

}

var chance = config.startingChance.value;

var currentPayout = ((1/chance)*99);

var losecount = 0;

var betcount = 0;

var varix = 1.025;

var previousBet = currentBet;

var runningbalance = currency.amount;

var originalbalance = currency.amount;

var baseBet = config.baseBet.value;

var currentBet = baseBet;

function main () {

game.onBet = function () {

    game.bet(currentBet, currentPayout).then(function(payout) {

        runningbalance -= currentBet;

        previousBet = currentBet;

        betcount += (1);

       

        if (payout > 1) {

            var netwin = currentBet * currentPayout;

            runningbalance += netwin;

           

            currentBet = baseBet;

            losecount = 0;

            chance = 0.1;

            varix = 1.025;

       

        } else {

           

            if (losecount >= 190) {

                varix = 1.05;

            }

            if (losecount >= 260) {

                varix = 1.066;

            }



            losecount += (1);

            currentBet = (previousBet * varix);



            chance += (0.01);



        }



        currentPayout = ((1/chance)*99);



        if (betcount % 100 == 0) {

            logSummary();

        }

       

        log.info('Betting: ' + currentBet.toFixed(7) + ' ' + ' X ' + ' ' + currentPayout.toFixed(2));

    });

}

}

function logSummary() {

var netNumber = runningbalance - originalbalance;

var netPecentage = (netNumber / originalbalance) * 100;



if (originalbalance < runningbalance) {

    log.success('Total Profit: ' + netNumber.toFixed(7) + '(' + netPecentage.toFixed(2) + '%)');

} else {

    log.error('Total Profit: ' + netNumber.toFixed(7) + '(' + netPecentage.toFixed(2) + '%)');

}

}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.