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
  • Try asking for help in the chatbox
  • Selecting only only un-noted items in inventory


    bionic
     Share

    Recommended Posts

    Having some trouble looking through the API for the correct way to do this. Right now im using:

    getInventory().get("xxx").useOn(yyy);

    But the xxx in my inventory contains a noted version and un-noted versions. How do I make sure it only selects the un-noted version. Right now it will select the first "xxx" in my inventory so if I have noted "xxx" in my first slot it will select that, if I have un-noted "xxx" in my first slot it will select that. I would like it so it doesnt matter what slot its in. 

    Link to comment
    Share on other sites

    JK just answered this myself, the easiest way to do this is to use the item by id as the id's differ if they're noted/unnoted. 

    Link to comment
    Share on other sites

    59 minutes ago, bionic said:

    JK just answered this myself, the easiest way to do this is to use the item by id as the id's differ if they're noted/unnoted. 

    Or you can use a filter and check for noted.

    Link to comment
    Share on other sites

    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 account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
     Share

    ×
    ×
    • 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.