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
  • Why does my character still sell items when the item is in the shop?


    Recommended Posts

    This is my code for selling items to the shop that are not currently in the shop but it seems to me that the getShop().contains(i) does not work? If someone could clear this up for me that would be great.


    List<Item> inv = getInventory().getCollection();

    for (Item i : inv) {

        if (getShop().contains(i) == true) {


        } else {

          if ((getShop().fullSlotCount() < 39)) {

             getShop().sell(i, 1);




    Link to comment
    Share on other sites


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