Advertisement
Guest User

Untitled

a guest
May 25th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.             var id = setInterval(function () {          // this code is executed every 100 milliseconds:
  2.                 var p = engine.getCurrentPayout();
  3.                 if (p >= trigger) {
  4.                     engine.cashOut(true);
  5.                     cashedOut = true;
  6.                     clearInterval(id);                  // ends loop after cashout attempt
  7.                 }
  8.                 if (p == null) { clearInterval(id); }       // ends loop if still running when game ends
  9.                 if (cashedOut) { clearInterval(id); }       // ends loop if cashed out by another method
  10.             }, 100);                                // execution interval, in milliseconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement