beefsteak 22 Share Posted May 20, 2021 (edited) Hey, so I've got my inventory counter working but the problem is it clears the number of items after banking. public void onStart() { private int countHides; } public int onLoop() { countBottoms = Inventory.count("Cowhide"); } public void onPaint(Graphics g){ g.setColor(Color.WHITE); g.drawString("# of Hides Looted: "+ countHides, 10, 50); } Is there a simple line of code that will save the number of hides when it banks and continue to count them? Thanks! Edited May 20, 2021 by beefsteak UnusualPerson and purepanic 1 1 Link to comment Share on other sites More sharing options...
Hashtag 8358 Share Posted May 20, 2021 See this thread Link to comment Share on other sites More sharing options...
beefsteak 22 Author Share Posted May 20, 2021 took me a sec to understand, but I got it working now! Thanks @Hashtag 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