hello guys,
i am using some of these DH Sarkoth scripts. i saw a drop of a green ring and AutoIT does not pick it up. i was lucky to pick it up quickly by myself tho.
some1 any idea? code below. thx.
part of code here:
Code:
If $LootSets == True Then
LogWrite(" Searching - Set")
$SetCount += LootGear(0x02CE01, 2)
aaand:
HTML Code:
Func LootGear($color, $tolerance = 2)
$count = 0
$Loot = PixelSearch(Round(400*$x_ratio), 0, Round(1690*$x_ratio), Round(900*$y_ratio), $color, $tolerance) ; Magic loot (darker for compatibility)
While Not @error
LogWrite(" Found - " & $color)
$count += 1
MouseClick ('left', $Loot[0], $Loot[1])
Moving(900)
MouseMove(Round(Random(1400,1600)*$x_ratio),Round(Random(700,900)*$y_ratio),3) ;Moves mouse out of the way
;Run at max 5 times per quality
If $count >= 5 Then
LogWrite(" Overburdened - " & $color)
ExitLoop
EndIf
$Loot = PixelSearch(Round(400*$x_ratio), 0, Round(1690*$x_ratio), Round(900*$y_ratio), $color, $tolerance) ; Magic loot (darker for compatibility)
WEnd
Return $count
EndFunc