Jump to content

How to pick up a ground item?


Spork

Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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