SRL Archive - OSR Help

Limited Search Area


Wire

2014-06-25 18:17:48

How do i make findColorSpiralTolerance( x, y, 7698814, MSX1, MSY1, MSX2, MSY2, 3); search for an area that has a large amount of pixels. For instance i want to differentiate between the amount of grey pixels in iron armor versus that of the grey of iron wrapping a barrel. So i would like for Simba to be able to search for the color grey but only confirm the color was found if it filled a certain amount of pixels. Which would be something like 10 pixels tall/wide versus the 5/2 pixels the iron the barrel has.

KeepBotting

2014-06-25 18:24:27

You could use ATPAs and filter them by length I guess

Olly

2014-06-25 19:45:10

Indeed, Look up TPAs and ATPA's they will do what you want. If no one else does il post a short example tomorrow.

The Mayor

2014-06-25 21:12:38

Here is a tutorial, it isn't the easiest to understand, but you can read it while waiting for Olly gives you that example :p