Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Bustabit Fibonacci Bot
- // By: Mayor Pogi
- // Fibonacci betting explained http://www.fortunepalace.co.uk/fibonacci.html
- /**
- *
- * Inital bet in bits.
- * Just like the martingale system you should keep this low because it will grow.
- *
- *******************/
- var baseBet = 100;
- /******************/
- var n = 2;
- var currentGameData;
- engine.on('game_started', function(data) {
- currentGameData = data;
- });
- engine.on('game_starting', function(info) {
- var currentBet = fib(n) * baseBet * 100;
- console.log("Betting " + n + " " + currentBet + " 200");
- engine.placeBet(Math.round(currentBet), 200);
- });
- engine.on('game_crash', function(data) {
- if (!currentGameData || !currentGameData.hasOwnProperty(engine.getUsername())) return;
- if(data.game_crash>=200){
- n = n-2;
- }else{
- n++;
- }
- if(n < 1) n = 1;
- });
- function fib(numMax){
- for(i=0,j=1,k=0; k<numMax;i=j,j=x,k++ ){
- x=i+j;
- }
- return x;
- }
Advertisement
Add Comment
Please, Sign In to add comment