Log in

View Full Version : DTM help



Deadly Serious
01-13-2012, 02:23 AM
I'm trying to make a more accurate system to click the portal but I'm having a bit of trouble.
It's having trouble recognizing the dtm. I believe it's from this line
"if FindDTM(PortalDTM,x, y, 1, 1, 200, 200) then"



Procedure Leave;
var
PortalDTM, X,Y: Integer;

Begin
if not loggedin then exit;
FindNormalRandoms;
Antiban;
DidRedClick;

begin
PortalDTM := DTMFromString('mwQAAAHic42RgYKhhZGDoBuIORgi7EIjzgb gEiOuh4gFQHAnEcVDaH4hdgNgRiN2BODs9HWgaEwFMGDASgeEA ACHzCJ8=');
if FindDTM(PortalDTM,x, y, 1, 1, 200, 200) then
begin
Writeln('Leaving the Mysterious rock formation')
Getmousepos(x, y)

Case random(11) of
0..10: begin
MMouse(X, Y, 2, 2);
ClickMouse2(True);
end;
// 9..10: begin;
// MMouse(X, Y, 2, 2);
// ClickMouse2(False);
// Waitoption('nter', 3000);

end;
FreeDTM(PortalDTM)
end;
end;
end;

KingKong
01-13-2012, 02:30 AM
I wouldn't recommend using dtm's/bitmap's for mainscreen object finding, because the shape is constantly changing. Use tpa's/atpa's.

Deadly Serious
01-13-2012, 02:32 AM
I wouldn't recommend using dtm's/bitmap's for mainscreen object finding, because the shape is constantly changing. Use tpa's/atpa's.

Thanks, are there any small tutorials you can link me to? I can only find one which is about 15 pages long and I just need a brief tutorial on how to implement one into a script.

KingKong
01-13-2012, 02:40 AM
http://villavu.com/forum/showthread.php?t=42428

More here:
http://villavu.com/forum/forumdisplay.php?f=97

Deadly Serious
01-13-2012, 03:03 AM
http://villavu.com/forum/showthread.php?t=42428

More here:
http://villavu.com/forum/forumdisplay.php?f=97

Thanks mate, I've got the TPA working now :D