lipshac

Fibonacci Bot ->

Feb 28th, 2016
1,560
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. // Bustabit Fibonacci Bot
  2. // By: Mayor Pogi
  3. // Fibonacci betting explained http://www.fortunepalace.co.uk/fibonacci.html
  4.  
  5. /**
  6. *
  7. * Inital bet in bits.
  8. * Just like the martingale system you should keep this low because it will grow.
  9. *
  10. *******************/
  11.  
  12. var baseBet = 100;
  13.  
  14. /******************/
  15.  
  16.  
  17. var n = 2;
  18. var currentGameData;
  19.  
  20. engine.on('game_started', function(data) {
  21. currentGameData = data;
  22. });
  23.  
  24. engine.on('game_starting', function(info) {
  25. var currentBet = fib(n) * baseBet * 100;
  26.  
  27. console.log("Betting " + n + " " + currentBet + " 200");
  28.  
  29. engine.placeBet(Math.round(currentBet), 200);
  30.  
  31. });
  32.  
  33. engine.on('game_crash', function(data) {
  34. if (!currentGameData || !currentGameData.hasOwnProperty(engine.getUsername())) return;
  35.  
  36. if(data.game_crash>=200){
  37. n = n-2;
  38. }else{
  39. n++;
  40. }
  41.  
  42. if(n < 1) n = 1;
  43. });
  44.  
  45. function fib(numMax){
  46. for(i=0,j=1,k=0; k<numMax;i=j,j=x,k++ ){
  47. x=i+j;
  48. }
  49. return x;
  50. }
Advertisement
Add Comment
Please, Sign In to add comment