It actually doesn't search for the ore in the bank because it already assumes its in the first 2 slots (or the slots you specified with advance options).
It all depends on GetAmount on this line in Bank:
Code:
T := BankIndexToMSPoint(BankSlot1);
for i := 0 to 3 do
A := Max(A, GetAmount(T.x+8, T.y+8));
So a couple things could be happening.
1. the amount isn't showing up fast enough
2. the coords of the bank slot are off
3. GetAmount isn't working 100%
Only thing I can think of is to add a slight wait in that GetAmount loop.
Code:
for i := 0 to 3 do
begin
wait(50+random(50));
A := Max(A, GetAmount(T.x+8, T.y+8));
end;
I just checked, the coords should be right, I've had only one odd result with GetAmount. I think its just not showing up fast enough.