heers the function
SCAR Code:
function LostCage:boolean;
begin
potDTM := DTMFromString('78DA6374676060F06540010DE5E5609A11CA6' +
'73401129EA86A1C753850D51803096F0634C088AAC60948441250' +
'E30F24FC5055182828A0AA01C93BE1370700102B05BA');
if(FindDTM(x, y, potDTM, 549, 199, 609, 259))then
begin
Result := False;
FreeDTM(potDTM);
end else
begin
Result := True;
FreeDTM(potDTM);
writeln('pot is lost');
end;
end;
heers the error
[Runtime Error] : Exception: Access violation at address 006D71E8 in module 'scar.exe'. Read of address 00000000 in line 59 in script C:\Documents and Settings\Zezima\Desktop\Scripts\Catherby.scar
the function is to check if you lost your lobster pot, it searches the first inv slot for a dtm of the pot(iv tested the dtm and it works) and its not there the result is true. any idea why this is causing this error?