Guest User

Untitled

a guest
Jan 21st, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. public static void bankCooking() {
  2. if (bankArea != null) {
  3. if (bankArea.contains(Players.getLocal().getLocation())) {
  4. if (!Bank.isOpen()) {
  5. if (!Inv.contains(unCooked)) {
  6. if (Bank.open()) {
  7. Status = "Opening bank";
  8. Timing.wait(Bank.isOpen(), 3000);
  9. }
  10. }
  11. }
  12. }
  13.  
  14. if (Bank.isOpen()) {
  15.  
  16. if (Inventory.getCount() > 0) {
  17. if (Bank.depositAll()) {
  18. Status = "Depositing cooked stuff";
  19. Timing.wait(Inventory.getCount() < 1, 3000);
  20. }
  21. }
  22. if (Inventory.getCount() < 1) {
  23. if (Bank.withdraw(unCooked, 0)) {
  24. Status = "Withdrawing raw stuff";
  25. Timing.wait(Inventory.getItem(unCooked) != null, 1250);
  26. } else {
  27. if (!Banking.contains(unCooked)) {
  28. Status = "Logging out";
  29. Game.logout(true);
  30.  
  31. }
  32. }
  33. }
  34.  
  35. if (Inv.contains(unCooked)) {
  36.  
  37. if (Bank.close()) {
  38. Status = "Closing bank";
  39. Timing.wait(!Bank.isOpen(), 1000);
  40. }
  41. }
  42. }
  43. }
  44. }
Add Comment
Please, Sign In to add comment