May 27, 20178 yr Apparently there's a way to make a mining script without static IDs and I'm supposed to ask here for ideas. Any suggestions appreciated.
May 27, 20178 yr Get rock name then determine is it's mine-able by its color Edit: Didn't see @Chris aka bb post Edited May 27, 20178 yr by Polymorphism
May 27, 20178 yr Author 12 minutes ago, Polymorphism said: Get rock name then determine is it's mine-able by its color Edit: Didn't see @Chris aka bb post whats the best way to get color of an object?
May 27, 20178 yr Using the colorpicker in the osbot api https://osbot.org/api/org/osbot/rs07/api/ColorPicker.html Basically you'll get the model of the rock -- get yourself any point inside the model (not the position) and use the method #colorAt(x,y) or #colorAt(Point p) to determine if its mine-able It'll some debugging to determine what color you should be checking for
May 27, 20178 yr Author 1 minute ago, Polymorphism said: Using the colorpicker in the osbot api https://osbot.org/api/org/osbot/rs07/api/ColorPicker.html Basically you'll get the model of the rock -- get yourself any point inside the model (not the position) and use the method #colorAt(x,y) or #colorAt(Point p) to determine if its mine-able It'll some debugging to determine what color you should be checking for wouldn't this give different results depending on which part of the rock its on? like shadows and shit?
May 27, 20178 yr 5 minutes ago, Cloxygen said: wouldn't this give different results depending on which part of the rock its on? like shadows and shit? Not sure, never had a reason to use it myself. The game could display colors and shadows separately meaning that it wouldn't matter which part of the rock you grabbed regardless of its shadow or visibility. Maybe someone like @Chris or @Token or @Xerion could provide further info regarding that.
May 27, 20178 yr 22 minutes ago, Cloxygen said: wouldn't this give different results depending on which part of the rock its on? like shadows and shit? Yes but the difference between the shadows is less than the difference between rune and iron. :p
May 27, 20178 yr 9 hours ago, Cloxygen said: Apparently there's a way to make a mining script without static IDs and I'm supposed to ask here for ideas. Any suggestions appreciated. 8 hours ago, Polymorphism said: Using the colorpicker in the osbot api 8 hours ago, Chris said: #modifiedcolours Do not use ColorPicker. And I already have a snippet in the snippets section:
May 28, 20178 yr Author Thanks 21 hours ago, Explv said: Do not use ColorPicker. And I already have a snippet in the snippets section: This helped a lot. Thank you
Create an account or sign in to comment