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 pick up a ground item?

Featured Replies

Hey OSBot, I'm writing my first script currently. I've figured out walking, areas, and (some) entity interaction, but I'm not super sure on how to pick up a ground item.

 

What I want is for onLoop() to check region if a ground item with name/id exists (isValid?) and simply "Take" it. I can't even figure out how to iterate through the List<GroundItems> or if that's how to do it in the first place. Not very good at reading javadocs lol.

Thanks in the future, OSBot. :)

Reading through the API is almost a necessity 
10a3d567d9f0475c91041fb95bba5d15.png


GroundItem item = getGroundItems().closest("whatever");

if(item != null)

item.interact("take");


GroundItem gI = getGroundItems().closest("item1", "item2");

if (gI != null) gI.interact("Take");

GroundItem gI = getGroundItems().closest("item1", "item2");
if (gI != null) gI.interact("Take");

 

Do people not like readability or? Granted, not as big a problem for this simple task, but still.

  • Author

Lol thanks to those who were helpful, but I figured it out soon after I asked the question. Seems like this community is really toxic and I can't expect help lmao. I did search it before hand, fingering through 8 pages of tuts and snippets and even reading a few opensource scripts.

 

Not asking for spoonfeed, if I was I would ask for the whole script.

 

Uptight asshats lmao, get triggered.


Reading through the API is almost a necessity 
10a3d567d9f0475c91041fb95bba5d15.png

Oh, I'm sorry you didn't understand because your community calls a javadoc an "API" lmao. I said I read it and had a hard time figuring it out.


DONT EXPECT PPL TO SPOON FEED

If I could neg rep you I would lol. I didn't ask to be spoon fed, I asked for help with one specific function. Don't be so toxic.

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.