Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1.  
  2. var ready=false;
  3. function mycashout(){
  4. if(ready){
  5. engine.cashOut();
  6. console.log("Autocashed out");
  7. ready=false;
  8. }
  9. else
  10. console.log("i already cashed out")
  11. }
  12. engine.on('game_started', function(info) {
  13.  
  14. engine.placeBet(100, 588800, function(){ });
  15.  
  16. ready=true;
  17.  
  18. setInterval(function(){ mycashout(); }, 4000);
  19. });
  20.  
  21. engine.on('cashed_out', function(data) {
  22.  
  23. if(data.username == engine.getUsername() && ready==false){
  24. console.log("STOP="+data.stopped_at / 100);
  25. ready=false;
  26. }
  27.  
  28. });
  29. engine.on('game_crash', function(data) {
  30.  
  31. ready=false;
  32.  
  33. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement