Guest User

Untitled

a guest
Dec 16th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. public static boolean bankFish() {
  2. bankArea != null
  3. && !bankArea.contains(Players.getLocal().getLocation())) {
  4. if (!Inv.contains(unCooked)) {
  5. Status = "Walking to bank";
  6. Place.walkTo(bankArea);
  7. }
  8. }
  9. if (bankArea != null) {
  10. if (bankArea.contains(Players.getLocal().getLocation())) {
  11. if (!Bank.isOpen()) {
  12. if (!Inv.contains(unCooked)) {
  13. Status = "Opening bank";
  14. if (Bank.open()) {
  15. Timing.wait(Bank.isOpen(), 3000);
  16. }
  17. }
  18. }
  19. }
  20.  
  21. if (Bank.isOpen()) {
  22.  
  23. if (Inventory.getCount() > 0) {
  24. Status = "Depositing inventory";
  25. if (Bank.depositAll()) {
  26. Timing.wait(Inventory.getCount() < 1, 3000);
  27. }
  28. }
  29. if (Inventory.getCount() < 1) {
  30. Status = "Withdrawing uncooked stuff";
  31. if (Bank.withdraw(unCooked, 0)) {
  32. Timing.wait(Inventory.getItem(unCooked) != null, 1250);
  33. } else {
  34. if (!Banking.contains(unCooked)) {
  35.  
  36. Game.logout(true);
  37. log.info("Out of needed items - Stopped script");
  38. return -1;
  39.  
  40. }
  41. }
  42. }
  43.  
  44. if (Inv.contains(unCooked)) {
  45.  
  46. Status = "Closing bank";
  47. if (Bank.close()) {
  48. Timing.wait(!Bank.isOpen(), 1000);
  49. }
  50. }
  51. }
  52. }
  53. }
Add Comment
Please, Sign In to add comment