are DTM as unreliable as im finding them to be. yesterday at 1 am i was doing some code, mainly DTMs. now at 6am at least the first 2 DTMs (the beginning DTM and a bak up) stopped working. earlier at 1 am i had tested both DTMs cross world at different camera angles and they worked perfectly. now its like i never did anything. it simply cant find it.
if you feel like it go to varrocks general store and try this script
BTW:apart from being tested like 6 times each without failure yesterday. they have a
tolerance of 30!
this is part of my walking code
SCAR Code:
program bank;
{.include SRL\SRL.scar}
var
//the place where it stores the loc if found
x,y:integer;
//DTMs
m1:Integer;
m1b:Integer;
//this stores the found angle in the end of the or something
trash:extended;
//these are the dtms
procedure loadDTMs;
begin
m1 := DTMFromString('78DA63CC606260306340015565850C72409A1' +
'188FF03016302504D146E3520C0980754134240CD44A01A63026A' +
'40EE2920A0A612A8C61E554D84BB218A1A009ACB10EC');
m1b := DTMFromString('78DA6334666060506740015565850C72409A1' +
'188FF03016324906180AA26C2DD10AE0604183D80843E01352640' +
'C217B75D60357640C296803949404205BF3900216C0E2C');
end;
begin
// * * * * * * * * * * * * * * * * * * * * * * * *
// * * Shop to Varrock center *
// * * * * * * * * * * * * * * * * * * * * * * * *
// * * * * * * * * * * * * * * * * * * * * * * * *
setupSRL;
PerfectNorth;
//load the DTMs
loadDTMs;
//Primary FindDTM
if(FindDTMRotated(m1,x,y, 518, 0, 763, 165, -1,1, 0.001,trash)) then
begin
writeln('road found');
Mouse(x,y,0,0,true);
end else
//Secondary FindDTM
if(FindDTMRotated(m1b,x,y, 518, 0, 763, 165, -1,1, 0.001,trash)) then
begin
writeln('road found by backup');
Mouse(x,y,0,0,true);
end else
begin
writeln('End of the line for you, my friend. give it another try');
Exit;
end;
//makes it wait until it reaches the flag
CountFlag(0);
end.