Quote from: Cheesehunk on July 19, 2006, 08:41:44 AM
RadialRoadWalk(RoadColor, StartRadial, EndRadial, Radius, XMod, Ymod);
RoadColor: Pretty self exlpanitory. Make sure you have the script or user Get the RoadColor somehow.
StartRadial: The MiniMap is like a circle, and that is how RadialRoadWalk works. 0 degrees is the top, 90-east, 180-North, 270-West. The start radial is where you want the script to start looking for the RoadColor. For our example, we will say you are walking East. So we are gonna make a StartRadial of about 70 (MiniMap autorotates, so its not perfectly 90 for better finding.)
EndRadial: Where you want the script to stop searching for the RoadColor. Since we are walking east, lets have the EndRadial 105.
Radius: Radius is how far out you want the script to look for the RoadColor. For long distance walking (Lumbridge to Draynor on the open Road,) I use 45-50. However, when I have the script going by a bank, I don't want to overshoot it, so I use about 30-35 for short walking. For our example we will use 40.
XMod, YMod: These are not very important, and I have not perfected them, but I know what they do. Xmod, and Ymod are the distance you want to move your mouse in Pixels if the flag does not show up. They work together to make different angles. YOu would keep these at 0,0 if you don't want the mouse to move if the flag does not appear, it will just keep clicking in the same spot. They range from -1,-1 to 1,1. We will use 0,0 for our example.
Our example for walking east, searching for the RoadColor from 70 to 105 at a radius of 40.
RadialRoadWalk(RoadColor, 70, 105, 40, 0, 0);
If you wanted to search for the RoadColor from 105 to 70 all you have to do is spot them around like this:
RadialRoadWalk(RoadColor, 105, 70, 40, 0, 0);
There is also a LinearRoadWalk, it is the same as RadialRoadWalk, except it walks the excact angle given on the RoadColor. it is good for getting out of places with lots of RoadColor, such as falador.
Both of them, at loading screens, check to see if there is a new RoadColor, and will automatically replace the RoadColor with it. Jagex made it so at every loading screen just the RoadColor changes, but Fakawi was able to master walking, and create this.