abouhanafy87 4 Share Posted May 4 i need to check an item in bank without opening or going to bank so i try to use Bank.getBankHistoryCache() . but when i try to check it i found an empty list > this is my try public int onLoop() { if(Bank.getBankHistoryCache().isEmpty()){ Logger.log("bank cache is empty"); }else { for (Item item : Bank.getBankHistoryCache()) { Logger.log("BankHCache " + item.getName() + " :: " + item.getAmount()); } } return 500; } this is the results : 5:25:12 PM [SCRIPT] bank cache is empty 5:25:12 PM [SCRIPT] bank cache is empty 5:25:13 PM [SCRIPT] bank cache is empty 5:25:14 PM [SCRIPT] bank cache is empty 5:25:15 PM [SCRIPT] bank cache is empty 5:25:16 PM [SCRIPT] bank cache is empty 5:25:16 PM [SCRIPT] bank cache is empty 5:25:12 PM [SCRIPT] bank cache is empty Link to comment Share on other sites More sharing options...
Tweeboy 18 Share Posted May 4 (edited) The script will need to open the bank at least once to create a Bank Cache The Bank Cache will remain empty until then https://dreambot.org/javadocs/org/dreambot/api/methods/container/impl/bank/Bank.html#getBankHistoryCache() Edited May 4 by Tweeboy abouhanafy87 1 Link to comment Share on other sites More sharing options...
abouhanafy87 4 Author Share Posted May 4 Any idea to read bank without opening like quest helper plugin in runelite Link to comment Share on other sites More sharing options...
Mr G 27 Share Posted May 4 2 hours ago, abouhanafy87 said: Any idea to read bank without opening like quest helper plugin in runelite Make your script create a unique file for each account that stores the contents of the bank and instead of using bank cache, read from the file to check. update the file every time you interact with banking. OR...... now hear me out........ just go open the bank when you login Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now