Originally Posted by
oskarelenstedt
Probably making the script press the ALT button, altho I'm completely clueless when it comes to scripts and I got no idea how or where(even if fukker tried to help me)
Code:
Func CheckLoot()
Send("{ALTDOWN}")
Sleep(Random(500,2000))
$SetLoot = PixelSearch(Round(400*$x_ratio), 0, Round(1690*$x_ratio), Round(900*$y_ratio), 0x02CE01, 2) ; set loot
If Not @error Then
MouseClick ('left', $SetLoot[0], $SetLoot[1])
Sleep(Random(800,1200))
$i+= 1
If $i <= 6 Then
Call("CheckLoot")
EndIf
EndIf
$LegendaryLoot= PixelSearch(Round(400*$x_ratio), 0, Round(1690*$x_ratio), Round(900*$y_ratio), 0xBF642F, 2) ; legendary loot
If Not @error Then
MouseClick ('left', $LegendaryLoot[0], $LegendaryLoot[1])
Sleep(Random(800,1200))
$i+= 1
If $i <= 6 Then
Call("CheckLoot")
EndIf
EndIf
If $LootRares Then
$RareLoot = PixelSearch(Round(400*$x_ratio), 0, Round(1690*$x_ratio), Round(900*$y_ratio), 0xBBBB00, 2) ; rare loot (darker for compatibility)
If Not @error Then
MouseClick ('left', $RareLoot[0], $RareLoot[1])
Sleep(Random(700,900))
$i+= 1
If $i <= 6 Then
Call("CheckLoot")
EndIf
EndIf
EndIf
If $LootGems Then
Send("{ALTDOWN}")
gem()
Send("{ALTUP}")
SLeep(10)
EndIf
Send("{ALTUP}")
EndFunc
notice the send alts below Func CheckLoot() and the line before EndFunc
Send("{ALTDOWN}")
Send("{ALTUP}")