Vinny143
Members-
Posts
4 -
Joined
-
Last visited
Vinny143's Achievements
-
Ohhh ok, I understand how it works now, thanks for all the help guys.
-
Didn't work. The steps I did were: - Login - Manually open bank - Close bank - Run script Still gave me false for every test.
-
Yeah sure, but it's nothing complitcated, I'm literally just running tests with Logger.log. I tried testing with the string name as well, but that also doesn't work. public class FoodCooker extends AbstractScript { static final Item cookingItem= Inventory.getItemInSlot(0); static final Node[] nodes = {new BankerNode(cookingItem),new CookerNode(cookingItem)}; @Override public void onStart() { log("Start up tests:"); log(Bank.contains(cookingItem.getName())); log(Bank.contains(cookingItem.getID())); log(Bank.contains("Raw lobster")); log(Bank.contains("Lobster")); log(Bank.contains("Bread")); log("Start up tests end -----------------"); log("Welcome to VDog's Simple Food Cooker!"); } .... } Formatting got messed up from pasting, cbs fixing it. I have all those items in my Bank, but I get false for every single one of them.
-
Hey, New to this so sorry if im posting in wrong spot. Been working on a script and for some reason Bank.contains(int id) doesn't work for me. I've tried it with multiple different items, which are 100% in my bank but it returns false for them. I also tried Bank.count(int id) for those items and got 0. I have no idea what I'm doing wrong. I've attached screenshots of an example with air runes, which have the id 556. OK well I tried to attach screenshots but they fail to upload which is an issue of itself lmao, so you're just gonna have to take my word that it doesn't work.