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.

getMenu().getDefaultToolTip();

Featured Replies

When pressing shift, getMenu().getDefaultToolTip() still returns for example; "Use Iron ore".

Is there any ways of getting the actual toolTip or if this is the correct way of getting it, might be clients bug ?

@Alek

Edited by Ayylmao420

37 minutes ago, Ayylmao420 said:

When pressing shift, getMenu().getDefaultToolTip() still returns for example; "Use Iron ore".

Is there any ways of getting the actual toolTip or if this is the correct way of getting it, might be clients bug ?

@Alek

 

Because i think when u use shift and try to right click the first option still appears as "Use" not sure maybe.

  • Author
3 minutes ago, progamerz said:

Because i think when u use shift and try to right click the first option still appears as "Use" not sure maybe.

You are correct, pressing shift doesn't change the order of options in menu.

Edited by Ayylmao420

On 3/23/2017 at 8:04 AM, Ayylmao420 said:

When pressing shift, getMenu().getDefaultToolTip() still returns for example; "Use Iron ore".

Is there any ways of getting the actual toolTip or if this is the correct way of getting it, might be clients bug ?

@Alek

If all you're trying to do is interact with an item while holding shift, determining the item's tool tip isn't necessary. Calling an item's interact() method without passing in any strings will simply left click the item, and if you're holding shift while doing this, the item will drop.

	//Shift dropping
	List<Item> logList = getInventory().filter(new NameFilter<>("Logs"));
        if (logList.size() > 0) {
            getKeyboard().pressKey(KeyEvent.VK_SHIFT);
            for (Item log : logList) {
                log.interact();
            }
            getKeyboard().releaseKey(KeyEvent.VK_SHIFT);
        }

 

Edited by Easy

53 minutes ago, Easy said:

If all you're trying to do is interact with an item while holding shift, determining the item's tool tip isn't necessary. Calling an item's interact() method without passing in any strings will simply left click the item, and if you're holding shift while doing this, the item will drop.


	//Shift dropping
	List<Item> logList = getInventory().filter(new NameFilter<>("Logs"));
        if (logList.size() > 0) {
            getKeyboard().pressKey(KeyEvent.VK_SHIFT);
            for (Item log : logList) {
                log.interact();
            }
            getKeyboard().releaseKey(KeyEvent.VK_SHIFT);
        }

 

If all he is trying to do is shift drop, he should just enable shift dropping in the rs settings and then the OSBot drop method will automatically use shift dropping.

I have a snippet in the snippets section to enable shift dropping

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.