Results 1 to 7 of 7

Thread: Radialwalk question

  1. #1
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Radialwalk question

    I've been reading on some radial walk tuts, and for road color, they say use "FindRoadColor, and it will find the road color automaticly, but that returns an unknown identifier error. Is there something else I'm supposed to be using?
    ~Footy
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  2. #2
    Join Date
    Dec 2011
    Location
    -bash
    Posts
    515
    Mentioned
    0 Post(s)
    Quoted
    27 Post(s)

    Default

    I'm actually using this in a script I am making, I believe the function is:
    Simba Code:
    function RadialWalk(TheColor:Integer; StartRadial, EndRadial:Integer; Radius:Integer; Xmod, Ymod:integer): Boolean;// By Wizzup? and WT-Fakawi.

    Here is a simulation by WT-Fakawi to show you how it works. Just drag the cross hairs on simba to paint and run the script and you will fall in love with radial walk, there is also linear walk 0.o:
    Simba Code:
    program RadialWalk;

    var x, y:integer;

    //----------------------------------------------------------------------------//

    function RadialWalk(TheColor:Integer; StartRadial, EndRadial:Integer; Radius:Integer; Xmod, Ymod:integer): Boolean;// By Wizzup? and WT-Fakawi.

    var i: Integer;
    var X1, Y1: integer;
    begin

      if StartRadial < EndRadial then
         begin
           repeat
               for i:=StartRadial to EndRadial do
                  begin
                     X1:=Round (  Radius * Sin (i * Pi / 180)) + 646;
                     Y1:=Round (- Radius * Cos (i * Pi / 180)) + 84;
                     MoveMouse(X1, Y1);
                     HoldMouse(X1, Y1, 1);
                     ReleaseMouse(X1, Y1, 1);
                  end;
              Radius:= Radius - 4;
            until Radius <= 1 ;
          end;

      if StartRadial > EndRadial then
         begin
           repeat
               for i:=StartRadial Downto EndRadial do
                  begin
                     X1:=Round (  Radius * Sin (i * Pi / 180)) + 646;
                     Y1:=Round (- Radius * Cos (i * Pi / 180)) + 84;
                     MoveMouse(X1, Y1);
                     HoldMouse(X1, Y1, 1);
                     ReleaseMouse(X1, Y1, 1);
                  end;
             Radius := Radius - 4;
           until Radius <= 1;
          end
    end;

    //----------------------------------------------------------------------------//

    function LinearWalk(TheColor : Integer; Direction : Integer; Radius : Integer; Xmod, Ymod : Integer) : Boolean;// By Wizzup? and WT-Fakawi.

    var
      i, j, StartRadial, EndRadial, InitRadius : Integer;
    var
      X1, Y1, Count : Integer;
    begin

      InitRadius := Radius;

      repeat
        StartRadial := 360 + Direction - Count;
        EndRadial   := 360 + Direction + Count;
        repeat
          for i := StartRadial to EndRadial do
          begin
                   X1:=Round (  Radius * Sin (i * Pi / 180)) + 646;
                   Y1:=Round (- Radius * Cos (i * Pi / 180)) + 84;
                   MoveMouse(X1, Y1);
                   HoldMouse(x1, y1, 1);
                   ReleaseMouse(x1, y1, 1);
          end;
          for i := EndRadial downto StartRadial do
          begin
                   X1:=Round (  Radius * Sin (i * Pi / 180)) + 646;
                   Y1:=Round (- Radius * Cos (i * Pi / 180)) + 84;
                   MoveMouse(X1,Y1);
                   HoldMouse(X1, Y1, 1);
                   ReleaseMouse(X1, Y1, 1);
          end;
          Radius := Radius - 4;
        until Radius <= 10;
        Radius := InitRadius;
        Count  := Count + 2;
      until ((StartRadial < 2) or (EndRadial > 720));

    end;

    //----------------------------------------------------------------------------//

    begin
      RadialWalk(0, 0, 80, 40, -1, -1);
      RadialWalk(0, 40, 50, 70, 0, -1);}
      RadialWalk(0, 165, 180, 70, -1, 0);
      RadialWalk(0,200, 130, 70, -1, -1);
      RadialWalk(0, 260, 140, 40, -1, -1);
      RadialWalk(0, 420, 300, 70, -1, -1);
      LinearWalk(0, 320, 70, 1, 1);}
    end.

  3. #3
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    i dont know if FindRoadColor is in SRL anymore. just create your own autocolor for the road. (its typically more accurate anyway)

  4. #4
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ill just use ACA then, thanks guys
    E: Im using radialwalk to go from the alhkarid bank to the tanner, but at times, the tanner map icon will go over where I need this to walk to. Is there a way to make sure it still walks to the right spot?
    Also, I need my radialwalk to search between 350 and 10 degrees, that small slice at the top of the map, but it clicks all around the map. How do I fix this?
    ~Footy
    Last edited by Footy; 08-08-2012 at 06:27 PM.
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  5. #5
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Edited last post with new question
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  6. #6
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    determine mouse position of desired radialwalk. check if the autocolor picks up your color in taht area. if not, then just use symbol walking.

    edit: also, use -10 to 10
    Last edited by x[Warrior]x3500; 08-08-2012 at 07:01 PM.

  7. #7
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks! Ill try that out!
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

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
  •