Results 1 to 11 of 11

Thread: colour help

  1. #1
    Join Date
    Dec 2011
    Posts
    183
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default colour help

    im kinda stuck, you see here, i want to move my mouse somewhere and click. There are two colour outcomes that i expect. i want this procedure to try to detect both. currently, it is only detecting the 1st outcome, and not together with the second. how can i overcome this?
    Simba Code:
    repeat    
    begin
             MoveMouse(123,123);
             wait (200)
             ClickMouse(123,123,1);
             wait (200)
            while not (FindColorSpiralTolerance (x, y, 1242424, 123, 123, 123, 1323, 2)) or //the 1st colour outcome
            not (FindColorSpiralTolerance (x, y, 12323453, 123, 123, 123, 1323, 2)) do //the 2nd colour outcome
            wait(200);
          end;
      until not(FindColorSpiralTolerance (x, y, 122352, 123, 123, 123, 1323, 2));
    end;

  2. #2
    Join Date
    Feb 2012
    Location
    SRL Jail
    Posts
    1,319
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    This is quite vague... but this means that the first color is being found, so the second one doesn't need to be found?

  3. #3
    Join Date
    Dec 2011
    Posts
    183
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    the 2nd outcome colour is put there because 90% of the time the 1st colour outcome never shows up.

  4. #4
    Join Date
    Dec 2011
    Posts
    183
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    this is my situation. i want to do this

    repeat (A and B) a random amount of times until it carries onto task C

    this is what is happening

    (A, B), (A, B), A and then stops. The colour B is not showing and therefore will not carry onto task C.
    I want to put a backup colour into B so it will successfully carry onto C. you get what i mean?

  5. #5
    Join Date
    Mar 2012
    Location
    Over there
    Posts
    840
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    What are you using to find the colors? I suggest you use ACA if the colors are close to each other.

    Here is an ACA video guide by YoHoJo you can watch if you aren't using it now. http://www.youtube.com/watch?v=98wVr...hannel&list=UL
    Last edited by Total; 04-18-2012 at 12:37 AM.

  6. #6
    Join Date
    Dec 2011
    Posts
    183
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    they arnt close together, so i have no idea whats wrong.
    this isnt for runescape, its for a rsps btw lol

  7. #7
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default

    Well some functions do not work in private servers. But what are you trying to find?

  8. #8
    Join Date
    Dec 2011
    Posts
    183
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yeh ik thats why i use colour finding :P
    basically A=chop the tree B=finding tree stump (for restarting the procedure) and C=detects full inventory.
    you see, when you are nearly finished cutting the tree down, the tree stump will sometimes not show and so the pattern can not always go A, B, A, B, C. The script can also not go A, B, A, C because it is skipping out on B. i want to put the colours of C into B aswell so it acts as a sort of a backup

  9. #9
    Join Date
    Mar 2012
    Location
    Over there
    Posts
    840
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    Why not continue when you gain exp instead of when you see the stump?

  10. #10
    Join Date
    Dec 2011
    Posts
    183
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by TotalKillz View Post
    Why not continue when you gain exp instead of when you see the stump?
    what? i dont get what you mean. you see, i click the tree then wait for stump to appear, then it can click on the tree again a repeat on and on until invfull

  11. #11
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default

    Why not do
    Simba Code:
    Repeat
        ChopFunction
         Until InvFull or TreeStumpFound;

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
  •