SCAR Code:
function IsAtSymbol(Name:string) : Boolean;
//by bEnJaa
var
x, y : integer;
begin
if (not LoggedIn) then exit;
Flag;
SymbolAccuracy:=0.5;
if (FindSymbolIn(x, y, Name, MMCX-12, MMCY-12, MMCX+12, MMCY+12)) then
begin
Result:=True;
Writeln('At symbol');
end else
begin
Result:=False;
Writeln('Not at Symbol');
end;
end;
Not too complex, but VERY useful
Especially when there may be doors involved
Example:
SCAR Code:
if (FindSymbol(x, y, 'bank')) then Mouse(x, y, 6, 6, true);
if (IsAtSymbol('bank')) then Writeln('Success');