Jump to content

How to pick up a ground item?


Recommended Posts

Posted

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. :)

Posted

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.

  • Like 6

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...