Tropic Psycho Posted June 16, 2015 Share Posted June 16, 2015 I'm trying to create a simple mining script but I'm not sure how to find the ore would Entity ore = objects.closest(object id) work? I think it only takes strings sorry if this question is confusing... thanks for the help 1 Quote Link to comment Share on other sites More sharing options...
DubzieBug Posted June 16, 2015 Share Posted June 16, 2015 (edited) Entity ore = objects.closest("Copper Rock"); or what ever the exact name of the rock is 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 June 16, 2015 by DubzieBug Quote Link to comment Share on other sites More sharing options...
Tropic Psycho Posted June 16, 2015 Author Share Posted June 16, 2015 Entity ore = objects.closest("Copper Rock"); or what ever the exact name of the rock is 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? Quote Link to comment Share on other sites More sharing options...
DubzieBug Posted June 16, 2015 Share Posted June 16, 2015 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); Quote Link to comment Share on other sites More sharing options...