Results 1 to 9 of 9

Thread: FindRoadColor; And FindWaterColor;

  1. #1
    Join Date
    Aug 2007
    Location
    Hawaii
    Posts
    3,880
    Mentioned
    7 Post(s)
    Quoted
    152 Post(s)

    Default FindRoadColor; And FindWaterColor;

    Well yea both of those auto color functions are iffy. Sometimes they work and sometimes they dont. Any ideas why? And for alkharid, which is best to use, findroadcolor; or finddirtcolor;?
    Faith is an oasis in the heart which will never be reached by the caravan of thinking.

  2. #2
    Join Date
    Jul 2007
    Posts
    1,431
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Water works 100% of times. im sure. i think.

    About road, really depends where you try to use it. it works near lumbridge, north of falador etc.
    [CENTER][SIZE="4"]Inactive[/SIZE]I forgot my password[/CENTER]

  3. #3
    Join Date
    Jan 2008
    Location
    Alberta
    Posts
    727
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    When I made a script for Al-Kharid neither FindRoadColor; nor FindDirtRoadColor; worked for me, so just use AutoColorThis.

  4. #4
    Join Date
    Sep 2007
    Posts
    415
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yea i've noticed that running my script that sometimes it would log because it couldn't find the fally road color, and the only way to make it find it again is to totally close out SCAR and restart it
    Quote Originally Posted by That guy that wrote forefeathers
    <munklez>haha im too lazy, girls annoy me
    <munklez> they always wanna like, do stuff
    <munklez> and i just wanna program
    <munklez> and they always take all my money

  5. #5
    Join Date
    Jul 2007
    Posts
    1,431
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    This works aswell. it's nielsie's and Sumilion's ACA

    SCAR Code:
    function FindAlKharidRoadColor: Integer;
    var
      arP: TPointArray;
      arC: TIntegerArray;
      tmpCTS, i, arL: Integer;
      R, G, B: Integer;
      X, Y, Z: Extended;
    begin
      tmpCTS := GetColorToleranceSpeed;
      ColorToleranceSpeed(2);
      SetColorSpeed2Modifiers(0.43, 0.29);

      FindColorsSpiralTolerance(MMCX, MMCY, arP, 5668226, MMX1, MMY1, MMX2, MMY2, 7);
      if (Length(arP) = 0) then
      begin
        Writeln('Failed to find the color, no result.');
        ColorToleranceSpeed(tmpCTS);
        SetColorSpeed2Modifiers(0.2, 0.2);
        Exit;
      end;

      arC := GetColors(arP);
      ClearSameIntegers(arC);
      arL := High(arC);

      for i := 0 to arL do
      begin
        if (rs_OnMinimap(arP[i].x, arP[i].y)) then
        begin
        ColorToRGB(arC[i], R, G, B);

        if (R >= 112) and (R <= 147) and (G >= 106) and (G <= 145) and (B >= 71) and (B <= 101) then
        begin
            ColorToXYZ(arC[i], X, Y, Z);

            if (X >= 13.75) and (X <= 23.85) and (Y >= 14.94) and (Y <= 26.49) and (Z >= 8.39) and (Z <= 15.91) then
            begin
              Result := arC[i];
              Writeln('AutoColor = ' + IntToStr(arC[i]));
              Break;
            end;
        end;
        end;
      end;

      ColorToleranceSpeed(tmpCTS);
      SetColorSpeed2Modifiers(0.2, 0.2);

      if (i = arL + 1) then
        Writeln('AutoColor failed in finding the color.');
    end;
    [CENTER][SIZE="4"]Inactive[/SIZE]I forgot my password[/CENTER]

  6. #6
    Join Date
    Oct 2006
    Posts
    702
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i no theres a temp fix in members section, idk about free??
    "For it is not what goes into your mouth that will defile you; rather, it is what comes out of your mouth that defiles you." - Jesus of Nazareth

  7. #7
    Join Date
    Oct 2007
    Location
    medway.england
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Negaal View Post
    Water works 100% of times. im sure. i think.

    About road, really depends where you try to use it. it works near lumbridge, north of falador etc.
    water dosn't always work from catherby, it works maybe 20% there.

  8. #8
    Join Date
    Oct 2006
    Location
    finland, helsinki
    Posts
    2,501
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    the thing is... Im 60% sure that jagex has looked at our code. There was once it was +1 too much, in the RGB checking, to make it fail. Jagex has somebody to look at our code and edit their game to make our autocolors fail. I have encountered this twice. Once with fally road color and once with water.

    Code:
    • Narcle: I recall Jukka releasing a bunch of scripts like this before... Its how he rolls I think. rofl
    • Solarwind: Dude, you are like... t3h s3x.
    • Hy71194: JuKKa you're a machine! You released 3 scripts in 10 minutes! :O
    • benjaa: woah.... Jukka is the man Guildminer pwns all
    • NaumanAkhlaQ: And JuKKa Is my Her0!

  9. #9
    Join Date
    May 2007
    Posts
    663
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I know FindRoadColor doesn't work for squat in Edgeville - Only FindVarrockRoadColor does.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. FindRoadColor
    By Bobzilla69 in forum Research & Development Lounge
    Replies: 2
    Last Post: 07-03-2008, 07:17 AM
  2. FindRoadColor?
    By 3Garrett3 in forum OSR Help
    Replies: 7
    Last Post: 05-08-2007, 09:27 PM

Posting Permissions

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