Results 1 to 4 of 4

Thread: Get Color

  1. #1
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default Get Color

    If I have a base color or dtm or something, and i want it to find that DTM and then get the color, could i use x,y, like this
    SCAR Code:
    If findcolor(x,y,LogC,MIY1, MIY1, MIX2, MIY2)then
      wait(1000)
      MMouse(x,y,3,3)
      wait(500+random(500))
     until(IsUpText('ak'))
      NLC:= GetColor(x,y)
    This looks for my oak color, and then looks to make sure it has ak out of Oak Logs, and then gets the color from that, will this work well?

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  2. #2
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    That looks like it would work... but you should use FindObj instead of FindColor and IsUpText.

  3. #3
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    So it will get the color?

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  4. #4
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Yes it will get the color at about where your mouse is. Although I recommend using GetMousePos(x, y); before you do the blah:= GetColor... because you have a randomness of 3 pixels, so the color might be off a little.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 07-31-2007, 07:23 PM
  2. Useing grass color as road color??????
    By ronny.m.p in forum OSR Help
    Replies: 7
    Last Post: 04-28-2007, 09:42 PM
  3. its not looking for a color.....
    By acevampire in forum OSR Help
    Replies: 7
    Last Post: 03-19-2007, 09:43 PM
  4. [COLOR="Red"]UPDATE![/COLOR] [2|14|07]
    By StK Squenc in forum RS has been updated.
    Replies: 4
    Last Post: 03-05-2007, 10:34 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
  •