Quickmarch
2009-04-19 00:16:19
DepositAll clicks the empty inv button even when the inv was empty so i just fixed it up a little:
{*******************************************************************************
function DepositAll: Boolean;
by: ZephyrsFury
Description: Deposits all items in your inventory
*******************************************************************************}
function DepositAll: Boolean;
var
T, x, y: Integer;
begin
if (BankScreen) then
if (FindColor(x, y, 65536, MIX1, MIY1, MIX2, MIY2)) then
begin
Mouse(390, 305, 15, 10, True);
Wait(200 + Random(300));
T := GetSystemTime;
while (InvFull) and (GetSystemTime - T < 2000) do
Wait(100);
Result := InvEmpty;
end;
end;