Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // If bank interface is open deposit amulets and then withdraw bars
- else if (getBank().isOpen()){
- // If there is Ammy(u) in inv and also the mould then deposit all except the mould
- if (getInventory().contains(GOLDAMMY) && getInventory().contains(AMULET_MOULD) ){
- // Deposits ammys, withdraws bars, sleeps, then pressses esc to close interface
- getBank().depositAllExcept(AMULET_MOULD);
- getBank().withdrawAll(GOLD_BAR);
- sleepWhile(() -> !getInventory().contains("Gold bar"), Calculations.random(500,1000));
- getKeyboard().typeSpecialKey(KeyEvent.VK_ESCAPE);
- }
- else {
- getBank().withdraw(AMULET_MOULD);
- sleepWhile(() -> !getInventory().contains("Gold bar"), Calculations.random(500, 1000));
- getBank().withdrawAll(GOLD_BAR);
- }
- }
- // If bank interface is not open, open the closest
- else {
- walkToBank();
- sleepWhile(() -> !getInventory().contains("Gold bar"), Calculations.random(500, 1000));
- getBank().openClosest();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement