Ok so I'm getting into the DTM thing and I got to admit, it's AMAZING! I always find a monster, never miss, and I don't click dead monsters. I'm very happy, this is going to make autoing so much easier
Anyway, I'm going to give it the ability to switch the DTMs out with new ones (ability to select monsters to hunt). Just putting together a test I tried the LoadDTM function but I get this error. I look over it again and again but I can't figure it out. It compiles fine every time but when I run it it I get this error-
Code:program HunterTest; var x, y: Integer; DTM1, DTM2, DTM3, DTM4: Integer; found: Boolean; begin DTM1 := LoadDTM('.\Includes\DTMs\PinkBunny\DTM1.dtm'); DTM2 := LoadDTM('.\Includes\DTMs\PinkBunny\DTM1.dtm'); //All are DTM1.dtm right so I can test it. DTM3 := LoadDTM('.\Includes\DTMs\PinkBunny\DTM1.dtm'); DTM4 := LoadDTM('.\Includes\DTMs\PinkBunny\DTM1.dtm'); FindWindow('GoonZu'); ActivateClient; repeat If FindDTM(DTM1, x, y, 0, 0, 768, 1024) then begin ClickMouse(x, y, true); writeln('found DTM1'); found := true; end else if FindDTM(DTM2, x, y, 0, 0, 768, 1024) then begin ClickMouse(x, y, true); writeln('found DTM2'); found := true; end else if FindDTM(DTM3, x, y, 0, 0, 768, 1024) then begin ClickMouse(x, y, true); writeln('found DTM3'); found := true; end else if FindDTM(DTM4, x, y, 0, 0, 768, 1024) then begin ClickMouse(x, y, true); writeln('found DTM4'); found := true; end else begin writeln('none found'); end; if Found = True then begin wait(8000); end else begin writeln('repeating process') end; until (1=2); end.Any help?Successfully compiled (71 ms)
[Runtime Error] : Exception: Invalid filename in line 8 in script C:\Documents and Settings\BeatDown\Desktop\Luminary Auto Hunter\SCAR 3.15\Test.scar
...
.....
..
What's Banana tags? ![]()



Reply With Quote





