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.

How to use Inventory To RS2Object?

Featured Replies

Im using mirror mode, soo slow and i've another problem.

Btw im switching from poopbot, interaction in poopbot API so simple like Inventory.get("item in inventory").useOn("Target Object"). How to archive this using poopbot?

So here example my code

if (objectName != null){
                for(int i : inventorySlotList){
                    if (getInventory().getItemInSlot(i).getName().equals("Item Name")){
                        log("Item found");
                        mouse.click(new InventorySlotDestination(getBot(), i), false);
                        sleep(random(250,500));
                        objectName.interact();
                        sleep(random(250,500));
                    } else {
                        log("Item not found");
                        i++;
                    }

                    log("i: " + i + "Slot Position: " + inventorySlotList);
                }
} else {
	sleep(random(500,1000));

}

Problem :

1. Slow interaction between item in inventory to RS2Object. I've change setting to 50ms in mirror mode.

How to archive 2 tick click item in Inventory to RS2Object?

2. Sometimes when ObjectName become null in a second, mouse clicking item in inventory from slot x to slot 27 and than continues my task from previous position :s

 

thanks

  • Author
11 minutes ago, Khaleesi said:

Without too much extra stuff it would be this
Don't use static sleeps, Use Conditional sleeps to speed it up :)
 

if (getInventory().isItemSelected()) {
            object.interact("Use");
        } else {
            getInventory().interact("Use", ITEM_NAME);
        }

 

uh tyty xD

im using Sleep.sleepUntil for conditional sleep (another post from explv) i think.

Another question bro, how to increase interaction speed?
I think its 1 or 2 second / interaction is tooooo slow

Edited by lokaloka

Create an account or sign in to comment

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.