From: nielsie95
The idea was an updated include with bitmaps of widely used items. So that, when runescape updates, only SRL needs to be updated in order to get the script running again.
Yeah, it truly is a great idea.
But, this can be done with DTMs too, and it would - in my opinion - be much more efficient. In addition to the fact that searching for bitmaps takes up MUCH more memory and finding DTMs goes
many times faster, DTMs needs less maintenance, since the black outline is constant, and 30-40 tolerance (if not even less) for the mainpoint really should do the trick, so if the color of an item changes, there still is a chance that the DTM works! Even if it doesn't, we still severely reduce the chance of finding wrong objects due to DTMs searching for black outline (thus shape, in some form).
And, I just got an idea.
What if we make
DDTMs for the most common objects with same shape but different colors, like armor, weapons, gems, ores, bars, ect, with the input of custom colors? So that we make a function where the user either inputs a name (as a string) or a color (as an integer) and the function finds the assigned object, either with preset colors (in case of 'name' input)
or with given color as the centerpoint (in case of custom color input).
How does this sound?
We all know that there are loads and loads of different objects with very same shape?