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.

Clicking by inventory slot number

Featured Replies

Well, since I just can't think straight at the moment it's pretty hard for me to figure out how to click by slot.

inventory.interact(ctx.inventory.getSlot(arg0);
Doesn't work. (Which is no surprise)

Any other way? I need to click the first 4 items in inventory. However the interact method is too slow for me. That's why I'm trying just to click the slot instead of the item itself.

  • Author

Hmm... I think you could do this

 

mouse.move(inventory.getMouseDestination(SLOT_ID));
mouse.click(false);

Going to write a block to see if this works better :3 I'll edit the post soon.

Thanks in advance! smile.png

EDIT: Alright, it's on steroids now so I suppose it's working smile.png thanks man!

600k/hour script :3

Edited by Psvxe

Nah man bad ways, just do

 

Item item = inventory.getItemInSlot(apparent slot number);

item.interact("drop"); or someshit

  • Author

Nah man bad ways, just do

 

Item item = inventory.getItemInSlot(apparent slot number);

item.interact("drop"); or someshit

This is slower.

This is slower.

 

What makes you think that? By defining an item variable, you will have a lot less repetition overall if you have to interact with the same item more than once

  • Author

What makes you think that? By defining an item variable, you will have a lot less repetition overall if you have to interact with the same item more than once

Which I solved by making sure it doesn't reclick if a slot contains a id.

And I don't think it. I tried it.

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.