Results 1 to 3 of 3

Thread: FindBrownRoadColor fails:(

  1. #1
    Join Date
    Nov 2007
    Location
    The Netherlands
    Posts
    1,490
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default FindBrownRoadColor fails:(

    Hey everyone,
    As you (might) know,
    I am working on a Tutorial Island Runner.
    Now I want to walk from the master chef to the quest guide,
    Using autocolor for roadcolor finding and radialwalk for clicking.
    I did this also for underground, and that worked.
    But this keeps on failing.
    Can someone please tell me what I am doing wrong?
    I'll rep++ you if you can fix my problem
    Here is a picture of where I want to walk.
    I need to walk to the red arrow direction

    Here is my function:

    SCAR Code:
    program test;
    {.include SRL/SRL.scar}

    function FindBrownRoadColor: Integer;
    var
      GC, a, l, TestColor, Red, Green, Blue: integer;
    var
      P:array of Tpoint;
    begin
      GC := 4681598;
      Flag;
      FindColorsSpiralTolerance(MMCX, MMCY, P, GC, MMX1, MMY1, MMX2, MMY2, 140);
      l:=GetArrayLength(P);
      for a:= 0 to l-1 do
      begin
        if rs_OnMinimap(P[a].x,P[a].y) then
        begin
          TestColor := GetColor(P[a].x,P[a].y);
          if SimilarColors(TestColor,GC,140) then
          begin
            ColorToRGB(TestColor, Red, Green, Blue);
            if InRange(Red - Green, 5, 33) then if Red <= 120 then
              if InRange(Green - Blue, 17, 58) then
                if InRange(Red - Blue, 30, 75) then if Blue <= 45 then
                  if GetColor(P[a].x + 5, P[a].y + 5) = TestColor then
                    if GetColor(P[a].x + 3, P[a].y + 3) = TestColor then
                      if GetColor(P[a].x, P[a].y + 5) = TestColor then
                        if GetColor(P[a].x + 5, P[a].y) = TestColor then
                          if GetColor(P[a].x, P[a].y + 3) = TestColor then
                            if GetColor(P[a].x + 3, P[a].y) = TestColor then
                              if GetColor(P[a].x + 5, P[a].y + 3) = TestColor then
                                if GetColor(P[a].x + 3, P[a].y + 5) = TestColor then
                                begin
                                  Result := TestColor;
                                  WriteLn('BrownRoadColor = ' + IntToStr(TestColor));
                                  Exit;
                                end;
          end;
        end;
      end;
      WriteLn('Could not find BrownRoadColor!');
      Result := 0;
    end;

    begin
      SetupSRL;
      ActivateClient;
      FindBrownRoadColor;
    end.

    Thanks a lot, PvH

  2. #2
    Join Date
    May 2007
    Location
    NSW, Australia
    Posts
    2,823
    Mentioned
    3 Post(s)
    Quoted
    25 Post(s)

    Default

    Make it click the arrow.... NAH DAH!!

    BMP3 should handle the nub arrow.

  3. #3
    Join Date
    Nov 2007
    Location
    The Netherlands
    Posts
    1,490
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Nah, Arrow didn't work at all.
    I fixed the autocolor a few minutes ago
    I'll release it to public test corner^^
    Thanks for your help anyway

    PvH

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How Much Google Fails
    By Harry in forum News and General
    Replies: 13
    Last Post: 01-31-2009, 05:40 AM
  2. Who fails more?
    By JuKKa in forum The Bashing Club / BBQ Pit
    Replies: 18
    Last Post: 08-31-2008, 04:56 AM
  3. FindBrownRoadColor on Tut Island
    By PvH in forum Research & Development Lounge
    Replies: 0
    Last Post: 07-02-2008, 01:22 PM
  4. RS fails again..
    By uncfan1119 in forum RuneScape News and General
    Replies: 8
    Last Post: 11-19-2007, 03:21 AM
  5. script fails when an old man comes!
    By asdfasdfasdf in forum OSR Help
    Replies: 8
    Last Post: 03-14-2007, 03:38 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
  •