Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static boolean bankFish() {
- bankArea != null
- && !bankArea.contains(Players.getLocal().getLocation())) {
- if (!Inv.contains(unCooked)) {
- Status = "Walking to bank";
- Place.walkTo(bankArea);
- }
- }
- if (bankArea != null) {
- if (bankArea.contains(Players.getLocal().getLocation())) {
- if (!Bank.isOpen()) {
- if (!Inv.contains(unCooked)) {
- Status = "Opening bank";
- if (Bank.open()) {
- Timing.wait(Bank.isOpen(), 3000);
- }
- }
- }
- }
- if (Bank.isOpen()) {
- if (Inventory.getCount() > 0) {
- Status = "Depositing inventory";
- if (Bank.depositAll()) {
- Timing.wait(Inventory.getCount() < 1, 3000);
- }
- }
- if (Inventory.getCount() < 1) {
- Status = "Withdrawing uncooked stuff";
- if (Bank.withdraw(unCooked, 0)) {
- Timing.wait(Inventory.getItem(unCooked) != null, 1250);
- } else {
- if (!Banking.contains(unCooked)) {
- Game.logout(true);
- log.info("Out of needed items - Stopped script");
- return -1;
- }
- }
- }
- if (Inv.contains(unCooked)) {
- Status = "Closing bank";
- if (Bank.close()) {
- Timing.wait(!Bank.isOpen(), 1000);
- }
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment