BannermanofLa 0 Share Posted May 2, 2021 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 More sharing options...
una_maquina 35 Share Posted May 9, 2021 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 More sharing options...
una_maquina 35 Share Posted May 9, 2021 You can do something like Inventory.drop(f -> f.getSlot() == 4); if you want to drop something on a specific slot. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.