XabdullahX
2009-05-31 03:49:39
This searches for an item, then withdraws the item from 1st bank spot if its correct item
Procedure SAndWItem(Item: String; Amount: Integer); //Search and Withdraw item from bank
var xitems : Boolean;
ite: Integer;
OneLetterOff: String;
begin
if (BankScreen) then
begin
Mouse(85,307,1,1,True);
wait(700+Random(500));
TypeSend(AddMistakes(item, 40));
wait(800+Random(800));
MoveMouse(51,110);
wait(500+Random(200));
ite := Length(Item);
OneLetterOff := Right(Item, ite - 1);
If IsUpText(OneLetterOff) then
begin
Mouse(50,110,1,1,false);
wait(300+Random(300));
Case Amount of
1, 5, 10 : ChooseOption('Withdraw-'+IntToStr(Amount));
else
begin
Chooseoption('Withdraw-X');
xitems := true;
end;
end;
end;
if (xitems) then
begin
wait(600+Random(200));
TypeSend(AddMistakes(Inttostr(amount), 40));
end;
end else
Writeln('Its not open?');
end;