Wow, TPointArrays in your first script. Not bad, I have to say. A whole lot better than mine.
But, there are a few things. TPAs by itself it very weak and detectable. If I were you, I would split the TPA into a two-dimensional TPA, (ATPA) using
TPAtoATPAEx
I'll explain really quickly what this does, but you should try to read a couple tutorials abut TPAs to fully understand.
Anyway, what the function does is that it "cuts" the TPA in squares, just like you cut your cucumber into small squares before throwing the pieces at mean people. (Look into Wizzyplugin for more functions & info)
The First parameter of TPAtoATPAex is (
TPA, .. This is simply the TPA that you want to "cut up". Next is the (TPA,
Width parameter. This simply is how wide you want the ATPA squares to be. Usually, they are the same size as the object you're trying to find. (Yes, they are in pixels.) And finally, the (TPA, Width,
Height) parameter. Same a the Width parameter, but for height. :)
.. And this is the part where the tutorial's explanations step in, because I have to clean my room =.=`