Results 1 to 8 of 8

Thread: Dmt clicking help

  1. #1
    Join Date
    Aug 2007
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Dmt clicking help

    What's the procedure for after SCAR finds your DMT, it clicks on it?

  2. #2
    Join Date
    Nov 2007
    Posts
    437
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    After you have use FindDTM it will store the DTMs location in the coordinates you give it, usually x and y. What you want to do is use FindDTM in an if statement so that if its found, it will click (using Mouse).

    SCAR Code:
    if (FindDTM(YourDTM, x, y, MIx1, MIy1, MIx2, MIy2)) then
    begin
      Wait(500+random(250)); // wait so it looks more human like
      Mouse(x, y, 5, 5, True); // left clicks the DTM, false for a right click
      Writeln('Clicked YourDTM!');
    end else
    begin
      Writeln('Could Not Find YourDTM!');
      // Other Failsafes Here
    end;

  3. #3
    Join Date
    Jan 2008
    Location
    Stanford, CA
    Posts
    329
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Ya, listen to Dusk, he's pro at DTMs. He's even gotten a 5 star tutorial on it .

  4. #4
    Join Date
    Aug 2007
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I keep getting

    Line 10: [Error] (10:1): Unknown identifier 'Mouse' in script

    I don't even know if mouse is a command o.o


    And when i change it to clickmouse i get

    Line 10: [Error] (10:35): Invalid number of parameters in script

  5. #5
    Join Date
    Oct 2007
    Location
    If (Online) then Loc := ('On comp') else Loc := ('Somewhere else!');
    Posts
    2,020
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    haver you included the SRL iclude??

    and SetUpSRl? etc

  6. #6
    Join Date
    Aug 2007
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    No lol o.0

    What is that?

  7. #7
    Join Date
    Nov 2007
    Posts
    437
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Okay here is the full program to use. I don't know how much you know of scripting so there are lots of little comments.

    SCAR Code:
    program YourProgram;  // this is the name of your program
    {.include SRL/SRL.scar}
    //--Above is the SRL include - VERY IMPORTANT!!--//

    var
      x, y : Integer; //We declare x and y (our coordinate variables) as integers (or numbers)
      YourDTM : Integer; //YourDTM is also a number

    procedure ClickDTM; // name a procedure - its like a small program in itself
    begin
      if (FindDTM(YourDTM, x, y, MIx1, MIy1, MIx2, MIy2)) then   //MIx1, MIy1, MIx2, MIy2 refer to the coordinates of your inventory
      begin
        Wait(500+random(250)); // wait so it looks more human like
        Mouse(x, y, 5, 5, True); // left clicks the DTM, false for a right click
        Writeln('Clicked YourDTM!'); // writes the message in the debug box (the one in the bottom left)
      end else
      begin
        Writeln('Could Not Find YourDTM!');
        // Other Failsafes Here
      end;
    end;

    //--This is where your main loop (main part of your program) begins--//
    begin
      SetupSRL; //activates SRL - VERY IMPORTANT
      ActivateClient; //makes SCAR find your runescape screen
      ClickDTM; //Runs through our ClickDTM procedure from up above
    end. //use a period after this end because it ends your whole program

  8. #8
    Join Date
    Aug 2007
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Dusk thank you so much!

    I had no idea how important the "{.include SRL/SRL.scar}" was.

    Rep+'d

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Help with clicking?
    By Kyle Undefined in forum OSR Help
    Replies: 20
    Last Post: 11-12-2008, 07:17 AM
  2. clicking on an npc
    By patman16 in forum OSR Help
    Replies: 3
    Last Post: 07-29-2008, 03:19 PM
  3. Not Clicking :(
    By skilld u in forum OSR Help
    Replies: 23
    Last Post: 06-09-2008, 10:20 PM
  4. Clicking
    By axel23 in forum OSR Help
    Replies: 3
    Last Post: 04-17-2007, 06:58 PM
  5. clicking on a NPC
    By legendaryhero90 in forum OSR Help
    Replies: 9
    Last Post: 02-25-2007, 10:53 PM

Posting Permissions

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