Originally Posted by
Timmywimmy
I tried to find the pixel color but I'm not that good at that part and couldn't get it to work. That part is fine, i doubt i'll find legendary all night and fill my regular inventory up with them lol so. Can we add a set item find or did I miss this from the script?
I realized this but unfortunately I have not dropped any single slot legendary items. That is the reason there is no pixel code for them. Basically you need to add pixel color for legendary single slots in the DepositRare function to stash single slot legendaries like rings and amulets.
If you look up a couple posts, it shows you how to get the color code using AutoIt Window Info. I just magnified the borders of the items (where it is yellow for rares, and orange for legendary) and tried to find a spot with several similar pixels and used that color code. Not sure if that makes sense to you.
For legendary single item stash - Add one or two of these into the DepositRare function and find the proper color code.
1170,513,1593,758 <- This is coordinates of your stash bag
0x46E245 <- This is the color code it looks for in your bag to deposit into stash chest
Code:
$Legend1 = PixelSearch(1170,513,1593,758,0x46E245)
If Not @error Then
MouseClick("right", $Legend1[0], $Legend1[1])
Sleep(500)
$i+= 1
If $i <= 10 Then
Call("DepositRare")
EndIf
EndIf
I don't think i saw a check loot for set items and it picked up a legendary ring and wouldn't stash it.
It's in there. Perhaps the color code is wrong if it isn't picking it up. I haven't dropped a set item yet so I can't test.
Code:
Func CheckLoot()
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