Jump to content

Interacting with Equipment


TheScrub

Recommended Posts

it's alil hardcoded as fuck but meh hope this help was using this for ring of dueling

 

you will need to change the child to the interface you desire and the equipment slot

    public void interactWithEquipment(String action, int i)
            throws InterruptedException {
        RS2InterfaceChild j = this.client.getInterface(387).getChild(22);
        long t = System.currentTimeMillis();
        if ((equipmentTab.isWearingItem(EquipmentSlot.RING, i))) {
            equipmentTab.open();
            while (!(equipmentTab.open()&& (System.currentTimeMillis() - t) < 7000)) {
                sleep(50);
            }
            if (equipmentTab.open()) {
                j.interact(action);
                sleep(2000);

            }

        }

    }
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...