Results 1 to 20 of 20

Thread: Finding Rock error

  1. #1
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Finding Rock error

    Hey guys ,
    I was wandering if someone can help me with my problem;
    I use FindObjCustom to find my rock that I want to mine and in this case its iron rocks..in varrock east mines. What the problem is that it keeps clicking things that are the close to the color but its not clicking rocks, its clicking the ground. And not only that, it's suprisingly also getting confused with the magic game tab and clicking that..How can I make my script ONLY click the rock with that color and not anything else with a similar color? I tried to reduce the tolerance MUCH as possible. Here is the part of the script that messes up...and can you guys also tell me if the Getblacktextmessage will actually work in this script?
    Please be detailed as much as possible!
    Thanks ALL help would be repped and aappreciated!!

    Here is the part of the script that messes up (as mentioned above);
    SCAR Code:
    procedure ClickRock;
    begin
      Replylaugh;
      if not FindObjCustom(x, y, ['ocks', 'ine'], [3030370], 3)then
      wait(950 +random(200));
      if FindObjCustom(x, y, ['ocks', 'ine'], [3030370], 3)then
      Mouse(x, y, 1, 1, True);
      Makesurepick;
      FindGas;
      Leveled;
      Myrandom;
    end;
     
    procedure MinedaRock;
    var MiningTime : integer;
    begin
      MakeCompass('N');
      SetAngle(True);
      repeat
        if Not(LoggedIn) then exit;
        ClickRock;
        MarkTime(MiningTime);
        repeat
          Wait(250);
        until FindBlackChatMessage('anage') or FindBlackChatMessage('vailable') or (timefrommark(MiningTime) > (WaitperRock +random(250)));
      until InvFull;
      if InvFull then
      begin
        writeln( 'Inventory Full walking to bank.' );
      end;
    end;

  2. #2
    Join Date
    May 2007
    Location
    Ohio
    Posts
    2,296
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Im confused. it not clicking iron? but copper or silver? or its it not even a ore? err... the ground?

  3. #3
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    its sometimes clicks the iron rock, and sometimes clicks the ground and ALSO WEIRDLY sometimes clicks the magic game tab. But it doesnt click other rocks like coppor or anything...just either the iron rock, ground or magic game tab...please help?

  4. #4
    Join Date
    Aug 2007
    Location
    Hawaii
    Posts
    3,880
    Mentioned
    7 Post(s)
    Quoted
    152 Post(s)

    Default

    Quote Originally Posted by faster789 View Post
    its sometimes clicks the iron rock, and sometimes clicks the ground and ALSO WEIRDLY sometimes clicks the magic game tab. But it doesnt click other rocks like coppor or anything...just either the iron rock, ground or magic game tab...please help?
    Thats because the ground, or the game tab has the same color as the rock, so its clicking it.


    So maybe use findcolorsspiraltolerance; ?
    Faith is an oasis in the heart which will never be reached by the caravan of thinking.

  5. #5
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by kingarabian View Post
    Thats because the ground, or the game tab has the same color as the rock, so its clicking it.


    So maybe use findcolorsspiraltolerance; ?
    FindObj contains Spiralling.
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  6. #6
    Join Date
    Dec 2006
    Location
    Program TEXAS home of AUTOERS
    Posts
    7,934
    Mentioned
    26 Post(s)
    Quoted
    237 Post(s)

    Default

    SCAR Code:
    if not FindObjCustom(x, y, ['ocks', 'ine'], [3030370], 3)then
      wait(950 +random(200));
      if FindObjCustom(x, y, ['ocks', 'ine'], [3030370], 3)then


    wtf?

    use marktime

  7. #7
    Join Date
    Aug 2007
    Location
    Hawaii
    Posts
    3,880
    Mentioned
    7 Post(s)
    Quoted
    152 Post(s)

    Default

    Quote Originally Posted by P1NKY View Post
    SCAR Code:
    if not FindObjCustom(x, y, ['ocks', 'ine'], [3030370], 3)then
      wait(950 +random(200));
      if FindObjCustom(x, y, ['ocks', 'ine'], [3030370], 3)then


    wtf?

    use marktime
    Yea me to lol, I was like wtf, but I Wasnt sure.
    Faith is an oasis in the heart which will never be reached by the caravan of thinking.

  8. #8
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    lol rather than saying that can u guys explain why its bad?? and what do you mean by marktime? and wow...my thread isnt still answered..

  9. #9
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i want to see:
    SCAR Code:
    Replylaugh;
      Makesurepick;
      FindGas;
      Leveled;
      Myrandom;

    im sure the problem is there


  10. #10
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    hmmm but then where do i put if FindObjCustom(blah blah)? And Dont you think I need a "if not FIndObjCustom(blah blah)...and if I put a (if not function) what shud I put under that...because if the script doesnt find no ore in any rock , i want it to wait until it does find one...what do i do to the script for it to do that? Please HELP and REP

  11. #11
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Add me On msn kotsz@live.nl := Problem solved:=true
    ~Hermen

  12. #12
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by Hermpie View Post
    Add me On msn kotsz@live.nl := Problem solved:=true
    ok thanks, but LOL i already have you added

  13. #13
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Name?
    ~Hermen

  14. #14
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

  15. #15
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    I would suggest adding IsUpText, becuase sometimes when you have mouse after a procedure it will click anything.
    Sometimes IsUpText stops it from doing that.
    As I like to say:
    Better safe than sorry

  16. #16
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by NaumanAkhlaQ View Post
    I would suggest adding IsUpText, becuase sometimes when you have mouse after a procedure it will click anything.
    Sometimes IsUpText stops it from doing that.
    As I like to say:
    Better safe than sorry
    yep, guess wat?? Im guna use a TPA ooooo you got owned lol jokes. Yep, I've kinda mastered TPA arrays and all that, so I'm planning to use that for my find rock.

  17. #17
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Kl

  18. #18
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by NaumanAkhlaQ View Post
    Kl
    yep and please read your pm i sent u..

  19. #19
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Ok i'm editing it it will take some time.

    Bear with me .

  20. #20
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by NaumanAkhlaQ View Post
    Ok i'm editing it it will take some time.

    Bear with me .
    Lol thanks a lot.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 09-23-2008, 03:37 AM
  2. Finding Minimap mine rock color...
    By Drakan in forum OSR Help
    Replies: 16
    Last Post: 05-08-2008, 04:31 PM
  3. Help with rock finding procedure
    By Gwallunit in forum OSR Help
    Replies: 2
    Last Post: 04-21-2007, 03:03 PM
  4. ROck CRabs
    By ripmeganewb in forum RS3 Outdated / Broken Scripts
    Replies: 0
    Last Post: 03-21-2007, 04:01 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
  •