Skip to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Checking Equipment && equip

Featured Replies

s.getEquipment().equip(slot #,"Combat bracelet");

How would I interact with the bracelet (tele to monastery etc.)?

 

EDIT: found this in api

 

interact
public boolean interact(int slot,                        java.lang.String... actions)
Interacts with the slot specified.
Overrides: interact in class ItemContainer Parameters: slot - The slot to interact with. actions - The action to interact with. Returns: True if the bot interacted with the specified slot successfully.    

how would this be used correctly?

 

Edited by Sinatra

  • Author

 ended up interacting with widgets lol.

RS2Widget equipmentTab = s.widgets.get(548,47);
        RS2Widget teleRing = s.widgets.get(387,15);
        if (equipmentTab != null && equipmentTab.isVisible()){
            equipmentTab.interact("Worn Equipment");
            s.sleep(s.random(4000));
        }
        if (teleRing != null && teleRing.isVisible()){
            teleRing.interact("Castle Wars");
            s.sleep(s.random(4000));
        }

 

 ended up interacting with widgets lol.

RS2Widget equipmentTab = s.widgets.get(548,47);
        RS2Widget teleRing = s.widgets.get(387,15);
        if (equipmentTab != null && equipmentTab.isVisible()){
            equipmentTab.interact("Worn Equipment");
            s.sleep(s.random(4000));
        }
        if (teleRing != null && teleRing.isVisible()){
            teleRing.interact("Castle Wars");
            s.sleep(s.random(4000));
        }

 

which will break with an rs update :s

 

equipment is just like the inventory as they are both ItemContainers.

 

so just get the item from a slot and interact with it :)

Edited by Precise

  • Author

which will break with an rs update :s

 

equipment is just like the inventory as they are both ItemContainers.

 

so just get the item from a slot and interact with it smile.png

like ->:

getEquipment().interact(EquipmentSlot.RING, "Castle Wars");

 

like ->:

getEquipment().interact(EquipmentSlot.RING, "Castle Wars");

 yes, or:

 

getEquipment().interact("name of item here", "Castle Wars");

  • Author

 yes, or:

 

getEquipment().interact("name of item here", "Castle Wars");

Thanks ;)

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.