|
You last visited: Today at 11:10
Advertisement
Question on imagesearch
Discussion on Question on imagesearch within the Mabinogi forum part of the MMORPGs category.
02/16/2010, 16:31
|
#1
|
elite*gold: 0
Join Date: Oct 2009
Posts: 24
Received Thanks: 2
|
Question on imagesearch
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
|
#2
|
elite*gold: 0
Join Date: Oct 2009
Posts: 24
Received Thanks: 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
|
#3
|
elite*gold: 0
Join Date: Dec 2009
Posts: 395
Received Thanks: 94
|
Find and read the image search documentation.
|
|
|
02/17/2010, 01:20
|
#4
|
elite*gold: 0
Join Date: Jun 2009
Posts: 99
Received Thanks: 3
|
Oh Cool o-o
|
|
|
02/17/2010, 03:47
|
#5
|
elite*gold: 0
Join Date: Sep 2009
Posts: 1,317
Received Thanks: 472
|
You should be able to set a search area, check the wiki page for the system you are using.
|
|
|
02/17/2010, 07:59
|
#6
|
elite*gold: 0
Join Date: Oct 2009
Posts: 24
Received Thanks: 2
|
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
|
#7
|
elite*gold: 0
Join Date: Sep 2009
Posts: 1,317
Received Thanks: 472
|
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
|
#8
|
elite*gold: 0
Join Date: Oct 2009
Posts: 24
Received Thanks: 2
|
Quote:
Originally Posted by pawntobishop
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
|
#9
|
elite*gold: 0
Join Date: Dec 2009
Posts: 395
Received Thanks: 94
|
You'd need to make unique markins on the map to act as waypoints.
|
|
|
02/17/2010, 21:24
|
#10
|
elite*gold: 0
Join Date: Sep 2009
Posts: 1,317
Received Thanks: 472
|
Yup yup, you need to create a map that has spaces predefined.
|
|
|
Similar Threads
|
frage zu imagesearch
07/29/2010 - AutoIt - 2 Replies
Hi habe diesen code:
#RequireAdmin
$x1=0
$y1=0
while 1
sleep(1000)
$coord = PixelSearch( 800,890, 500, 500, 0x0FD0000,$x1,$y1)
If Not @error Then
|
Imagesearch problem..
07/16/2010 - AutoIt - 6 Replies
es funzt nicht.. es kommt
Error:"Wend" statement with no machting "While" statement
Ich hab das Wend und das While im Thread rot angestrichen.. warum funzt es nicht?
|
ImageSearch?
01/11/2010 - AutoIt - 4 Replies
Hey,
kann einer von euch, einfach für einen Anfänger erklären, wie man mit Autoit die Funktion "ImageSearch" benutzt?
Thx für eure Antworten!
|
All times are GMT +1. The time now is 11:13.
|
|