Jump to content

Because object IDs change!?


Recommended Posts

Posted

I could use the name for woodcutting and I do but for mining every Rock object is called Rock.

 

Plus I have not got a clue how to use the filters

 

PositionFilter<RS2Object> posFilter = new PositionFilter(pos);

NameFilter<RS2Object> nameFilter = new NameFilter("Rock");

 

RS2Object rock = getObjects().closest(posFilter, nameFilter);

 

_____

Alternatively, make your own filter that suits all of your needs (position / name / color etc. etc.)

 

Posted

PositionFilter<RS2Object> posFilter = new PositionFilter(pos);

NameFilter<RS2Object> nameFilter = new NameFilter("Rock");

 

RS2Object rock = getObjects().closest(posFilter, nameFilter);

 

_____

Alternatively, make your own filter that suits all of your needs (position / name / color etc. etc.)

 

 

Cheers for the example mate!

 

I have put something together that will interact with the object in a 1x1 area.

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