but there is code example on site, why not use it?) https://adrenalinebot.com/en/api/adrenaline/Classes/TL2Control#FindPath
uses Classes;
var
Path: TList;
i: integer;
begin
Path:= TList.Create;
Engine.FindPath(User.X, User.Y, User.Target.X, User.Target.Y, Path);
print(Path.count);
for i:= 0 to Path.count - 1 do
begin
Engine.MoveTo(Integer(Path(i)), Integer(Path(i + 1)), User.Z);
inc(i, 1);
end;
Path.Free;
end.
Probably you try to use this method on cracked "very old" version of adrenaline bot. You will need to use actual version for work with packets. Also you can try Packet Scanner plugin for analyze packets
Only using scripts, you can try to make script order on our site