Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int bank() {
- try {
- if (!this.client.getBank().isOpen()) {
- try {
- selectEntityOption(
- closestObjectForName(new String[] { "Bank booth" }),
- true, "Bank");
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- } else {
- try {
- if (lumbPath == 0) {
- this.client.getBank().depositAllExcept(this.praypots);
- if (pot3 != 0) {
- if (client.getBank().isOpen()
- && !client.getBank().contains(2434)) {
- client.getBank().close();
- stop();
- }
- } else {
- if (client.getBank().isOpen()
- && !client.getBank().contains(139)) {
- client.getBank().close();
- stop();
- }
- }
- } else {
- this.client.getBank().depositAllExcept(
- new int[] { 8008, 565, 563 });
- }
- if (lumbPath == 0) {
- if (pot3 != 0) {
- if ((!this.client.getInventory().contains(2434))
- && (!this.client.getInventory().contains(
- 141))) {
- this.client.getBank().withdraw1(2434);
- } else {
- if ((!this.client.getInventory().contains(139))
- && (!this.client.getInventory()
- .contains(141))) {
- this.client.getBank().withdraw1(139);
- }
- }
- }
- }
- if (this.client.getSkills()
- .getCurrentLevel(Skill.HITPOINTS) <= 32)
- this.client.getBank().withdraw1(379);
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- if (lumbPath == 0) {
- if ((this.client.getInventory().contains(139))
- || (this.client.getInventory().contains(141))
- || (this.client.getInventory().contains(2434))) {
- this.client.getBank().close();
- this.state = State.Gate_Path;
- }
- } else {
- this.client.getBank().close();
- this.state = State.Gate_Path;
- }
- }
- } catch (InterruptedException localInterruptedException1) {
- }
- return 1000;
- }
Advertisement
Add Comment
Please, Sign In to add comment