SRL Archive - Help

DTM Map Walking?


loser69

2012-01-16 09:39:34

Am I doing this right?

procedure walkpath1;
var
path1, x, y:integer;
begin


path1 := DTMFromString('mWAAAAHicY2FgYGBkYWD4yMzAwA2kfwHpPUCx3VB8Gojd/RQYamqywTRQNQMrkETGjGgYBADa3Qft');
If FindDTM(path1, X, Y, MMX1, MMY1, MMX2,MMY2) then

mouse( x, y, 3, 3, true);
FFlag(0);
wait(1000);
FreeDTM(path1);
end;


It worked and clicked on the minimap however once I closed the client and try to rerun it, it can't find it.

DemiseScythe

2012-01-16 09:42:27

FFlag(0) should be more like FFlag(8) and you need to use FindDTMRotated instead of FindDTM, should use begin and end after your if..then statement.

loser69

2012-01-16 09:47:27

Ok thanks!

I tried to use begin and end after the if statement however the variable couldn't compile?