Results 1 to 6 of 6

Thread: Radial Walk

  1. #1
    Join Date
    Jun 2007
    Posts
    1,312
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Radial Walk

    OK, look...don't post me a link, don't tell me to use the search button. I swear, I'll come at you with a spoon if you do, because as a Junior Member, I cannot access real material, and can only see "MoveMouseSmooth" "Sendkeys" and other things that get you banned within the hour. Hopefully that'll be changed within a week though...anyways...

    I would appreciate it if someone would post me an example of Radial, and summarize it in a few words.

    Thankyou
    Active only during the Summer...

  2. #2
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    Basically, RadialWalk looks for a specific color (with tolerance, of course) on the minimap within two degree marks specified by you. Imagine the minimap being a circle (it is, after all) with 0 degrees at the top going all the way around to 360, or 0, again. You specify between which two degree marks you'd like to look for the color, as well as how far you want to look (the radius), and SCAR will search for that color and click where it finds it.

    I hope this helped, and that the permissions will be fixed shortly also.
    :-)

  3. #3
    Join Date
    Jun 2007
    Location
    I'm not sure...
    Posts
    581
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Use yakman's radial walking guide. (a scar script.)
    Go here to learn how.
    ---------------------------------------------------------


    Pm me if you need any math functions made. Me = l0ving t3h mathz

    ---------------------------------------------------------

  4. #4
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    The permissions are messed up again for Junior Members which is why he made this topic.
    :-)

  5. #5
    Join Date
    Jun 2007
    Location
    I'm not sure...
    Posts
    581
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ahhh... Idk that... 1 sec:
    Quote Originally Posted by WT-Fakawi View Post
    RadialWalk is a High Level Map Walker. It finds a color in any given direction, plants the flag and waits until the flag is within a fixed distance of the minimapcenter, in other words, it walks towards the flag. RadialWalk combines three low level routines: color-finding, mapwalking and flag waiting.

    RadialWalk uses simple geometry to scan for TheColor. It works with arcs, slices of a circle. It scans the MiniMap both clockwise and counterclockwise. While this may seem futile, it is yet the most powerful feature of RadialWalk. With the clockwise/counterclockwise setting, you can give the function "direction tendencies".


    See Picture 1.


    RadialWalk examples


    1.RadialWalk(TheColor,0,90,70,xmod,ymod)
    This will scan TheColor from North to East, starting at 70 distance and ending at the MiniMap Center (MMCX and MMCY)

    2.RadialWalk(TheColor,0,90,40,xmod,ymod)
    This will scan from North to East, starting at 40 distance and ending at the MiniMap Center.

    3.RadialWalk(TheColor,90,0,70,xmod,ymod)
    This will scan from East to North, starting at 70 distance and ending at the MiniMap Center.

    4.RadialWalk(TheColor,90,0,40,xmod,ymod)
    This will scan from East to North, starting at 40 distance and ending at the MiniMap Center.

    5.RadialWalk(TheColor,320,400,40,xmod,ymod)
    This will scan from NorthEast to NorthWest, starting at 70 distance and ending at the MiniMap Center.

    6.RadialWalk(TheColor,320,400,40,xmod,ymod)
    This will scan from NorthEast to NorthWest, starting at 40 distance and ending at the MiniMap Center.

    7.RadialWalk(TheColor,320,400,40,xmod,ymod)
    This will scan from NorthEast to NorthWest, starting at 20 distance and ending at the MiniMap Center.

    8,9 and 10. Scan from NorthWest to NortEast
    .

    11.RadialWalk(TheColor,160,200,70,xmod,ymod)
    This will scan from SouthSouthEastto SouthSouthWest, starting at 70 distance and ending at the MiniMap Center.

    12.RadialWalk(TheColor,200,160,70,xmod,ymod)
    This will scan from SSWto SSE, starting at 70 distance and ending at the MiniMap Center.

    13.RadialWalk(TheColor,10,200,70,xmod,ymod)
    This will scan from NNEto SSW, starting at 70 distance and ending at the MiniMap Center.

    13 and 14.. Here you can clearly see the difference in behaviour. While 13 will move you player in an Upwards direction, 14 does the exact opposite; it move you Player Downwards, since it starts scanning at the bottom halve of the Minimap.

    to complete the Picture:

    16. Scans from WNW to E, 17 from E to WNW. 18 and 19 from WSW to N with different Radius. 20 and 21 from SW to NW and reverse


    This is how it is described inside the Manual:

    function RadialWalk(TheColor: Integer; StartRadial, EndRadial: Integer; Radius: Integer; Xmod, Ymod: integer): Boolean;
    By: WT-Fakawi & Wizzup?
    Description: Walks TheColor from StartRadial to EndRadial for Radius Distance
    Valid Arguments:
    TheColor:= Any Color, but Road- or WaterColor will do fine
    StartRadial/EndRadial := Any number between -360 to 1440. 0=N,90=E,180=S,270=W. DO NOT USE NUMBERS UNDER -360 or ABOVE 1440
    Radius:= Distance from the centre of minimap, i.e. how far away the mouse clicks. Use numbers 20-72
    XMod, YMod := deviation from MouseFindFlag. -2 to 2.



    TheColor
    This argument is pretty self-explanatory. It is the color we are looking for. No furhter explanation is needed, I hope.


    StartRadial/EndRadial

    I guess by now you know what they do...

    Radius
    Distance from Minimap Center where the scanning BEGINS. RadialWalk works inwards: it starts at radius and scans towards the center.

    Xmod/Ymod
    The deviation from MouseFindFlag. RadialWalk uses MouseFindFlag to place the flag on the minimap. MouseFindFlag will click as long as it takes on the minimap until the flag appears. It will add Xmod and Ymod to each click. Fill in 1,1 for Xmod and Ymod, and the mouse will gradually move to the lower right corner of the minimap one pixel each click. See the table below.

    MouseFindFlag deviations.

    To end, here is a working example of a Special Version RadialWalk inside a small script. Use it with Paint. Set Paint a target window, select the pen, and run the script! It will demonstrate the use of RadialWalk.

    I have also enclosed some working examples of Special VersionLinearWalk, the "WindScreen" scanner.

    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, True);
                     ReleaseMouse(X1, Y1, True);
                  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, True);
                     ReleaseMouse(X1, Y1, True);
                     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, True);
                   ReleaseMouse(x1, y1, True);
          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, True);
                   ReleaseMouse(X1, Y1, True);
          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, -1, 0);
      RadialWalk(0, 90, 120, 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.
    More on this subject:

    • function FindColorRadius(var x, y: Integer; Color, CenterX, CenterY, sAngle, eAngle, minRadius, maxRadius, Tolerance: Integer): Boolean;
      By: masquerader
    • procedure AWalk2(Angle, Radius, Color: Integer);
      By: Starblaster100
    • procedure MapWalk(var x, y: Integer; WalkAng, WalkDist: Integer);
    • procedure AngleWalker(gAngle: Extended; gDistance: Integer);
      By: based on Sythes AWalk/Liquid
    • procedure RoadWalk(RColor: Integer; Dir: String);
      By: Stupid3ooo
    It was in tut's 4 intermediates...
    ---------------------------------------------------------


    Pm me if you need any math functions made. Me = l0ving t3h mathz

    ---------------------------------------------------------

  6. #6
    Join Date
    Jun 2007
    Posts
    1,312
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok, thanks rotflmfwao, I favorited that tutorial, then I couldn't access it...I went and sent a message to fakawi, I suppose that the tutorial limiting was just a mistake =/ Well now I know how it works, I swear, I must have read that thing 10 times yesterday and didn't understand anything.
    Hope you become a member soon Metho, this isn't the first time you've helped me for sure ^^

    I think I'm going to copy this into notepad before something else thats crazy happens...Like Junior Members being banned from Scripting Help...The scary thing is that that would make perfect sense. "Z0MG I D0NT UNDERSTANDS ZEH WIZZUP? MINER!"
    Active only during the Summer...

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. radial walk help plz?
    By dark4mdawn in forum OSR Help
    Replies: 6
    Last Post: 09-03-2007, 07:48 AM
  2. radial walk
    By coolguy14136 in forum OSR Help
    Replies: 3
    Last Post: 03-13-2007, 07:42 PM
  3. radial walk help
    By del_signo in forum OSR Help
    Replies: 2
    Last Post: 02-27-2007, 12:31 AM

Posting Permissions

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