Phran6
2009-05-06 05:12:53
this will check the uptext you putted in array for slot 1 to 40 in the 'view all' screen (i think) and will withdraw it. so no need to use alot of dtm and lag the script. i made this because i had a lot of item to withdraw. plz post comment about it:) and if you want use it , credit me.
exemple(i use it for my current project , look at my sign):
if Withdraws(['Mith grapple','Prayer potion',FoodName,'Nature rune','Fire rune','Bones to','Falador','Law rune' ] , ['1','1','21','50','252','50','1','2' ], true) then result:= true;
exemple(i use it for my current project , look at my sign):
if Withdraws(['Mith grapple','Prayer potion',FoodName,'Nature rune','Fire rune','Bones to','Falador','Law rune' ] , ['1','1','21','50','252','50','1','2' ], true) then result:= true;
Function Withdraws(Name, Amount: array of string; deposit:boolean): boolean;
var
I, XX, YY, c: integer;
P: TPoint;
begin
if not LoggedIn then exit;
if not BankScreen then
begin
if not R_OpenBankBooth('fwb') then exit; //can be changed for what you want
while not (BankScreen) do wait(112+random(50));
end;
if deposit then DepositAll;
wait(random(300));
FixBankTab;
wait(200+random(300));
FixBank;
wait(200+random(300));
for i:=1 to 40 do
begin
P := BankIndexToMSPoint(i);
mmouse(P.x+12, P.y+12 ,6 ,6);
wait(300+random(300));
for c := 0 to high(name) do
begin
wait(10+random(10));
if IsUpText(name[c]) then
begin
if Amount[c] = '1' then
begin
GetMousePos(xx,yy)
mouse(xx ,yy, 2, 2, true);
break;
end else
if (Amount[c] = '5') or (Amount[c] = '10') then
begin
GetMousePos(xx,yy);
mouse(xx, yy, 2, 2, false)
ChooseOption('Withdraw-' +Amount[c])
break;
end else
begin
GetMousePos(xx,yy);
mouse(xx, yy, 2, 2, false)
if ChooseOption('Withdraw-X') then
begin
Wait(1000 + Random(100));
TypeSend(Amount[c]);
break;
end;
end;
end;
end;
if i= 40 then
begin
result:= false
writeln('we didnt got able to withdraw item');
end;
if c = high(name) then
begin
result:= true;
exit;
end;
end;
end;