Results 1 to 4 of 4

Thread: Limited Search Area

  1. #1
    Join Date
    Jun 2014
    Location
    EastCoast
    Posts
    76
    Mentioned
    0 Post(s)
    Quoted
    31 Post(s)

    Default Limited Search Area

    How do i make findColorSpiralTolerance( x, y, 7698814, MSX1, MSY1, MSX2, MSY2, 3); search for an area that has a large amount of pixels. For instance i want to differentiate between the amount of grey pixels in iron armor versus that of the grey of iron wrapping a barrel. So i would like for Simba to be able to search for the color grey but only confirm the color was found if it filled a certain amount of pixels. Which would be something like 10 pixels tall/wide versus the 5/2 pixels the iron the barrel has.

  2. #2
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    You could use ATPAs and filter them by length I guess
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  3. #3
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Indeed, Look up TPAs and ATPA's they will do what you want. If no one else does il post a short example tomorrow.

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

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
  •