Belcampo
Members-
Posts
7 -
Joined
-
Last visited
-
Feedback
0%
Profile Information
-
Gender
Male
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Belcampo's Achievements
Newbie (1/10)
1
Reputation
-
Holiday Giveaway! 1B GRAND PRIZE, $100 OSBot Credits, 100M
Belcampo replied to Maldesto's topic in News & Announcements
Merry Christmas -
$1000.00 in OSBot Credit Holiday Giveaway
Belcampo replied to Maldesto's topic in Community Discussion
Scissors designed to cut pizzas. -
I'm trying to check if the item's stock is max or higher but it never runs since it always gives the error java.lang.NullPointerException at org.osbot.rs07.api.Store.iIIIIiIIIii(gh:162). String[] BuyItems = {"Name of item", "Name of item", "Name of item"}; int[] Stock = {1, 5, 4}; NPC Shopkeeper = npcs.closest("Shop npc"); Shopkeeper.interact("Trade"); for (int i = 0; i < BuyItems.length; i++) { if (getStore().getAmount(BuyItems[i]) <= Stock[i]) { do something } } I saw some people getting the same problem at the forums but no methods of fixing it except checking if getStore().getAmount(BuyItems[i]) is not null. This didn't work either nor should it work since there is always an amount of that item.