Results 1 to 2 of 2

Thread: VarrockRadialRoadWalk

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

    Default VarrockRadialRoadWalk

    Originally by WT-Fakawi and Wizzup? Small thing added by n3ss3s

    It actually makes not too much difference from RRW (well not any) EXCEPT,
    you all know the gray walls of varrock? On minimap its gray(same color as the gray road) and it is 5 pixels wide, and theres white line on the both side which is NOT same coloured as players' white dot.

    So, VarrockRadialRoadWalk doesnt make any difference from the normal, except it doesnt click the walls! the "any difference" sounds small but the thing is really quite important. I think I am right you dont wanna see your accs clicking a frigging wall in varrock when you wake up?

    I tested it and it worked great.

    SCAR Code:
    {*******************************************************************************
    function VarrockRadialRoadWalk(TheColor: Integer; StartRadial, EndRadial: Integer;
      Radius: Integer; Xmod, Ymod: Integer): Boolean;

    By: ORIGINALLY by WT-Fakawi and Wizzup?, small thing added by n3ss3s
    Description: Does the same thing except is made for varrock:
    It avoids clicking the walls because they have the same color.
    Comments: Especially for varrock east miners.
    *******************************************************************************}


    function VarrockRadialRoadWalk(TheColor: Integer; StartRadial, EndRadial: Integer;
      Radius: Integer; Xmod, Ymod: Integer): Boolean;
    var
      Fx, Fy, SR, ER, i, X1, Y1: Integer;
    begin
      SR := StartRadial;
      ER := EndRadial;
      if (RoadColorChecker) then
        if (DebugRadialRoad) then
          WriteLn(' THROUGH RADIALROADWALK=  ---> ' + IntToStr(RoadColor));
      if (SR = ER) then
      begin
        if(not(SR = 0))then
        begin
          SR := SR - 1;
          ER := ER + 1;
        end else
        begin
          SR := SR;
          ER := ER + 2;
        end;
      end
      else if (StartRadial < EndRadial) then
      begin
        repeat
          for i := StartRadial to EndRadial do
          begin
            x1 := Round(Radius * Sine(i)) + 646;
            y1 := Round(-Radius * Cose(i)) + 84;
            if Not LoggedIn then Exit;
            if (FindColor(x, y, TheColor, X1, Y1, X1 + 1, Y1 + 1)) then
            begin
              if(FindColorCircleTolerance(Fx, Fy, 16250871, x, y, 5, 10))then
              begin
                Writeln('Oh noes! We tried to clickie a wall!');
                Writeln('Me likey not clicking wall :(');
                Writeln('Exitting VarrockRadialRoadWalk');
                Exit;
              end else
              begin
                MouseFindNoFlag(X,Y,Xmod,Ymod);
                Result := True;
                CountFlag(10);
                Exit;
              end;
            end;
          end;
          Radius := Radius - 4;
        until (Radius <= 1);
      end else
      begin
        if (StartRadial > EndRadial) then
        begin
          repeat
            for i := StartRadial downto EndRadial do
            begin
              x1 := Round(Radius * Sine(i)) + 646;
              y1 := Round(-Radius * Cose(i)) + 84;
              if Not LoggedIn then Exit;
              if (FindColor(x, y, TheColor, X1, Y1, X1 + 1, Y1 + 1)) then
              begin
                if(FindColorCircleTolerance(Fx, Fy, 15723511, x, y, 5, 10))then
                begin
                  Writeln('Oh noes! We tried to clickie a wall!');
                  Writeln('Me likey not clicking wall :(');
                  Writeln('Exitting VarrockRadialRoadWalk');
                  Exit;
                end else
                begin
                  MouseFindNoFlag(X,Y,Xmod,Ymod);
                  Result := True;
                  CountFlag(10);
                  Exit;
                end;
              end;
            end;
            Radius := Radius - 4;
          until (Radius <= 1);
        end;
      end;
    end;

  2. #2
    Join Date
    Apr 2007
    Location
    Australia
    Posts
    4,163
    Mentioned
    9 Post(s)
    Quoted
    19 Post(s)

    Default

    Nice idea, those walls are annoying. It would be cool if it found the wall, and if it found the road as well it would click on the road.....hmm maybe using ColorSkipBox or whatever? Might look into it

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
  •