Cloxygen Posted May 27, 2017 Share 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. Quote Link to comment Share on other sites More sharing options...
Chris Posted May 27, 2017 Share Posted May 27, 2017 yeah with colors? Quote Link to comment Share on other sites More sharing options...
Cloxygen Posted May 27, 2017 Author Share Posted May 27, 2017 7 minutes ago, Chris said: yeah with colors? Ill try it thanks Quote Link to comment Share on other sites More sharing options...
Polymorphism Posted May 27, 2017 Share 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 Quote Link to comment Share on other sites More sharing options...
Cloxygen Posted May 27, 2017 Author Share 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? Quote Link to comment Share on other sites More sharing options...
Polymorphism Posted May 27, 2017 Share 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 Quote Link to comment Share on other sites More sharing options...
Cloxygen Posted May 27, 2017 Author Share 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? Quote Link to comment Share on other sites More sharing options...
Polymorphism Posted May 27, 2017 Share 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. Quote Link to comment Share on other sites More sharing options...
Chris Posted May 27, 2017 Share Posted May 27, 2017 #modifiedcolours 1 Quote Link to comment Share on other sites More sharing options...
dmmslaver Posted May 27, 2017 Share 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 Quote Link to comment Share on other sites More sharing options...
Mordred Posted May 27, 2017 Share Posted May 27, 2017 Showwwww me the halls of Moriaaaaaaa Quote Link to comment Share on other sites More sharing options...
Explv Posted May 27, 2017 Share 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 Quote Link to comment Share on other sites More sharing options...
Tom Posted May 27, 2017 Share Posted May 27, 2017 Nah no point making a mining script lelelelel 1 Quote Link to comment Share on other sites More sharing options...
Cloxygen Posted May 28, 2017 Author Share 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 Quote Link to comment Share on other sites More sharing options...