I get this error:
[Runtime Error] : Exception: Access violation at address 007209A8 in module 'scar.exe'. Read of address 00000000 in line 79 in script C:\Program Files\SCAR 3.20\includes\SRL/SRL/Core/Color.scar
I think it has to do when im freeing the dtm this the the walk to willow script;
SCAR Code:
procedure WalkToWillows;
var
x, y, Tries: Integer;
Result1: Boolean;
begin
WillowDTM := DTMFromString('78DA63AC666260F06540010909CA0CFF81342' +
'310FF0702C63CA01A075435F221109A11CA672C03AAF124A0A619' +
'A8C68F809A5AA09A285435B24EA86A0082B00B88');
MakeCompass('N')
repeat
if DTMRotated(WillowDTM, x, y, MMx1, MMy1, MMx2, MMy2) then
begin
Result1 := True;
Mouse(x, y, 5, 5, true);
WriteLn('Walking To Willows');
FreeDTM(WillowDTM)
end else
Result1 := False;
Tries := Tries + 1;
Writeln('Could not find WillowDTM');
FreeDTM(WillowDTM);
until(Result1 = True) or (Tries = 25)
end;
Line 79 of Color.scar:
SCAR Code:
if (FindDTM(DTM, x, y, x1, y1, x2, y2)) then