Naum
2008-03-16 06:07:16
Since i'm a
Just an idea
case freak i thought that the function Deposit could use some cases.Just an idea
{*******************************************************************************
procedure Deposit(slot, toslot, thetype: Integer);
by: WT-Fakawi/PPLSUQBAWLZ/Stupid3ooo/Town
Description: Deposits from Slot to ToSlot.
Type 2 = All, Type 1 = one-by-one.
*******************************************************************************}
procedure Deposit(Slot, ToSlot, TheType: Integer);
var
i,n: Integer;
begin
if (BankScreen) then
begin
for i:= Slot to ToSlot do
begin
if ExistsItem(i) then
begin
Case TheType of
1:begin
MouseItem(I, True);
Wait(50+random(50));
end;
2:begin
n:=0;
MouseItem(I, False);
if (ChooseOption('All')) then
begin
Wait(100+random(100));
repeat
n:=n+1;
Wait(40);
if not ExistsItem(i) then
break;
until n>50;
end;
end;
end;
end;
end;
end;