Results 1 to 7 of 7

Thread: Pick the colour closest

  1. #1
    Join Date
    Jan 2017
    Posts
    3
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default Pick the colour closest

    Hey I was just wondering if you can get it to select the closest colour to you.

    Code:
      tCol.create(2971983, 280, 196, 0);
      if (not tCol.findAllIn(AREA_MS, TPA)) then
        exit;
      ATPA := FloodFillTPA(TPA);
      SortATPASize(ATPA, true);
      HumanMMouse(middleTPA(ATPA[0]), 0, 0);
      if (waitUptext('Yew', 100)) then
        fastClick(Mouse_Left);
        sleep(1000);
    I can get it to click on a yew tree but soon as another one spawns it jumps off and selects the other tree just need it to select the closest one to it. Thanks!

  2. #2
    Join Date
    Jun 2013
    Location
    Scranton
    Posts
    496
    Mentioned
    5 Post(s)
    Quoted
    220 Post(s)

    Default

    Closest relative to what? Atm it looks like you are sorting the atpa from largest to smallest, and moving to the first index ([0])

  3. #3
    Join Date
    Jan 2017
    Posts
    3
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by jstemper View Post
    Closest relative to what? Atm it looks like you are sorting the atpa from largest to smallest, and moving to the first index ([0])


    Sorry mate extremely new to this stuff basically started, I am playing alora and saw your thieving one and basically turned it into a being able to cut and bank yew logs, it is working but the only problem is that when I am cutting a yew tree and a new yew tree spawns it automatically jumps over to the next one. If you could help in a private message or something like that I would highly appreciate it.

  4. #4
    Join Date
    Jun 2013
    Location
    Scranton
    Posts
    496
    Mentioned
    5 Post(s)
    Quoted
    220 Post(s)

    Default

    Quote Originally Posted by ItsMeDiva View Post
    Sorry mate extremely new to this stuff basically started, I am playing alora and saw your thieving one and basically turned it into a being able to cut and bank yew logs, it is working but the only problem is that when I am cutting a yew tree and a new yew tree spawns it automatically jumps over to the next one. If you could help in a private message or something like that I would highly appreciate it.
    sounds like you need to make a function that waits until you are done cutting the current one. Or at least be able to recognize whether or not you are cutting, so you can decide what to do next based off of that

  5. #5
    Join Date
    Jan 2017
    Posts
    3
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by jstemper View Post
    sounds like you need to make a function that waits until you are done cutting the current one
    Could you possibly help with that as you seem to be very good at what you do.

  6. #6
    Join Date
    Jun 2013
    Location
    Scranton
    Posts
    496
    Mentioned
    5 Post(s)
    Quoted
    220 Post(s)

    Default

    Quote Originally Posted by ItsMeDiva View Post
    Could you possibly help with that as you seem to be very good at what you do.
    meh not really, but I will meet you in game. read pm

  7. #7
    Join Date
    Mar 2014
    Posts
    195
    Mentioned
    4 Post(s)
    Quoted
    92 Post(s)

    Default

    add this to your color finding.
    Simba Code:
    SortATPAFrom(ATPA, Point(MMCX,MMCY));
    SortATPAFromFirstPoint(ATPA, Point(MMCX,MMCY));
    adjust the point to the center of your main screen, and change the atpa name. to click the closest color to you
    although this is using srl-6, might be slightly different in AeroLib
    @ItsMeDiva

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
  •