Lol_marcus Posted June 13, 2020 Share Posted June 13, 2020 How would I go about logging on my paint how many items I have left in my bank? If I'm running multiple accounts it's good to know which account is about to run out of a certain item in it's bank. I've tried something like int itemsLeft = getBank.contains(item); g.drawString("Items left: " + itemsLeft); but that shows me the amounts left only when I have the bank open. If it's not opened it doesn't show anything. Quote Link to comment Share on other sites More sharing options...
Camaro Posted June 13, 2020 Share Posted June 13, 2020 You would have to store the value in a variable when opening the bank. There is no way to tell without having it open. 2 Quote Link to comment Share on other sites More sharing options...
dreameo Posted June 13, 2020 Share Posted June 13, 2020 you could just write to a file: if the information is not there, go to bank, get info, dump it to file this information will be persistent and can/should be updated each time you have the bank open 1 Quote Link to comment Share on other sites More sharing options...
Juggles Posted June 13, 2020 Share Posted June 13, 2020 int amountInBank; if (getBank.isOpen) { amountInBank = getBank.getAmount(item); } Now it will store the value 1 Quote Link to comment Share on other sites More sharing options...
Promo Posted June 13, 2020 Share Posted June 13, 2020 You're probably using the item in your script. Just before u're about to close the bank put the item amount in a variable. 1 Quote Link to comment Share on other sites More sharing options...
Lol_marcus Posted June 13, 2020 Author Share Posted June 13, 2020 Ahh right, I see what I was doing wrong. Thanks guys. Quote Link to comment Share on other sites More sharing options...