Results 1 to 7 of 7

Thread: Invalid filename

  1. #1
    Join Date
    Jul 2008
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Invalid filename

    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.
    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
    Any help?

    ...
    .....
    ..
    What's Banana tags?

  2. #2
    Join Date
    Oct 2007
    Location
    Denmark
    Posts
    409
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Try: LoadDTM('DTMs\PinkBunny\DTM1.dtm');

    Buy why wouldn't you use the DTMEditor and the press DTM To Text?
    This way people won't have to download your DTMs to run your script.

  3. #3
    Join Date
    Jul 2008
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Frt View Post
    Try: LoadDTM('DTMs\PinkBunny\DTM1.dtm');

    Buy why wouldn't you use the DTMEditor and the press DTM To Text?
    This way people won't have to download your DTMs to run your script.
    Didn't work :S

    I'm going to use the scar packager to distribute it. I don't want people going into my script for any reason.

  4. #4
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yeah.. just put it in the script =X

    SCAR Code:
    procedure LoadDTMs;
    var
      DTM: Integer;
    begin
      DTM := DTMFromString('jdasbglkasdbgjlsadkb');
    end;

    if(FindDTM(DTM, x, y, 0, 0, 5000, 5000))then
      HaveSex;

    btw..

    this isn't for runescape.. but if the people moderate the game AT ALL they will catch it immediately if you use ClickMouse.. it clicks at like 10-20ms a click.. which humans are extremely incapable of doing..

    GL

  5. #5
    Join Date
    Oct 2007
    Location
    Denmark
    Posts
    409
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Make sure the path is correct (Root is in includes folder).

    Using the packager, wouldn't that still require downloading the DTMs as it only turns the script inself into an.exe?

  6. #6
    Join Date
    Jul 2008
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    To 99_

    This was just a test. I haven't used DTMs before. Thanks for reminding me though, I'll make it more human. But since you bring it up, I was just wondering. Is there anyway to fake your ping? I asked a mod in the game and he told me the way they catch Bot users is they check the Ping, and if it's 0 then they are using a bot. Is this true?

    To Frt

    I thought it packaged the whole thing.. Hmm. Well I think it could still be useful though. I'm not going to make a DTM for every monster in the game at the start, so I will make updates and such. Or I could just put it all in a .rar or something and distribute it like that.

    EDIT:

    Fixed it. Turns out the script didn't like that it was in the Includes ^^
    Last edited by groog; 04-05-2009 at 01:44 AM.

  7. #7
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I believe so Frt..

    and just put the DTMs in the script.. what would they do with the DTMs?

    EDIT:

    umm.. ping = 0 means that they are a SERVER bot.. automated NPC/player.. if you play FPS's then you should know..

    and if it's a crappy game then I guess they could hack the server and they would be playing via game server not via there pc = no ping..
    Last edited by ian.; 04-05-2009 at 01:48 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •