Question on imagesearch

02/16/2010 16:31 YBang#1
Is there a way to limit the image search to a small area, such as under the character's feet?

And in the event where there are multiple sites that look the same, how do you force it to pick just one and not go berserk clicking around?

The beta version of metallurgy bot is not working well for me.
02/16/2010 17:04 YBang#2
That's not a helpful reply...

Let this picture speak for itself.

I replaced images but it don't work.
02/17/2010 00:21 Theri#3
Find and read the image search documentation.
02/17/2010 01:20 Darien630#4
Oh Cool o-o
02/17/2010 03:47 pawntobishop#5
You should be able to set a search area, check the wiki page for the system you are using.
02/17/2010 07:59 YBang#6
I have found it, it's called _ImageSearchArea

Quote:
Func _ImageSearchArea($findImage,$resultPosition,$x1,$y 1,$right,$bottom,ByRef $x, ByRef $y, $tolerance
With some tweaks the bot is working fine except for this part.

Quote:
$result2 = _ImageSearchArea("stone1.JPG",1,400,300,300,300,$x 2,$y2,80)
I'm trying to centralise the search area. For some reason which I don't understand, it does not work.


Never mind I figured out how to do this. I have a fully functional Metallurgy bot now, thanks to everyone who helped.
02/17/2010 16:27 pawntobishop#7
Very nice, you should debug it and release it somewhere not as terrible as here.
Or let me debug it... I loves me some debugging.
02/17/2010 18:35 YBang#8
Quote:
Originally Posted by pawntobishop View Post
Very nice, you should debug it and release it somewhere not as terrible as here.
Or let me debug it... I loves me some debugging.
Don't mind letting you debug it but I still have one last minor problem...

The original beta metallurgy bot has this part where it scrolls/spins the screen. I don't find it useful at all. I want to make it work for the river area, where the nearest fragments are spaced out far after one area is depleted.

It's functional but it stops once the character cannot find anymore spots.

Locating the ore fragment locations is ok (even with no moonshine involved)
Moving to next spot is ok if there are still any spots in the area
Picking up is ok
Moving to new area is not ok, I have yet to figure out what to do with this. I have seen bots that move flawlessly over here so it should be possible.

One thought is to do something with the map and I am thinking how to do it.
02/17/2010 19:29 Theri#9
You'd need to make unique markins on the map to act as waypoints.
02/17/2010 21:24 pawntobishop#10
Yup yup, you need to create a map that has spaces predefined.