abouhanafy87 6 Posted May 4, 2024 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
Tweeboy 21 Posted May 4, 2024 (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, 2024 by Tweeboy abouhanafy87 1
abouhanafy87 6 Author Posted May 4, 2024 Any idea to read bank without opening like quest helper plugin in runelite
Mr G 27 Posted May 4, 2024 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
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