Cloxygen Posted May 27, 2017 Posted May 27, 2017 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.
Cloxygen Posted May 27, 2017 Author Posted May 27, 2017 7 minutes ago, Chris said: yeah with colors? Ill try it thanks
Polymorphism Posted May 27, 2017 Posted May 27, 2017 (edited) Get rock name then determine is it's mine-able by its color Edit: Didn't see @Chris aka bb post Edited May 27, 2017 by Polymorphism
Cloxygen Posted May 27, 2017 Author Posted May 27, 2017 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?
Polymorphism Posted May 27, 2017 Posted May 27, 2017 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
Cloxygen Posted May 27, 2017 Author Posted May 27, 2017 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?
Polymorphism Posted May 27, 2017 Posted May 27, 2017 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.
dmmslaver Posted May 27, 2017 Posted May 27, 2017 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
Explv Posted May 27, 2017 Posted May 27, 2017 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: 1
Cloxygen Posted May 28, 2017 Author Posted May 28, 2017 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