Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Vinny143

    Members
    • Posts

      4
    • Joined

    • Last visited

    Vinny143's Achievements

    1. Ohhh ok, I understand how it works now, thanks for all the help guys.
    2. Didn't work. The steps I did were: - Login - Manually open bank - Close bank - Run script Still gave me false for every test.
    3. 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.
    4. 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.
    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.