Created by IP-Drowner

I used to be like you about 1 hour ago. Until i read the include file which held Radial Walk i now understand that function and you will too if you read this tutorial. Ok, it is not necessary to read this little intro but you should if you like me. Well, that's the end of the introduction.

Requirements:[list][*]Basic knowledge of procedures/functions.[*]Knowledge of a few SRL functions/procedures.[*]Knowledge of variable types (Integer, String, Boolean, Float, Extended etc).

1 - What is Radial Walking:
Radial walking is another word for Mini Map walking. Using the Mini Map to walk is what Radial Walking basically is. Well, there you have it, now you know what Radial Walking is.

2 - What to set in Radial Walk:
This is the top part of the function:
SCAR Code:
`function RadialWalk(TheColor: Integer; StartRadial, EndRadial: Integer; Radius: Integer; Xmod, Ymod: Integer): Boolean;`
.

TheColor is the colour it will search for in the Runescape Mini Map.
StartRadial is the start point in where to find the colour in the Mini Map.
EndRadial is the end point in where to find the colour in the Mini Map.
Radius is how far from the centre outwards to find the colour.
XMod is just like the function's Mouse rx. Like Mouse(x,y,rx,ry);, which stands for RandomX. It is the randomness of making a straight line when moving the mouse to the found colour.
YMod is just like the function's Mouse ry. Like Mouse(x,y,rx,ry);, which stands for RandomY. It is the randomness of making a straight line when mocing the mouse to the found colour.

3.1 - Setting TheColor:
Ok, TheColor is just what colour to find while scanning the Mini Map. So if you want it to find the road colour you should use SRL's FindRoadColor function inside AutoColor.scar. So, i replace TheColor with FindRoadColor so it will find the road colour then will return an integer value. So, instead of using my own custom picked colour (The colour will change, we can't use Tolerance in Radial Walk) i will use FindRoadColor. So, the start of my Radial Walk looks like this:
SCAR Code:
`RadialWalk(FindRoadColor`

I didn't give much of a good explanation of Start Radial and End Radial at the beginning of this tutorial. Ok, Radial is like compass degrees. 90 is the degrees for East. 270 is the degrees for West. 0 is the degrees for North (You can't use 360) and 180 is the degrees for South. Now instead of putting in a string like 'n' or 's', we put in numbers. So, if i replace StartRadial with 90 (East) and EndRadial with 180 (South), it will search for TheColor in between East and South. Take a look at this picture for example:

It will search for TheColor in the shaded red area. Also, if i wanted it to search from South first i would replace 90 with 180 to it starts the search at 180 degrees and put the EndRadial as the original StartRadial (Thanks to Fawaki ). But i just want it to first search from East to south as i am walking SE.This should be easy enough to understand, so lets move on. My RadialWalk function now looks like:
SCAR Code:
`RadialWalk(FindRoadColor,90,180`

Radius is basically how far from the centre outwards to find TheColor. The furthest it can search for (yet the height of the Mini Map) is the number 72. So, If if i put 72 as the Radius, it will search the shaded red area of this image (pretending it was the Mini Map):

But if i put a lower value, the shaded red area of the image will decrease in width. Now i want it to search from the centre (the white dot in the middle of the Mini map, which is you by the way) straight to the edge of the Mini Map. So i replace radius with 72 and now he RadialWalk function in SCAR looks like this:
SCAR Code:
`RadialWalk(FindRoadColor,90,180,72`
But that isn't enough, move on to the next step to add the final stage.

3.4 - Setting XMod and YMod:
XMod and YMod is used in the function MouseFindNoFlag (Will not discuss here, Thanks to Zeph, it is MouseFindNoFlasg btw). So, this means if it clicks and no flag appears, it will move the mouse to a maximum of that random coordinates (x, y) until a flag does appear. Now that i want my RadialWalk to actually make sure a flag is there no matter what i will put XMod and YMod as 99 so it will move a maximum of 99 coordinates away inside the Mini Map and then click if it does not find the flag. Now m new RadialWalk function looks like this:
SCAR Code:
`RadialWalk(FindRoadColor,90,180,72,99,99);`

4 - Ending Notes/Credits:
Thanks for reading my tutorial on Radial Walking and now i hope you understand it as well as me now.
WT-Fawaki - Thanks for pointing one ting out
ZephyrsFury - Thanks for pointing another think out (<-You don't get the wink )

Enjoy

2. Good tut! One essential thing worth noting is: you can reverse the radius. In your example you use 90,180, which leads to a upwards tendency (towards 90), whereas using 180,90 will lead to a downwards direction (towards 180).

3. Retired Developer
Join Date
Apr 2007
Location
Perth, Australia
Posts
3,926
Mentioned
2 Post(s)
Quoted
0 Post(s)
Originally Posted by WT-Fakawi
Good tut! One essential thing worth noting is: you can reverse the radius. In your example you use 90,180, which leads to a upwards tendency (towards 90), whereas using 180,90 will lead to a downwards direction (towards 180).
Well actually its the other way round. The first parameter is startradial and the second is endradial. 90, 180 would start at 90 and go to 180 while 180, 90 would start at 180 and go to 90. But of course you would know that already.

EDIT: And also, xmod and ymod are in fact different from the ones in MMouse and Mouse. These ones are used by MouseFindFlag or MouseFindNoFlag (Can't remember which one). What it does is if it clicks the coordinates specified but the flag doesn't appear, it will add xmod and ymod to the original coords until it does appear.

4. Originally Posted by WT-Fakawi
Good tut! One essential thing worth noting is: you can reverse the radius. In your example you use 90,180, which leads to a upwards tendency (towards 90), whereas using 180,90 will lead to a downwards direction (towards 180).
I never knew that but it does make sense. Thanks for the information, i would surely add that to above.

Originally Posted by ZephyrsFury
Well actually its the other way round. The first parameter is startradial and the second is endradial. 90, 180 would start at 90 and go to 180 while 180, 90 would start at 180 and go to 90. But of course you would know that already.

EDIT: And also, xmod and ymod are in fact different from the ones in MMouse and Mouse. These ones are used by MouseFindFlag or MouseFindNoFlag (Can't remember which one). What it does is if it clicks the coordinates specified but the flag doesn't appear, it will add xmod and ymod to the original coords until it does appear.
I thought XMod and YMod were the same or similar. Oh well, thanks for the information. I will add that too in the first post.

5. Senior SRL Member
Join Date
Jun 2006
Posts
3,864
Mentioned
2 Post(s)
Quoted
0 Post(s)
I like it! The picture makes it really easy to understand . Good job.

6. Originally Posted by bullzeye95
I like it! The picture makes it really easy to understand . Good job.
Thank you bullzeye. Just about 1 hour before i posted this i had no idea how to use it, so i went through MapWalk.scar and i found LinearWalk was easy to understand. Then i scrolled up to RadialWalk and saw it wasn't much so different, then i added RadialWalk in my main loop and it worked

Now i hope every member that reads this will understand Radial Walking.

7. ~~Bump!

Getting it to the top of the list so people will notice it more and read through it and learn Radial Walking.

8. SRL Junior Member
Join Date
Mar 2008
Posts
16
Mentioned
0 Post(s)
Quoted
0 Post(s)
thanks for this tutorial, I can see how it would be useful in banking scripts and walkers to major cities, good job

9. Originally Posted by Killy
thanks for this tutorial, I can see how it would be useful in banking scripts and walkers to major cities, good job
Not just to major cities, but to everywhere

10. PvH
Banned
Join Date
Nov 2007
Location
The Netherlands
Posts
1,491
Mentioned
0 Post(s)
Quoted
0 Post(s)
thanks.. im working on a lumby -> draynor walker
if i create... i will credit you

EDIT:
i use this now:
SCAR Code:
`program Lumby_walker_to_draynor_bank;beginfunction RadialWalk(TheColor: Integer; StartRadial, EndRadial: Integer; Radius: Integer; Xmod, Ymod: Integer): Boolean;RadialWalk(5263960,0,90,72,1,-1): Boolean;end.`
just a start of the script...
it gets this error:
Line 3: [Error] (3:1): Identifier expected in script C:\Documents and Settings\patrick.UW-BAZA85BLPD4L\Bureaublad\scar\Scripts\lymby_walker_ to_draynor_bank.scar
yes i know.. i am a n00by scripter.. just started to learn..

11. jus to make shur...is this tut good for srl 14?

12. SRL Junior Member
Join Date
Dec 2007
Location
Los Angeles, California
Posts
606
Mentioned
0 Post(s)
Quoted
0 Post(s)
This is very well explained, but i don't know how to put RadialWalk(FindRoadColor,90,180,72,99,99); together in a script. Maybe add that to your tut? Like one more step on how to put that and make it so it will run?

13. all i can say is well done

i have been using scar for 2 weeks now and am going to apply for srl member status soon this shud help thanks ive never really looked at radial walk b4 this shud make my scripting so much easier rofl i bin using

if FindColorSpiralTolerance(x,y,orec,52,26,468,260,3) then
Mouse(x,y,2,2,true);

rofl

well need more srl functions

i can use forms tho

i belive i will improve my auto miner script

it is almost srl compliant

hmm or maybe i make a brill script that walks you to some where
autowalkytalky hmm brb *minimizes IE opens scar*

do i need so many posts to erm erm ooh ye thats it to become an srl member

14. SRL Junior Member
Join Date
Dec 2007
Location
Los Angeles, California
Posts
606
Mentioned
0 Post(s)
Quoted
0 Post(s)

15. Originally Posted by pvh
thanks.. im working on a lumby -> draynor walker
if i create... i will credit you

EDIT:
i use this now:
SCAR Code:
`program Lumby_walker_to_draynor_bank;beginfunction RadialWalk(TheColor: Integer; StartRadial, EndRadial: Integer; Radius: Integer; Xmod, Ymod: Integer): Boolean;RadialWalk(5263960,0,90,72,1,-1): Boolean;end.`
just a start of the script...
it gets this error:
Line 3: [Error] (3:1): Identifier expected in script C:\Documents and Settings\patrick.UW-BAZA85BLPD4L\Bureaublad\scar\Scripts\lymby_walker_ to_draynor_bank.scar
yes i know.. i am a n00by scripter.. just started to learn..
Remove function and Boolean, Integer, String from those lines.
Originally Posted by faster789
jus to make shur...is this tut good for srl 14?
Yes it is, also Revision 15 as-well.
Originally Posted by xraye
This is very well explained, but i don't know how to put RadialWalk(FindRoadColor,90,180,72,99,99); together in a script. Maybe add that to your tut? Like one more step on how to put that and make it so it will run?
What do you mean? Put it in the script when you want it to walk.
all i can say is well done

i have been using scar for 2 weeks now and am going to apply for srl member status soon this shud help thanks ive never really looked at radial walk b4 this shud make my scripting so much easier rofl i bin using

if FindColorSpiralTolerance(x,y,orec,52,26,468,260,3) then
Mouse(x,y,2,2,true);

rofl

well need more srl functions

i can use forms tho

i belive i will improve my auto miner script

it is almost srl compliant

hmm or maybe i make a brill script that walks you to some where
autowalkytalky hmm brb *minimizes IE opens scar*

do i need so many posts to erm erm ooh ye thats it to become an srl member
You're welcome.
Originally Posted by xraye

16. Originally Posted by IP-Drowner
Remove function and Boolean, Integer, String from those lines.

Yes it is, also Revision 15 as-well.

What do you mean? Put it in the script when you want it to walk.

You're welcome.

xray was right i triple posted 3 different posts didnt relise i cudnt (some friendly mo put them into one tho (still gave me an ifraction like ) so dont think xraye is loopy lol

(hmm i thought duble posting was when u posted same thing )

17. SRL Junior Member
Join Date
Apr 2008
Posts
38
Mentioned
0 Post(s)
Quoted
0 Post(s)
Nice post. I hope to learn to use radial walk in making my scripts.

18. Originally Posted by SeanJohn
Nice post. I hope to learn to use radial walk in making my scripts.
You can learn if you read the first post XD

19. SRL Junior Member
Join Date
Dec 2007
Location
Los Angeles, California
Posts
606
Mentioned
0 Post(s)
Quoted
0 Post(s)
Which include did you find this in?

Never mind i found it, it's in MapWalk.scar.

20. SRL Junior Member
Join Date
Jan 2008
Location
england
Posts
232
Mentioned
0 Post(s)
Quoted
0 Post(s)
i dont get it...every time i run this script, i get "Could not find Road Color!"

sum 1 please tel me what im doing wrong

{.include SRL/SRL.Scar}
begin
MakeCompass ('N')
end.

21. SRL Junior Member
Join Date
Dec 2007
Location
Los Angeles, California
Posts
606
Mentioned
0 Post(s)
Quoted
0 Post(s)
That just means it couldn't find the road color, make sure under settings runescape is as bright as it can get.

22. SRL Junior Member
Join Date
Jan 2008
Location
england
Posts
232
Mentioned
0 Post(s)
Quoted
0 Post(s)
yep, it is @ the brightest settings, it still dosent work

please view attatchment to see how i have it setup

23. SRL Junior Member
Join Date
Dec 2007
Location
Los Angeles, California
Posts
606
Mentioned
0 Post(s)
Quoted
0 Post(s)
Sorry i have no idea then Maybe try changing the 99s to 1s

24. SRL Junior Member
Join Date
Oct 2007
Location
brooklyn, new york
Posts
258
Mentioned
0 Post(s)
Quoted
0 Post(s)
Wow, great tut man. Thanks to you, I actually understand it 100% and how to incorporate it into scripts. However not with great ease, yet. I need to get used to it.

25. Originally Posted by xraye
Which include did you find this in?

Never mind i found it, it's in MapWalk.scar.
You don't need to include that, because SRL.scar includes it anyway. The same it does to all the files in the core folder section.
Originally Posted by ben600006
i dont get it...every time i run this script, i get "Could not find Road Color!"

sum 1 please tel me what im doing wrong

{.include SRL/SRL.Scar}
begin
MakeCompass ('N')
end.
Make sure it is on the brightest of settings, you include SRL and then try it. If not, set the rx and ry to 3 and 4 and the radius to 72.
Originally Posted by caustic
Wow, great tut man. Thanks to you, I actually understand it 100% and how to incorporate it into scripts. However not with great ease, yet. I need to get used to it.
Thanks. Any idea how to make it easier to explain?