Are you modifying BKBOT to work on a different resolution other that 1920x1080?
Or are you using a different graphics settings that is incompatible in pixels?
Because these are the only thing I could think of to answer your case.
If so, we can resolve it as long as I know the details.
At any rate:
The code that checks for a particular spot in the backpack is occupied or not is this:
Code:
func IsEmpty ($x,$y)
; MouseMove(1427+$x*50,583+$y*50,0)
local $sum = 0
for $i = -20 to 20 step 20
for $j = -20 to 20 step 20
$sum += PixelGetColor(1427+$x*50+$i,583+$y*50+$j)
next
next
return ($sum < 0x00C00000)
endfunc
An empty space is colored 0x100D08 (with 2~4 shades variation). Therefore, it is not accurate to do a single color search. The above code does a sum of 9 pixels, and checks if it is <0xC00000. I currently only check for the Red color component.
Code:
Backpack
0 1 2 3 4 5 6 7 8 9
+---+---+---+---+---+---+---+---+---+---+
0 | | | | | | | | | | |
+---+---+---+---+---+---+---+---+---+---+
1 | | | | | | | | | | |
+---+---+---+---+---+---+---+---+---+---+
2 | | | | | | | | | | |
+---+---+---+---+---+---+---+---+---+---+
3 | | | | | | | | | | |
+---+---+---+---+---+---+---+---+---+---+
4 | | | | | | | x | | | |
+---+---+---+---+---+---+---+---+---+---+
5 | | | | | | | | | | |
+---+---+---+---+---+---+---+---+---+---+
GHOM often drops 4 items each time (but unfortunately no GEMS). Therefore, to be able to pick up all those loots, BKBOT checks if the spot X aka (6,4) is empty.
Code:
elseif IsNeedRepair() or IsEmpty(6,4)=False then
However, I havent experience him dropping 2 Legs; you might want to change it to check at (8,4) instead.
If you are using a different resolution, you will need to modify the coords. If you are using 1920x1080 resolution, then either you got a different color scheme, or have different graphics settings, or another posibility is that, you have something blocking in that particular space that is making it register as not-empty. I wonder if you are using Windowed D3 as against Full Windowed?