sorry for the double post but i still dont have an answer
heres the whole proc
Procedure WithdrawOres(option1,option2:string;amount1,amount2,rock1,rock2:integer;Ring:boolean);
Begin
if (not(Loggedin)) then exit;
if rock2=0 then
begin
if FindDTM(rock1,x,y,MSX1,MSY1,MSX2,MSY2) then
begin
Mouse(x,y,3,3,false)
repeat
wait(10)
Until(ChooseOption('All'))
end else
Begin
Writeln('Didnt Find Ores...Logging Out')
closebank;
closebank;
Logout2;
exit;
end;
end else
begin
if FindDTM(rock1,x,y,MSX1,MSY1,MSX2,MSY2) then
Begin
repeat
Mouse(x,y,3,3,false)
wait(10)
Until(ChooseOption(option1))
if option1='X' then
begin
if FindT then
TypeSend(inttostr(amount1))
end;
If FindDTM(Rock2,x,y,MSX1,MSY1,MSX2,MSY2) then
Begin
repeat
Mouse(x,y,3,3,false)
wait(10)
Until(ChooseOption(option2))
if option2='X' then
begin
if FindT then
TypeSend(inttostr(amount2))
end;
end else
Begin
Writeln('Didnt Find Ores...Logging Out')
closebank;
closebank;
Logout2;
exit;
end;
end else
Begin
Writeln('Didnt Find Ores...Logging Out')
closebank;
closebank;
Logout2;
exit;
end;
if (NoMould) then
if ((Players[CurrentPlayer].strings[0]='or-ball') or
(Players[CurrentPlayer].strings[0]='st-ball')) then
if FindDtm(mould,x,y,MSX1,MSY1,MSX2,MSY2) then
begin
Mouse(x,y,4,4,true)
NoMould:=False;
end else
begin
Writeln('Didnt Find Mould...')
closebank;
closebank;
Logout2;
exit;
end;
if(UseRing) then
if (NoRing) then
if lowercase(Players[CurrentPlayer].strings[0]) = 'iron' then
begin
if FindDtm(Ring,x,y,MSX1,MSY1,MSX2,MSY2) then//heres the screw up. on the MSY2
begin
Mouse(x,y,4,4,true)
NoRing:=False;
end else
begin
Writeln('Didnt Find Mould...')
closebank;
closebank;
Logout2;
exit;
end;
end;
end;
end;