Results 1 to 20 of 20

Thread: color finder help

  1. #1
    Join Date
    May 2007
    Location
    Canada eh :p
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default color finder help

    hi, i have a problem where i set the colors on (Findcolor) to click on oak tree. I set the colors right and everything but sometimes it clicks on normal trees. Is this becuase the colors are very similar between the two trees? if so how can i make it so it will only cut oaks?.

  2. #2
    Join Date
    Dec 2006
    Posts
    281
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    ok well it could be that so to fix your problem you can just make it say,

    if IsUpText('ak') then
    begin
    ......... the rest of your procedure...

    it should only click on the tree if it finds ak oak would be god too maybee just not as reliable
    YoHoJo Is My Daddy
    We do not break any laws. We merely play "against the rules". We cheat. Thats what we are good at,thats what we do."
    WT-Fakawi

  3. #3
    Join Date
    May 2007
    Location
    Canada eh :p
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok ill try that thanks

  4. #4
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    add both..

    SCAR Code:
    if(FindColor(x,y,34242,coords))and
    IdUpText('ak')then
    Mouse(x,y,2,2,false)
    ChooseOption('chop');
    to be really careful
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  5. #5
    Join Date
    May 2007
    Location
    Canada eh :p
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok thanks dan

  6. #6
    Join Date
    Apr 2007
    Location
    California
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    If i'm not mistaken, you could use a type of FindObject, since that searches for the color and then checks for the text you tell it to check for. Kind of like findcolor and isuptext put together

  7. #7
    Join Date
    May 2007
    Location
    Canada eh :p
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok, i got it to not click on normal trees but now if it finds a normal tree it wont switch over to an oak, instead it just keeps moving mouse on same tree but not clicking it..


    EDIT: is there like a way to make it check a tree and if its not the right one it will search for the color in a different place.

  8. #8
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    SCAR Code:
    Procedure Cut;
    FindSymbol('tree');
    Mouse(x,y,2,2,true)
    if(FindColor(x,y,34242,coords))and
    IdUpText('ak')then
    Mouse(x,y,2,2,false)
    ChooseOption('hop');
    if(not(IsUpText('ak')))then
    KeyDown(chr(39));
    Wait(500+random(250));
    KeyUp(chr(39));
    Cut
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  9. #9
    Join Date
    May 2007
    Location
    Canada eh :p
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    procedure Timetochop;
    begin
    wait(3000+random(500));
    If (FindColor(x,y,56644,0,0,800,600))and
    IsUpText('ak')then
    Mouse(x,y,2,2,False)
    ChooseOption('hop');
    if(not(IsUpText('ak')))then /// get error here
    Keydown(chr(39));
    wait(500+random(300));
    KeyUp(chr(39));
    end;

    invalid number of parimeters in script. i think you spelt it wrong somewhere.

  10. #10
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    hmmmm..i cant see nething wrong
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  11. #11
    Join Date
    May 2007
    Location
    Canada eh :p
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    weird i keep getting an error

  12. #12
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    SCAR Code:
    procedure Timetochop;
    begin
    wait(3000+random(500));
    If (FindColor(x,y,56644,0,0,800,600))and
    IsUpText('ak')then
    Mouse(x,y,2,2,False)
    ChooseOption('hop');
    if(not(IsUpText('ak')))then /// get error here
    Keydown(chr(39));
    marktime(i);
    repeat
    wait(100);
    until (getmarktime(i)>500)
    KeyUp(chr(39));
    end;

    i got this from a previous thread
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  13. #13
    Join Date
    May 2007
    Location
    Canada eh :p
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    im still haveing trouble with this

    it moves mouse to the tree then not clicks and just stays on the 1 tree, it wont go to any other trees, so it just stays on the wrong one..

  14. #14
    Join Date
    Jun 2006
    Posts
    48
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    That would not work since it doesn't move the mouse before checking. This is what you would use:
    SCAR Code:
    if FindObj(x, y, 'ak', 56644, 1) then
    begin
         //Code here
    end;

  15. #15
    Join Date
    May 2007
    Location
    Canada eh :p
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok ill try that out .

    EDIT: hmm weird my screen just freezes when i try it

  16. #16
    Join Date
    May 2007
    Location
    baltimore, md
    Posts
    836
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    you could just findcolor and use is uptext then if it is false make it rotate screen

    SCAR Code:
    procedure Timetochop;
    begin
    wait(3000+random(500));
    If (FindColor(x,y,56644,0,0,800,600))and
    IsUpText('ak')then
    Mouse(x,y,2,2,False)
    ChooseOption('hop');
    if (not(isuptext('ak'))) then
    begin
    MakeCompass(whatever);
    marktime(i);
    repeat
    wait(100);
    until (getmarktime(i)>500)
    KeyUp(chr(39));
    end;

  17. #17
    Join Date
    May 2007
    Location
    Canada eh :p
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i guess i could do that but wouldnt that be more detecable?

  18. #18
    Join Date
    May 2007
    Location
    baltimore, md
    Posts
    836
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    not really i mean everything has a chance of bieng detected its mostly what other people see because they do the reporting which causes jagex to moniter you

  19. #19
    Join Date
    May 2007
    Location
    Canada eh :p
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yea i guess you have a point there

  20. #20
    Join Date
    May 2007
    Location
    Canada eh :p
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well turns out it was my scar version all along.. i tried 2.03 and findobj worked perfect thanks gillbz and everyone else for helping.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Need An Axe Head Finder/Color
    By kooldude in forum OSR Help
    Replies: 2
    Last Post: 05-17-2007, 09:45 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
  •