Jump to content

need help


Tropic Psycho

Recommended Posts

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

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?

Link to comment
Share on other sites

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);

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