
Originally Posted by
SRLKing
No, just check that I am within a certain distance of the bank symbol before trying to bank.
Oh I guess you could use the distance formula to get the distance between your white square (always (643, 83)) and the dtm of the bank

Then only bank if you are within that certain area
So find the distance between 643,83 and find the bank DTM and store in 2 variables and use

EDIT:
@
I came up with this:
Simba Code:
{$i srl/srl.simba}
Var
MSX,MSY,X1,X2,Y1,Y2,Dist_To_Symbol:Integer;
DTM_Bank,X,Y:Integer;
Procedure FreeMem;
Begin
FreeDTM(DTM_Bank);
End;
Procedure LoadDTM;
Begin
DTM_Bank := DTMFromString('mQwAAAHicY2ZgYEhgYmBIAeJwIE4D8jOBOBmI31xMYGBmFAVjfiAfhhmRMBAAANchBNY=');
End;
Procedure GetMMDistance;
Begin
X1 := X
Y1 := Y
X2 := 643
Y2 := 83
//Dist_To_Symbol := Sqr((((X2)-(X1))*((X2)-(X1))) + (((Y2)-(Y1))*((Y2)-(Y1))));
Dist_To_Symbol := Distance(X1,Y1,X2,Y2);
ClearDebug;
Writeln('Current Distance from symbol:' + ToStr(Dist_To_Symbol))
Wait(300);
End;
Procedure GetDTM;
Begin
if FindDTM(DTM_Bank, x, y, 524, 3, 762, 168) Then
Begin
Writeln('Got Bank DTM')
End;
End;
Begin
Repeat
LoadDTM;
GetDTM;
GetMMDistance;
Until False;
AddOnTerminate('FreeMem');
End.
Edit it out to use built in distance works great