Hey,
for a failsafe I need my script to check if the character is on the right floor of a building. I got the idea to simply check if there is a block of black on the minimap which is a tell-tail sign for that.
Well, it simply doesn't work. I had problems with DTMs not being detected due to unknown reasons and it somehow always worked out when playing with the coordinates in which the FindDTM procedure searches, this time I can't make it work. The cordinates you see in this example are the minimap, and the DTM is composed only of black points, so I don't see the problem.RightFloor:= DTMFromString('mWAAAAHicY2FgYJjGxMCwBIjnA/FEIJYAiikDsQYQywMxMyMLCkYHjGgYBADlsAMd');
if FindDTM(RightFloor, x, y, 520, 0, 740, 169) then
begin
Writeln('Walked the stairs successfully, I am on floor #2 now');
end else
begin
Writeln('Something went wrong, the stairs were not clicked correctly. Trying again...');
end;
Any ideas, fellow scripters?![]()


Reply With Quote










