I fixed the broken sieve check, if anyone wants to play with it.
The "and" on both of these while loops will make it quit without response, making the if statements pointless. However, it was late, I'd been working out offsets for autoit memory reading, and finishing my various other bots, so, I really couldn't give a flying £^*$ at that point.
It reads the screen correctly.
I'll possibly clean this up tomorrow as this was just a test, but, for the meantime, that will locate good sieves, both in your inv and equipped.
It's mostly copied from Link's function, and altered to work. I assumed for the most part that he had good reasons for his choices, like, "while attempts < 5".
Use PNG and the W7/Vista snipping tool for searches, so that you can use lower tolerance (And thus get better results)
Code:
#include <imagesearch.au3>
#RequireAdmin
Global $loot
Global $counter
Global $loaded
Global $pan_equip_x
Global $pan_equip_y
Global $pan_inv_x
Global $pan_inv_y
Global $result
Global $panx1
Global $pany1
Global $x1
Global $y1
Global $dead_x
Global $dead_y
Global $good_x
Global $good_y
WinActivate("Mabinogi")
CheckPan()
Func CheckPan()
Local $attempts = 0
Local $inv_attempts = 0
Send("i")
$inv_result = _ImageSearch("goodpan.png",1,$pan_inv_x,$pan_inv_y,50)
$equip_result = _ImageSearch("goodpanequiped.png",1,$pan_equip_x,$pan_equip_y,50)
Sleep(2000)
While $attempts < 5 and $equip_result = 0
If $equip_result=1 Then
MsgBox(0,"Test","Found Equipped! :D")
$broken=0
ExitLoop
EndIf
Send("{tab}")
Sleep(500)
$attempts= $attempts + 1
MsgBox(0,"Test","Couldn't find Equipped Q.Q")
$equip_result = _ImageSearch("goodpanequiped.png",1,$panx1,$pany1,50)
WEnd
$inv_result = _ImageSearch("goodpan.png",1,$pan_inv_x,$pan_inv_y,80)
While $inv_attempts < 6 and $inv_result = 0
If $inv_result = 1 Then
$attempts = 0
MsgBox(0,"Test","Found! :D")
ExitLoop
Else
$inv_result = _ImageSearch("goodpan.png",1,$pan_inv_x,$pan_inv_y,80)
MsgBox(0,"Test","Couldn't find Q.Q")
$multipan = 0
$inv_attempts = $inv_attempts + 1
EndIf
Send("i")
WEnd
EndFunc
As for you Allenzy, unzip it, get
[Only registered and activated users can see links. Click Here To Register...], and finally, right click the "My Computer" icon on your desktop/start menu, and choose properties.
What does it say under "System Type"?