Results 1 to 3 of 3

Thread: Finding Color

  1. #1
    Join Date
    Feb 2013
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default Finding Color

    Hey I'm decently new at this and I'm trying to write a script, but I can't get past this one part so hopefully one of you guys knows how to do this.

    How would you have the bot log out if it can't find a specific color on the screen?

  2. #2
    Join Date
    Feb 2013
    Location
    Narnia
    Posts
    615
    Mentioned
    8 Post(s)
    Quoted
    252 Post(s)

    Default

    post youre code, with code tags, and ill show you what it looks like

    View my OSR Script Repository!


    Botted to max
    Guides: How to Report Bugs to the Scripter
    ~~~~ Moved to Java. Currently Lurking ~~~~

  3. #3
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by BinaryHero View Post
    Hey I'm decently new at this and I'm trying to write a script, but I can't get past this one part so hopefully one of you guys knows how to do this.

    How would you have the bot log out if it can't find a specific color on the screen?
    You could use something like:

    Simba Code:
    if not FindColorTolerance(x, y, 169454,  MIX1, MIY1, MIX2, MIY2, 35) then
      Logout;

    You can modify that depending on where you want to look for the colour. The MI in MIX1, MIY1 stands for Main Intentory, so this will search for the colour in the inventory.

    If you wanted to look on the main screen you would use MSX1, MSY1. If you wanted to look on the Mini Map you would use MMX1, MMY1 etc.

    Hope this helps

Thread Information

Users Browsing this Thread

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

Posting Permissions

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