Results 1 to 8 of 8

Thread: disregarding certain coordinates?

  1. #1
    Join Date
    Feb 2007
    Location
    USA
    Posts
    667
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default disregarding certain coordinates?

    I'm wondering if there is a way for SCAR to search the screen for a color, but disregard certain coords even if the color is found there.

    For example, I was just testing my autochopper in an area with both oaks and regular trees. The point that findcolor starts searching at is always the same I guess, so it kept finding the Oak tree rather than the tree I want it to chop. So I was thinking I could use getmousepos to get the coors there, but I dunno how I would code for scar to then ignore that area.

    I hope that made some sense.

  2. #2
    Join Date
    Dec 2006
    Location
    Ky
    Posts
    390
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hmm I'm not exactly sure what your saying but the reason it may have found the oak tree instead of the regular tree is because different color finding procedures search in different ways.. Center out ... Spiral..... left to right... I can't remember how findcolor works exactly
    SUMMER BREAK be back when I want to

  3. #3
    Join Date
    Feb 2006
    Location
    Belgium
    Posts
    3,137
    Mentioned
    3 Post(s)
    Quoted
    5 Post(s)

    Default

    Try my function in SRL maybe? FindColorSkipCoords

  4. #4
    Join Date
    Feb 2007
    Location
    USA
    Posts
    667
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ooh, that sounds like it might just be what I'm looking for Freddy. I did a ctrl+F search, but I must have missed that one.

  5. #5
    Join Date
    Feb 2006
    Location
    Belgium
    Posts
    3,137
    Mentioned
    3 Post(s)
    Quoted
    5 Post(s)

    Default

    Yeah, most people seem to miss it =P
    You basically enter a tpointarray of the coordinates you want to skip...
    (Of course with my FindColorSkipBox functions you can skip entire areas defined by 2 coordinates... however, the skippoint funciton seems to be more of a solution for ur problem

  6. #6
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by Freddy1990 View Post
    ...for ur problem...
    CAUGHT RED HANDED! Freddy

    Didn't even know that those functions existed
    Interested in C# and Electrical Engineering? This might interest you.

  7. #7
    Join Date
    Feb 2007
    Location
    USA
    Posts
    667
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    z0mg h3 us3d 4n 4bbrev14ti0n!

    Lol



    Edit: err... Freddy, can you explain what a TPoint Array is? Is it like regular arrays?

  8. #8
    Join Date
    Jan 2007
    Location
    USA
    Posts
    1,782
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I use Freddy's function A bunch

    Note To Freddy ** Its very helpful **

    Join the fastest growing merchanting clan on the the net!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. A Coordinates Clicker
    By Sfts3 in forum OSR Help
    Replies: 5
    Last Post: 10-11-2008, 09:34 PM
  2. DTM at mouseitem coordinates?
    By Mariuswbz in forum OSR Help
    Replies: 6
    Last Post: 08-15-2008, 02:19 PM
  3. Coordinates
    By NosePicker in forum OSR Help
    Replies: 2
    Last Post: 03-26-2008, 04:40 PM
  4. Coordinates
    By qweqwe in forum OSR Help
    Replies: 4
    Last Post: 03-01-2007, 03:53 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
  •