Jump to content

need help


Recommended Posts

Posted (edited)

Entity ore = objects.closest("Copper Rock"); or what ever the exact name of the rock is smile.png but if you use the enitity hover debug you can find the int and make an int of the object id.

 

int copperrock = 2090; 

 

Entity ore = objects.closest(copperrock); 

 

 

Edited by DubzieBug
Posted

Entity ore = objects.closest("Copper Rock"); or what ever the exact name of the rock is smile.png but if you use the enitity hover debug you can find the int and make an int of the object id.

 

int copperrock = 2090; 

 

Entity ore = objects.closest(copperrock); 

so Entity ore = objects.closest("Copper Rocks") would work even though they're just called rocks in game?

Posted

so Entity ore = objects.closest("Copper Rocks") would work even though they're just called rocks in game?

I haven't made a mining script so i don't know the actual names but you can just get the int via the entity hover debug option on osbot then use that int instead of a string.

 

so just say the id is 1111 

 

int bronzerocki = 1111;

 

Entity bronzerock = objects.closest(bronzerocki);

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