Results 1 to 9 of 9

Thread: RadialWalk

  1. #1
    Join Date
    Apr 2007
    Posts
    994
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default RadialWalk

    Code:
    program walktogeneralstore;
    {.include srl/srl.scar}
    
    const
    TheColor= 395004; {This colour is the colour of the items dropped (colour red) in minimap}
    
    var
    x,y : integer;
    
    procedure togeneralstore;
    begin
      RadialWalk(TheColor,0,360,50,0,1)
      writeln ('finished radialwalk 1')
      RadialWalk( TheColor , 65, 105, 65, 0, 1);
      writeln ('finished radialwalk 2')
      FindSymbol(x, y ,'quest');
      Mouse(x, y, 5, 5, True);
      writeln ('finished final procedure symbol')
      Flag;
      writeln ('finished radialwalk all')
    end;
    
    begin
    setupsrl;
    cleardebug;
    togeneralstore;
    end.
    What is wrong with the above codes radial walk? I try to make the player walk from outside the big bank in varrock to a dropped item near the fountain. It is not about the radius, but everytime, it cant click the dropped item on the minimap. Instead, it just goes straight to the symbol clicking.

    Can somebody help?
    [QUOTE]<GoF`> oh no its Raymooond
    <Raymooond> Heya
    <GoF`> is it ray or some other ray?
    <LeeLokHin> No idea
    <LeeLokHin> Raymond, what's the game you like the most?
    <Raymooond> Runescape
    <-- LeeLokHin has kicked Raymooond from #srl (Faker.)[/QUOTE]

  2. #2
    Join Date
    May 2007
    Location
    NSW, Australia
    Posts
    2,823
    Mentioned
    3 Post(s)
    Quoted
    25 Post(s)

    Default

    Change the Colour to:


    Ethier:
    FindRoadColor;
    FindVarrockRoadColor;
    FindFallyRoadColor;

    Depends on the area, if not in varrock or fally then use FindRoadColor.
    And :O

    And add fail safes -.- look at Zephry's walking guide.

  3. #3
    Join Date
    Apr 2007
    Posts
    994
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default



    Yes, i know about fail safes, its just that this script is supposed to buy logs from the general store and burn logs until the big bank, and follow the trail of ashes in the minimap back to the general store.

    Seeing that this is my first script, i would like to get the basic walking done. Symbol walking, colour finding, i have down fine, but i cant seem to get radialwalk down.

    Thanks for the reply anyway, and i have read zephry's failsafes/ whole guide

    Is there anyone who can figure out what is wrong? Maybe I need to add a bit of tolerance to my colour?
    [QUOTE]<GoF`> oh no its Raymooond
    <Raymooond> Heya
    <GoF`> is it ray or some other ray?
    <LeeLokHin> No idea
    <LeeLokHin> Raymond, what's the game you like the most?
    <Raymooond> Runescape
    <-- LeeLokHin has kicked Raymooond from #srl (Faker.)[/QUOTE]

  4. #4
    Join Date
    Jun 2007
    Location
    Belgium
    Posts
    333
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    do you set the color before you run the script, cause the one your using is not a static one.

  5. #5
    Join Date
    Sep 2007
    Posts
    415
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    is your angle right? if i'm correct what you have will be taking you east..other than that, idk..

    if that whole idea doesn't work for you, you could try using the mapwalk tut and use DDTMs, which will probably work better for where you are going
    Quote Originally Posted by That guy that wrote forefeathers
    <munklez>haha im too lazy, girls annoy me
    <munklez> they always wanna like, do stuff
    <munklez> and i just wanna program
    <munklez> and they always take all my money

  6. #6
    Join Date
    Apr 2007
    Location
    Michigan -.-
    Posts
    1,357
    Mentioned
    2 Post(s)
    Quoted
    4 Post(s)

    Default

    just try wider angles and longer radius until it is found, then narrow until you find the "sweet spot"
    METAL HEAD FOR LIFE!!!

  7. #7
    Join Date
    Apr 2007
    Posts
    994
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Uhm, its 360 degrees and 65 radius, which is nearly the whole ruescape minimap. If the colour is not static.. I would <3 you forever

    [QUOTE]<GoF`> oh no its Raymooond
    <Raymooond> Heya
    <GoF`> is it ray or some other ray?
    <LeeLokHin> No idea
    <LeeLokHin> Raymond, what's the game you like the most?
    <Raymooond> Runescape
    <-- LeeLokHin has kicked Raymooond from #srl (Faker.)[/QUOTE]

  8. #8
    Join Date
    Aug 2007
    Posts
    52
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    0 to 360 is pretty much the whole minimap.

    65 * 65 * 3.14 = 13,266

    72 * 72 * 3.14 = 16,277

    81%. Which means it isn't accurate.

    The minimap colors change all the time. Pretty much everytime you log in. When I use radial walk, i use the autocolor functions built into srl, or I get the color from some coordinates at the beginning, and then use them later on. But if you do this, you have to make sure each player starts in the proper place, or the color will be off.


    Procedure Login;
    begin
    LoginPlayer;
    wait(1000+random(1000));
    FindNormalRandoms;
    MakeCompass('n');
    SetAngle(true);
    Colorrrrr := getcolor(609,91); <--- Storing the color so I can use it later in the script.
    end;

    Later in the script:

    RadialWalk(Colorrrrr, 120, 90, 72, 0, 1);

    I wouldn't know how to do what you are trying to do, unless you just picked the color at the beginning of every run.
    My programs: Master Thiefer v0.01

    -Currently working on autofarmer-

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

    Default

    Try replacing your procedure with this:
    SCAR Code:
    procedure togeneralstore;
    begin
      if RadialWalk(TheColor,0,360,50,0,1) then
        writeln ('finished radialwalk 1')
      if RadialWalk( TheColor , 65, 105, 65, 0, 1) then
        writeln ('finished radialwalk 2')
      if FindSymbol(x, y ,'quest') then
      begin
        Mouse(x, y, 5, 5, True);
        writeln ('finished final procedure symbol')
        Flag;
      end;
    end;

    Use that and see what Debug messages you get.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. RadialWalk?
    By StrikerX in forum OSR Help
    Replies: 2
    Last Post: 04-19-2008, 09:25 AM
  2. RadialWalk Help
    By Esteban in forum OSR Help
    Replies: 12
    Last Post: 06-13-2007, 02:33 AM
  3. Replies: 3
    Last Post: 06-11-2007, 08:40 PM
  4. Help W/ RadialWalk
    By IEatJ00erBaybees in forum OSR Help
    Replies: 6
    Last Post: 05-29-2007, 01:51 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
  •