Results 1 to 13 of 13

Thread: tolerence help

  1. #1
    Join Date
    Mar 2009
    Location
    Ireland
    Posts
    111
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default tolerence help

    This my first script using FindColorSpiralTolerance.

    Im using the Runescape Client with a fully SVN updated SCAR and SRL.

    Everytime i run instead of clicking on the ore it just goes to the top left cornor of the client.

    my script is:
    Code:
    program my_power_miner;
    
    {.include SRL\SRL.scar}
    {.include SRL\SRL\skill\Mining.scar}
    
    const
         rockwait= 12000;
         ore_color= 1910335;
    var
         x,y:integer;
    
    procedure miner;
    begin
         repeat
                  FindColorSpiralTolerance(x, y, ore_color, MSx1, MSy1, MSx2, MSy2, 40);
                  WriteLn('Found Ore');
                  MoveMouseSmooth(x, y);
                  ClickMouse(x, y, true);
                  Wait(rockwait+Random(500));
         until(invfull);
         if (invfull = true) then
    end;
    
    procedure Drops;
         var
         I:integer;
    begin
         if (InvFull) then
         begin
                For I := 2 To 28 Do
                DropItem(I);
         end;
    end;
    
    begin
         SetupSRL;
         repeat
               miner;
               drops;
         until(false);
    end.
    Any help or comments gladly accepted!!!

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

    Default

    Did you target the Runescape client?

  3. #3
    Join Date
    Mar 2009
    Location
    Ireland
    Posts
    111
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yes i did

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

    Default

    pascal Code:
    program my_power_miner;
    {.include SRL\SRL.scar}
    {.include SRL\SRL\skill\Mining.scar}

    const
      rockwait = 12000;
      ore_color = 1910335;
    var
      x, y:integer;

    procedure Miner;
    begin
      repeat
        if FindColorSpiralTolerance(x, y, ore_color, MSx1, MSy1, MSx2, MSy2, 40) then
        begin
          WriteLn('Found Ore');
          Mouse(x, y, 5, 5, true);
          Wait(rockwait + Random(500));
        end else
          Writeln('Didnt find Ore');
      until(InvFull);
    end;

    procedure Drops;
    var
      I: integer;
    begin
      if InvFull then
      begin
        for I := 2 to 28 do
          DropItem(I);
      end;
    end;

    begin
    SetupSRL;
    repeat
      miner;
      drops;
    until(false);
    end.

    Try this.
    You had it clicking at x, y even if it didn't find the rock and thereby didn't get any coords.
    Btw. you shouldn't use MoveMouseSmooth as Mouse is less banable

  5. #5
    Join Date
    Mar 2009
    Location
    Ireland
    Posts
    111
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    its says its finding the ore but now it clicks up the topright hand cornor.

    i think its clicking on the dagger .ico at the top right cornor.

    so if i used FindColoredAreaTolerance what could i set the pixels to so itll click on bigger patches of colour

  6. #6
    Join Date
    Aug 2008
    Location
    !!LOL!!
    Posts
    247
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    um u shud add activateclient just right after setup srl

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

    Default

    Are you absolutely sure you targeted the Client by dragging to the Runescape client?

  8. #8
    Join Date
    Aug 2008
    Location
    !!LOL!!
    Posts
    247
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Frt View Post
    Are you absolutely sure you targeted the Client by dragging to the Runescape client?
    u didnt put Acitvateclient it wont work unles u activateclient

  9. #9
    Join Date
    Mar 2009
    Location
    Ireland
    Posts
    111
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well i dragged the crosshairs over the title bar of the runescape client

  10. #10
    Join Date
    Mar 2009
    Location
    Ireland
    Posts
    111
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by hackncrack1 View Post
    u didnt put Acitvateclient it wont work unles u activateclient
    i usually activated it by hand

    i see what you mean by it though. it is handy.
    ill include it in my scipts from now on.

    but this doesnt solve my problem

    p.s. sorry for double post
    Last edited by mc_teo; 03-21-2009 at 04:51 PM. Reason: double post

  11. #11
    Join Date
    Aug 2008
    Location
    !!LOL!!
    Posts
    247
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    np there is the edit utton tho

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

    Default

    Quote Originally Posted by mc_teo View Post
    well i dragged the crosshairs over the title bar of the runescape client
    You should drag it into the game - not just the browser.

  13. #13
    Join Date
    Mar 2009
    Location
    Ireland
    Posts
    111
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i put the tolerence down to 20.

    and tried the stand out orange of copper

    and it works

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
  •