Well damn. I just spent the majority of the day improving notAres's script (I had fixed death/repair/looting/etc.) and while doing extended testing just to be sure, Ares releases his new version which still blows mine out of the water lol.
One question though Ares:
Code:
Func CheckLoot()
Sleep(Random(1200,3200))
$Pixel4 = PixelSearch(Round(270*$x_ratio), 0, Round(1490*$x_ratio), Round(900*$y_ratio), 0xBF642F, 1) ;searches main window for color of legendary lootz
If Not @error Then
MouseClick ('left', $Pixel4[0], $Pixel4[1])
Sleep(Random(800,1200))
$i+= 1
If $i > 8 Then
Call("CheckLoot")
EndIf
EndIf
$Pixel5 = PixelSearch(Round(270*$x_ratio), 0, Round(1490*$x_ratio), Round(900*$y_ratio), 0xFFFF00) ; rare lootz (also f3f45b)
If Not @error Then
MouseClick ('left', $Pixel5[0], $Pixel5[1])
Sleep(Random(800,1800))
$i+= 1
If $i > 8 Then
Call("CheckLoot")
EndIf
EndIf
$Pixel6 = PixelSearch(Round(270*$x_ratio), 0, Round(1490*$x_ratio), Round(900*$y_ratio), 0x00FF00) ; set lootz
If Not @error Then
MouseClick ('left', $Pixel6[0], $Pixel6[1])
Sleep(Random(800,1200))
$i+= 1
If $i > 8 Then
Call("CheckLoot")
EndIf
EndIf
EndFunc
Are the > (greater than) in "If $i > 8 Then" supposed to be < (less than) or am I misunderstanding?
Originally Posted by
ninetofive
It's running extremely well right now but if possible could you please add a spacebar command just before it resumes game? This would close the Achievement screen for those of us who have this infinite death loop error. Also pressing spacebar from that screen does not apply any command unless a window is open and therefore won't cause any other problems.
I would do it myself but since there are so many instances of "Resume game" I'm not sure where I'd have to add it to make it work.
Thanks!
That's the CheckWindow() function.