Simba Code:
Function DepositAllExcept(IgnoreSlots: TIntegerArray; FastDeposit: Boolean): Boolean;
Var
B: TBox;
i,T,X,Y: Integer;
Label
Start;
begin
Result := False;
if ((not BankScreen) and (not DepositScreen)) then Exit;
Start:
For i := 1 to 28 do
begin
if not InIntArray(IgnoreSlots, i) then
begin
if BankScreen then
begin
if ExistsItem(i) then
MouseItem(i, mouse_right)
end else if DepositScreen then
begin
B := DepositItemBox(I);
if (not(FindColor(X, Y, srl_outline_black, B.X1, B.Y1, B.X2, B.Y2))) then
Continue;
Mouse((B.X1 + B.X2) shr 1, (B.Y1 + B.Y2) shr 1, 0, 0, mouse_right);
end;
if FastDeposit then
begin
if ((GetSlotAmount(i) = 0) or (GetSlotAmount(i) = 1)) then
MenuOption(1)
else if ((GetSlotAmount(i) > 1) and (GetSlotAmount(i) < 6)) then
MenuOption(5)
else if (GetSlotAmount(i) > 5) then
MenuOption(6);
if (i = 28) then
Wait(RandomRange(300, 450));
end else
begin
WaitOptionMulti(['Deposit-All', 'All', 'osit'], 400);
T := GetSystemTime;
repeat
if BankScreen then
if (not(ExistsItem(I))) then Break;
if DepositScreen then
if (not(FindColor(X, Y, srl_outline_black, B.X1, B.Y1, B.X2, B.Y2))) then Break;
Wait(50);
until(GetSystemTime - T > 2000)
end;
end;
end;
{Possible infinate loop? Depends on the accuracy of your IgnoreSlots array}
if BankScreen then
if not (InvCount = Length(IgnoreSlots)) then
goto Start
else if DepositScreen then
if not (DBoxItemCount = Length(IgnoreSlots)) then
goto Start;
Result := True;
end;
This is from Flight - I claim no credit it for it, but he had this posted in a thread a while ago offered up to help anyone.. this might be hepful?
this is the thread if you wanna use it :
http://villavu.com/forum/showthread.php?t=77999