Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. private void Walking(boolean Reverse) {
  2. PathToBank = walking.newTilePath(ToBankPath);
  3. if (!Reverse) {
  4. while (calc.distanceTo(PathToBank.getEnd()) >= 4) {
  5. PathToBank.traverse();
  6. while (calc.distanceTo(walking.getDestination()) >= 6) {
  7. sleep(100);
  8. }
  9. }
  10. } else {
  11. PathToBank.reverse();
  12. while (calc.distanceTo(PathToBank.getEnd()) >= 4) {
  13. PathToBank.traverse();
  14. while (calc.distanceTo(walking.getDestination()) >= 6) {
  15. sleep(100);
  16. }
  17. }
  18. }
  19. }
  20.  
  21. Walking(true); //voor mij naar Fish Spot lopen
  22. Walking(false); //voor mij naar Bank lopen
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement