June 16, 201510 yr 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
June 16, 201510 yr 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, 201510 yr by DubzieBug
June 16, 201510 yr Author 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?
June 16, 201510 yr 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