Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 12th, 2012  |  syntax: None  |  size: 1.17 KB  |  hits: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public boolean isatbank1() {
  2.                 if (DraynorBank.contains(getMyPlayer().getLocation())) {
  3.                         return true;
  4.                 } else {
  5.                         if (DraynorBank.getNearestTile(getMyPlayer().getLocation())
  6.                                         .isValid()) {
  7.                                 return walking.walkTileMM(DraynorBank
  8.                                                 .getNearestTile(getMyPlayer().getLocation()));
  9.  
  10.                         } else {
  11.                                 return false;
  12.                         }
  13.                 }
  14.         }
  15.         public void bank(){
  16.                 if(!bank.isOpen()){
  17.                         bank.open();
  18.                         for(int i = 0; i<10 && !bank.isOpen();i++){
  19.                                 sleep(random(500,800));
  20.                         }
  21.                 }else{
  22.                         if(inventory.getCount()>1){
  23.                                 bank.depositAllExcept(GP);
  24.                                 for(int i = 0; i<10 && inventory.getCount()>1;i++){
  25.                                         sleep(random(500,800));
  26.                                 }
  27.                         }
  28.                         if(inventory.getCount(GP)<60){
  29.                                 bank.depositAllExcept(GP);
  30.                                 for(int i = 0; i<10 && inventory.getCount()!=0;i++){
  31.                                         sleep(random(500,800));
  32.                                 }
  33.                                 bank.withdraw(GP, 5000);
  34.                                 for(int i = 0; i<10 && !inventory.contains(GP);i++){
  35.                                         sleep(random(500,800));
  36.                                 }
  37.                         }else{
  38.                                 bank.depositAllExcept(GP);
  39.                                 for(int i = 0; i<10 && inventory.getCount()>1;i++){
  40.                                         sleep(random(500,800));
  41.                                 }
  42.                         }
  43.                 }
  44.                 bank.close();
  45.                 for(int i = 0; i < 10 && bank.isOpen();i++){
  46.                         sleep(random(500,800));
  47.                 }
  48.         }