Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean waitToMove(final int timeout) {
- final long start = System.currentTimeMillis();
- RSPlayer myPlayer = players.getMyPlayer();
- while (System.currentTimeMillis() - start < timeout) {
- if (myPlayer.isMoving()) {
- return true;
- }
- sleep(15);
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement