Has anyone had any issues with the LootGear() function?
Mine will pick up blues just fine but rares are not picked up. I have tried changing the color of the PixelSearch to look for 0xFFFF00 instead of 0xDDDD00 but still no luck. Any ideas?
Still having issues with this, does anyone have any ideas? I even tried changing over the color tolerance of the LootGear function to exclude the "=2" and manually send a 4 from the LoorGearCall:
Code:
If $LootSets == 1 Then
$SetCount += LootGear(0x02CE01, 2)
EndIf
If $LootLegendaries == 1 Then
$LegendaryCount += LootGear(0xBF642F, 2)
EndIf
If $LootRares == 1 Then
$RareCount += LootGear(0xBBBB00, 4)
EndIf
If $LootMagic == 1 Then
$SetCount += LootGear(0x6969FF, 2)
EndIf
Func LootGear($color, $tolerance)
$count = 0
$Loot = PixelSearch(Round(400 * $x_ratio), 0, Round(1690 * $x_ratio), Round(900 * $y_ratio), $color, $tolerance)
If Not @error Then
While Not @error
$count += 1
MouseClick('left', $Loot[0], $Loot[1], 1, 3)
Sleep(50)
MouseMove(Round(Random(0, 400) * $x_ratio), Round(Random(700, 1080) * $y_ratio), 1) ;Moves mouse out of the way
sleep(500)
;Run at max 10 times per quality
If $count >= 10 Then
ExitLoop
EndIf
$Loot = PixelSearch(Round(400 * $x_ratio), 0, Round(1690 * $x_ratio), Round(900 * $y_ratio), $color, $tolerance)
WEnd
EndIf
Return $count
EndFunc ;==>LootGear