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
  • Selecting only only un-noted items in inventory


    bionic

    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

    Archived

    This topic is now archived and is closed to further replies.

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