Page 1 of 3 123 LastLast
Results 1 to 25 of 63

Thread: RadialWalk | Easy-To-Understand

  1. #1
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default RadialWalk | Easy-To-Understand

    Using Radial Walk
    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

    3.2 - Setting StartRadial and EndRadial:
    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

    3.3 - Setting Radius:
    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
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  2. #2
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    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).
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  3. #3
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by WT-Fakawi View Post
    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. #4
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by WT-Fakawi View Post
    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.

    Quote Originally Posted by ZephyrsFury View Post
    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.
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  5. #5
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

    I like it! The picture makes it really easy to understand . Good job.

  6. #6
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by bullzeye95 View Post
    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.
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  7. #7
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    ~~Bump!

    Getting it to the top of the list so people will notice it more and read through it and learn Radial Walking.
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  8. #8
    Join Date
    Mar 2008
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks for this tutorial, I can see how it would be useful in banking scripts and walkers to major cities, good job

  9. #9
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by Killy View Post
    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
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  10. #10
    Join Date
    Nov 2007
    Location
    The Netherlands
    Posts
    1,490
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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;
    begin
    function 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
    what should i add/fix?
    yes i know.. i am a n00by scripter.. just started to learn..

  11. #11
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

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

  12. #12
    Join Date
    Dec 2007
    Location
    Los Angeles, California
    Posts
    606
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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. #13
    Join Date
    Apr 2008
    Location
    Northwest england
    Posts
    1,179
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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
    and does loadsacool script
    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. #14
    Join Date
    Dec 2007
    Location
    Los Angeles, California
    Posts
    606
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Dude double posting is bad, tipple posting... Your probably going to get your post count reset.

  15. #15
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by pvh View Post
    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;
    begin
    function 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
    what should i add/fix?
    yes i know.. i am a n00by scripter.. just started to learn..
    Remove function and Boolean, Integer, String from those lines.
    Quote Originally Posted by faster789 View Post
    jus to make shur...is this tut good for srl 14?
    Yes it is, also Revision 15 as-well.
    Quote Originally Posted by xraye View Post
    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.
    Quote Originally Posted by waddo View Post
    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
    and does loadsacool script
    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.
    Quote Originally Posted by xraye View Post
    Dude double posting is bad, tipple posting... Your probably going to get your post count reset.
    What are you talking about?
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  16. #16
    Join Date
    Apr 2008
    Location
    Northwest england
    Posts
    1,179
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by IP-Drowner View Post
    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.

    What are you talking about?
    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. #17
    Join Date
    Apr 2008
    Posts
    38
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Nice post. I hope to learn to use radial walk in making my scripts.

  18. #18
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by SeanJohn View Post
    Nice post. I hope to learn to use radial walk in making my scripts.
    You can learn if you read the first post XD
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  19. #19
    Join Date
    Dec 2007
    Location
    Los Angeles, California
    Posts
    606
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Which include did you find this in?

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

  20. #20
    Join Date
    Jan 2008
    Location
    england
    Posts
    232
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    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')
    RadialWalk(FindRoadColor,50,110,70,99,99);
    end.

  21. #21
    Join Date
    Dec 2007
    Location
    Los Angeles, California
    Posts
    606
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    That just means it couldn't find the road color, make sure under settings runescape is as bright as it can get.

  22. #22
    Join Date
    Jan 2008
    Location
    england
    Posts
    232
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    yep, it is @ the brightest settings, it still dosent work

    please view attatchment to see how i have it setup

  23. #23
    Join Date
    Dec 2007
    Location
    Los Angeles, California
    Posts
    606
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Sorry i have no idea then Maybe try changing the 99s to 1s

  24. #24
    Join Date
    Oct 2007
    Location
    brooklyn, new york
    Posts
    258
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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. #25
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by xraye View Post
    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.
    Quote Originally Posted by ben600006 View Post
    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')
    RadialWalk(FindRoadColor,50,110,70,99,99);
    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.
    Quote Originally Posted by caustic View Post
    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?
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Some homework. Let's see if you can understand it, I can't...
    By NightBlade in forum Blogs and Writing
    Replies: 8
    Last Post: 02-12-2009, 01:45 AM
  2. Don't understand what this error means
    By mexicoman100 in forum OSR Help
    Replies: 4
    Last Post: 12-03-2008, 04:12 PM

Posting Permissions

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