Results 1 to 3 of 3

Thread: Need tut, Script help as well!

  1. #1
    Join Date
    Apr 2007
    Posts
    224
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Need tut, Script help as well!

    Hey guys, i would realy love it if you can post be a good object finding {tut} please , or you can tell me how to make my mouse move faster and find the object. When i start Eg.

    SCAR Code:
    program New;
    {.include SRL/SRL.scar}

    var
      x, y,i: integer;

    procedure find;
    begin
    FindObjCustom(x, y, ['Spi','ce'], [7559758, 12303300], 20);
    Wait(100+random(100));
    Mouse(x, y, 2, 2, true);
    end;

    begin
      Wait(1000);
      find;
    end.

    I expect it to find that color and object and click on it. But when i try it my mouse moves very slowly and hardly ever finds it.

  2. #2
    Join Date
    Jul 2007
    Location
    Norway.
    Posts
    1,938
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    program New;
    {.include SRL/SRL.scar}
     
    var
      x, y,i: integer;
     
    procedure find;
    begin
      if FindObjCustom(x, y, ['pice'], [7559758, 12303300], 20) then begin
        Wait(100 + random(100));
        GetMousePos(X, Y);
        Mouse(x, y, 0, 0, true); // Since you've already moved your mouse there.
      end;
    end;
     
    begin
      SetupSRL; // This is what you forgot. Allways call SetupSRL once.
      ActivateClient;
      Wait(300 + random(500));
      Find;
    end.

    Drag the crosshairs over the client window and enjoy.

    Edit: If it fails to find it, try lowering the tolerance and pick more colors of the object you're trying to find.

  3. #3
    Join Date
    Apr 2007
    Posts
    224
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It work's. Your one hell of a great blok

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
  •