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
  • Is there a way to shift drop when using the slotInteract(int, string) method?


    BannermanofLa
     Share

    Recommended Posts

    Hi, I just started with osrs bot programming today and am unfamiliar with the api, I'm wondering if there is a way to have the method slotInteract(int slot, java.lang.String action) from Inventory shift drop. I saw that Inventory has a shouldShift( ) method but I'm not exactly sure if that enforces shift dropping or not and if it can work with the method I'm working with. Anyway, if someone knows and can help me out I would really appreciate it!

    Link to comment
    Share on other sites

    I think Inventory API already does that for you. You can use the Inventory.drop() method; if you have shift-drop enabled, it'll just do that. If not, it'll just drop items the usual "right-click drop" way.

    So implement a node that checks for settings on your account, and if it detects that shift drop isn't enabled -- that it would enable it.

    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.