Results 1 to 3 of 3

Thread: Help with a mining script

  1. #1
    Join Date
    Mar 2015
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default Help with a mining script

    So I have this for finding iron and clicking it, but it says no colors found even when trying several different iron colors. And yes, i did drag the little target to my rsps window:

    program IronMiner;
    {$I SRL-6/SRL.simba}

    function MineIron(): boolean;
    var
    X,Y:Integer;
    Begin
    result:=false;
    if mainscreen.findObject(x, y, 2964579, 21, ['Iron'], MOUSE_MOVE) Then
    begin
    wait(250);
    ClickMouse(X, Y, mouse_left);
    result:=true; // returns true if found and clicked on iron so loop can stop itself.
    end
    else writeln('iron not found'); // <- failsafe to prevent mouse clicking -1,-1 if iron not found.
    end;
    begin
    MouseSpeed := 15;
    repeat
    wait(100); // waits few ms before trying again
    until MineIron();
    end.

  2. #2
    Join Date
    Mar 2013
    Location
    Argentina
    Posts
    758
    Mentioned
    27 Post(s)
    Quoted
    365 Post(s)

    Default

    Quote Originally Posted by L4L0 View Post
    So I have this for finding iron and clicking it, but it says no colors found even when trying several different iron colors. And yes, i did drag the little target to my rsps window:

    program IronMiner;
    {$I SRL-6/SRL.simba}

    function MineIron(): boolean;
    var
    X,Y:Integer;
    Begin
    result:=false;
    if mainscreen.findObject(x, y, 2964579, 21, ['Iron'], MOUSE_MOVE) Then
    begin
    wait(250);
    ClickMouse(X, Y, mouse_left);
    result:=true; // returns true if found and clicked on iron so loop can stop itself.
    end
    else writeln('iron not found'); // <- failsafe to prevent mouse clicking -1,-1 if iron not found.
    end;
    begin
    MouseSpeed := 15;
    repeat
    wait(100); // waits few ms before trying again
    until MineIron();
    end.
    try putting the code between [/SIMBA][SIMBA]this
    pd: sorry, drunk posting
    Formerly known as Undorak7

  3. #3
    Join Date
    Jun 2014
    Location
    Lithuania
    Posts
    475
    Mentioned
    27 Post(s)
    Quoted
    200 Post(s)

    Default

    Quote Originally Posted by L4L0 View Post
    So I have this for finding iron and clicking it, but it says no colors found even when trying several different iron colors. And yes, i did drag the little target to my rsps window:

    program IronMiner;
    {$I SRL-6/SRL.simba}

    function MineIron(): boolean;
    var
    X,Y:Integer;
    Begin
    result:=false;
    if mainscreen.findObject(x, y, 2964579, 21, ['Iron'], MOUSE_MOVE) Then
    begin
    wait(250);
    ClickMouse(X, Y, mouse_left);
    result:=true; // returns true if found and clicked on iron so loop can stop itself.
    end
    else writeln('iron not found'); // <- failsafe to prevent mouse clicking -1,-1 if iron not found.
    end;
    begin
    MouseSpeed := 15;
    repeat
    wait(100); // waits few ms before trying again
    until MineIron();
    end.
    Upload a picture .png or .bmp format. It might findobject function not searching for small chunks of color, actually i dont know cause dont use it.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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