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

Teleporting with equipped jewelry

Featured Replies

I can't seem to figure out how to teleport with equipped jewelry like a ring of dueling or glory. The answer is probably glaringly obvious but a little help would be nice.

for OSBot 2, this should work:

interfaces.get(equipment.getInterfaceId()).getChild(EquipmentSlot.RING.childId).interact("Action here");

I can't seem to figure out how to teleport with equipped jewelry like a ring of dueling or glory. The answer is probably glaringly obvious but a little help would be nice.

 

Care to specify what version of OSB you are using?

Hi, can someone help me with this?

 

I'm trying to check what I'm currenrly wearing onmy head (HAT slot). However the if statement is not returning true (which it should) :

if(equipment.isWearingItem(EquipmentSlot.HAT)) { // this is returning false even when I'm wearing something
			log("we have something on the head");
			String item = equipment.getItemInSlot(EquipmentSlot.HAT.slot).getName();
			if(item.equals("whatever")) {
                           // rest of the code

Any help? Also, some equipment methods in the API require slot number. What is it? Is it ID from the interface debugger? This new osb2 equip API is way different than before.

when the equipment method arugment ask for a slot depends if its an int then its EquipmentSlot.TYPE.slot, else if its a EquipmentSlot then its EquipmentSlot.TYPE

 

i guess the methods is broken. i tryed out the method and it was return false so.. it isnt you

 

Also its better if you do 

if(item.equalsIgnoreCase("whatever")) {

Edited by josedpay

Yeah, thanks for clearing up the slot number thing for me. I've resigned on using those methods, had to go with a color picker instead... Hope this will get fixed.

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

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.