blahs44

Untitled

Oct 2nd, 2013
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 4.63 KB | None | 0 0
  1.  public int bank() {
  2.                 try {
  3.                         if (!this.client.getBank().isOpen()) {
  4.                                 try {
  5.                                         selectEntityOption(
  6.                                                         closestObjectForName(new String[] { "Bank booth" }),
  7.                                                         true, "Bank");
  8.                                 } catch (InterruptedException e) {
  9.                                         e.printStackTrace();
  10.                                 }
  11.                         } else {
  12.                                 try {
  13.                                         if (lumbPath == 0) {
  14.                                                 this.client.getBank().depositAllExcept(this.praypots);
  15.                                                 if (pot3 != 0) {
  16.                                                         if (client.getBank().isOpen()
  17.                                                                         && !client.getBank().contains(2434)) {
  18.                                                                 client.getBank().close();
  19.                                                                 stop();
  20.                                                         }
  21.                                                 } else {
  22.                                                         if (client.getBank().isOpen()
  23.                                                                         && !client.getBank().contains(139)) {
  24.                                                                 client.getBank().close();
  25.                                                                 stop();
  26.                                                         }
  27.                                                 }
  28.                                         } else {
  29.                                                 this.client.getBank().depositAllExcept(
  30.                                                                 new int[] { 8008, 565, 563 });
  31.                                         }
  32.                                         if (lumbPath == 0) {
  33.                                                 if (pot3 != 0) {
  34.                                                         if ((!this.client.getInventory().contains(2434))
  35.                                                                         && (!this.client.getInventory().contains(
  36.                                                                                         141))) {
  37.                                                                 this.client.getBank().withdraw1(2434);
  38.                                                         } else {
  39.                                                                 if ((!this.client.getInventory().contains(139))
  40.                                                                                 && (!this.client.getInventory()
  41.                                                                                                 .contains(141))) {
  42.                                                                         this.client.getBank().withdraw1(139);
  43.                                                                 }
  44.                                                         }
  45.                                                 }
  46.                                         }
  47.                                         if (this.client.getSkills()
  48.                                                         .getCurrentLevel(Skill.HITPOINTS) <= 32)
  49.                                                 this.client.getBank().withdraw1(379);
  50.                                 } catch (InterruptedException e) {
  51.                                         e.printStackTrace();
  52.                                 }
  53.                                 if (lumbPath == 0) {
  54.                                         if ((this.client.getInventory().contains(139))
  55.                                                         || (this.client.getInventory().contains(141))
  56.                                                         || (this.client.getInventory().contains(2434))) {
  57.                                                 this.client.getBank().close();
  58.                                                 this.state = State.Gate_Path;
  59.                                         }
  60.                                 } else {
  61.                                         this.client.getBank().close();
  62.                                         this.state = State.Gate_Path;
  63.                                 }
  64.                         }
  65.                 } catch (InterruptedException localInterruptedException1) {
  66.                 }
  67.                 return 1000;
  68.         }
Advertisement
Add Comment
Please, Sign In to add comment