Code:
;Magic
While $VendorMagic
Sleep(Random(100, 300))
$MagicPixel = PixelSearch(1398*$x_ratio, 572*$y_ratio, 1914*$x_ratio, 888*$y_ratio, 0x182037, 2)
If Not @error Then
MouseClick("right", $MagicPixel[0], $MagicPixel[1])
Else
ExitLoop
EndIf
WEnd
To prevent tombs and gems from getting sold (without stashing), is it possible to just have the PixelSearch search only the top 4 rows of your bag? This way you can stack your gems / tomes on the bottom row, and never worry about them getting sold.
For really long sessions, you would want to make 2-4 stacks of each color of gem, This way after reaching 30 gems, you wont make a new stack of gems in the "sell area".
I assume you would just change
Code:
$MagicPixel = PixelSearch(1398*$x_ratio, 572*$y_ratio, 1914*$x_ratio, 888*$y_ratio, 0x182037, 2)
to something like
Code:
$MagicPixel = PixelSearch(900*$x_ratio, 400*$y_ratio, 1250*$x_ratio, 550*$y_ratio, 0x182037, 2)
Also, would i be correct assuming the pixel search area would be:
900 (Farthest Left Point to Search)
400 (Highest Point to Search)
1250 (Farthest Right Point to Search)
550 (Lowet Point to Search)