Results 1 to 12 of 12

Thread: findcoloursprialtolerance help pls!

  1. #1
    Join Date
    Dec 2007
    Location
    Malaysia
    Posts
    430
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default findcoloursprialtolerance help pls!

    ok for my smelter im trying to use find colour sprial tolerance but when my guy clicks on the furnace it goes to the bar menu and just says it cant find the steel colour can anyone help make me a steel findcoloursprialtolerance in the furnace menu thanks!!!

  2. #2
    Join Date
    Oct 2006
    Posts
    1,211
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well, first, there is a difference between FindColorSpiralTolerance and FindColorsSprialTolerance. FindColors will make a TPA, or basically it will store all the coords it finds with that color and tolerance. It would help if you posted your code too
    Extinct.

    Formally known as Drags111.

  3. #3
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    He never said anything about the s one.

  4. #4
    Join Date
    Dec 2007
    Location
    Malaysia
    Posts
    430
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok soz here is the code

    SCAR Code:
    Procedure smeltbars;
    begin
      if(not(LoggedIn))then Exit;
      writeln('going to choose the bars now');
      begin
        case LowerCase(Players[CurrentPlayer].Strings[0]) of
        'bronze':
        begin
          if(FindColorSpiralTolerance(x,y,2440270,34,436,55,437,10))then
          begin
            mouse(x,y,5,5,false);
            ChooseOption('X');
            wait(800+random(500));
            Typesend('14');
            wait(600+random(300));
            writeln('yay we made the bronze bars!!');
            wait(1000+random(300));
          end else
          begin
          writeln('crap we didnt make bronze bars logging out now');
          logout;
          exit;
        end;
      end;

        'steel':
        begin
          if(FindColorSpiralTolerance(x,y,2440270,574,574,613,575,20))then
          begin
            mouse(x,y,5,5,false);
            ChooseOption('X');
            wait(800+random(500));
            Typesend('14');
            wait(600+random(300));
            writeln('yay we made the Steel bars!!');
            wait(1000+random(300));
          end else
          begin
            writeln('crap we didnt make Steel bars logging out now...');
            logout;
            exit;
          end;
        end;
      end;
    end;
    end;

  5. #5
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    I would say it's because your steel color is the same as your bronze one

  6. #6
    Join Date
    Dec 2007
    Location
    Malaysia
    Posts
    430
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    nope sorry thats not it i changed the colour and the same thing happened

  7. #7
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Are your search area parameters right. You're searching in an area that 30x1 or something.

  8. #8
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    maybe after clicking the furnace you didn't wait enough for the smelting menu to pop up.

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  9. #9
    Join Date
    Dec 2007
    Location
    Malaysia
    Posts
    430
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by ZephyrsFury View Post
    Are your search area parameters right. You're searching in an area that 30x1 or something.
    i took 4 coords around the steel bar like a box then i took the first of both the first 2 coords of x and put them in the first 2 slots then took the 2nd two coords of y for the last 2 in the procedure is that correct?

  10. #10
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    You should put the first x and the first y in the first 2 parameters. Then the second x and the second y in the last 2 parameters.

    So if your points were (4, 6) and (23, 34) it would be:
    SCAR Code:
    FindColorSpiralTolerance(x, y, Colour, 4, 6, 23, 34, 0)

  11. #11
    Join Date
    Dec 2007
    Location
    Malaysia
    Posts
    430
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    hey zephyrusfury can i add you on msn and we can talk in there?

  12. #12
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Ok. PM me your address.

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
  •