HairyDuncan2
2007-09-19 03:31:14
Hi everyone,
This tutorial was originally made for someone asking how to use RadialWalk. I wrote three quarters of it in a Private Message, then accidently pressed back in my browser. Lost it all. Now i'm writing it all again for everyone to view.
I put it in the beginners section, as that is who it is for. Beginners.
Ok let's begin.
Contents
I - About RadialWalk
II - RadialWalk and RadialRoadWalk
III - The color
IV - Start radial and end radial
V - Radius
VI - Hints and tips
RadialWalk is a very useful, accurate and undetectable function which allows you to accurately walk on the minimap. Instead of just finding a color and clicking it, RadialWalk looks at a certain length from the middle of the minimap (radius), and in between two spots at that length (Start radial and end radial).
The only downside to RadialWalking is you have to be in approximately the same spot each time you want to use it.
I'm sure this is very confusing for you, so let's go through everything.
Ok, I will post up a RadialWalk function:
RadialWalk( {TheColor} , 20, 30, 40, {Xmod}, {Ymod});This is the standard RadialWalk. It does it's stuff but only clicks on a place, if that place contains the color specified by {TheColor}.
This is RadialRoadWalk:
RadialRoadWalk(RoadColor, 20, 30, 40, {Xmod}, {Ymod});As you can see, the only difference is the start of the function. If you want to walk on roads I reccomend using this. I'm not to sure if there's a real reason anymore, but if your walking on roads use it.
Note: These two RadialWalks, are not the only variations of the function. There are more, but i'm pretty sure that, for now, these are the only two you'll be using. If you want to have a look at the others, open up the SRL manual and have a squiz.
Ok, now for the color. You have to set a color so, when scar finds the spot you specified, it checks if the color you specified is there. If it is, then it will click, if it doesn't find the color then it will not click.
If you are using RadialRoadWalk (and walking on a road), then set the color to: FindRoadColor. This is variable already set in SRL, so you do not have to declare it in your var section. It does exactly as it says, finds the road color. So if you have that as your color, then it would check the spot you specified for the color of the road, on the minimap.
So, if you add together what you have currently learnt, we should now have:
RadialWalk( {TheColor}
or
RadialRoadWalk(RoadColorI will post the function up again so you do not have to scroll.
RadialWalk( {TheColor} , 20, 30, 50, {Xmod}, {Ymod});After you have declared the functions name (RadialWalk or RadialRoadWalk), you have the color and the you have start radial and end radial. To understand start radial and end radial you have to visualise a compass. Considering you know basic facts about a compass, the direction the needle is pointing is measured in degrees measured from 0 - 360.

There's a diagram if your confused.
So whatever way the needles facing, that can be measured in degrees. Ok time to use our imaginations again (hard work all this imagining stuff). Let's pretend we have a compass with two needles. A two needled compass, you say? Yep, a two needled compass. Ok so you have a compass with two needles. Let's also pretend we can move the neeedles at will. Let's move one needle to the 90 degrees, which is east on the compass in runescape or 3 o'clock on a standard analog clock. Let's move the other needle, to 180, which is south on runescape or 6 o'clock on a clock. Believe it or not you have just created, an imaginary start radial and end radial.
The start radial is 90 degrees and the end radial is 180 degrees. The same applies in runescape.
The start radial and end radial is the place SCAR will look between for the color you specified. I you put your start and end radial as 90 and 180 degrees, and your color as FindRoadColor, then SCAR would look for the color of the road, in between the eastern most point and the southern most point on the minimap.
So now we have:
RadialRoadWalk(FindRoadColor, 90, 180
or
RadialWalk({TheColor}, 90, 180Radius, simply put, is the amount to look up to from the center of the minimap. This must be quite confusing, so i'll show you what I mean. If I had my color as FindRoadColor, start radial as 90, end radial as 180 and radius as 50. This diagram shows you the path were SCAR would look for that color:

By duncanb
So scar would look anywhere where the red lines are for the road color. Simple.
Righto, you hopefully understand the way RadialWalk works, but how do you get the right numbers to put in. I'm about to tell you about, one of the best tools included in SRL. It is called Yakmans Radial Walking aid.
Before I tell you about it, you should open it up.
The default path is C:\Program Files\SCAR 3.11\includes\SRL\scripts
There is a SCAR file in their called Radial Walking aid. Open it. Run the script and you should get a form that looks like this:

Open up your runescape client and log in your player. Open the form back up and click the button that says capture from client. You should now get the same minimap that is open in your runescape client.
If you move your mouse over it in the form, then a red line should appear. Click where you would like to walk to on the minimap and the red line should stay still.
You should now see something like this in the top left corner of the form:

By duncanb
This should have numbers next to it. Input the Radius that is up in the part of the form I just showed you, into the box named Radius, just below the place that gives you the numbers. Then, on the minimap, click a little to the left of where you just clicked. Look in the top left corner of the form for the Radial. Input the Radial that is shown, into the Start Radial box. Click a little to the right of the place you first clicked. Get the Radial and input it into the end radial box.
Click the Show Path button and it should draw some red lines on the screen. This shows the place where SCAR will look for the color you specify. If you are happy with your options click the Print Procedure button, and in the box down the bottom it should print some code.
With the code, you should have a RadialWalk and a RadialRoadWalk. You should be using one of these. Copy and paste it into your script, and edit the color. Change {Xmod} and {Ymod} to 0, edit the color, and your done. Congrats you now know how RadialWalk works, and how to use it.
This was my first tutorial so post some feedback.
Good luck.