Results 1 to 15 of 15

Thread: Help making a script involving radial walking

  1. #1
    Join Date
    Jul 2007
    Location
    N O R
    Posts
    208
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help making a script involving radial walking

    Hello, I am a complete noob to scar scripting, god knows what made me want to try out a script like this... I have been trying to create a script, where you start at draynor bank first slot, it walks to the monks that can take you on the boat, then you will get off the boat, and walk to the ruins, then you will go inside, (because you are wearing your law tiara) and craft your runes, then you will rub your glory ammy, and it will teleport you back to draynor, then it will start over....

    I have got to the part where the player walks to the monks, and I am having trouble trying to figure out how to make the player click on the monks, because the monks robes are all so close to the same colors as the dock, I have even tried their heads but it still doesn't work. Sometimes just the radial walk its thrown off so the whole script fails... (That happens a lot actually) I am completly dumbstruck.

    Here is the script

    Code:
    program New;
    {.include SRL/SRL.scar}
    var
    a, b, c, d, e, f, g, h, i : integer;
    
    procedure setupvars;
    begin
    a:= 0;
    b:= 0;
    c:= 0;
    d:= 0;
    e:= 0;
    f:= 0;
    g:= 0;
    h:= 0;
    i:= 0;
    end;
    /////
    procedure declarebitmaps;
    begin
    end;
    /////
    procedure walktoboat;
    begin
    //
    RadialWalk(FindRoadColor, 30, 42, 51, 0, 0);
    //
    repeat
    a:= a + 1;
    if(FindSymbol(x,y,'quest')) then
    Mouse(x, y, 2, 2, true);
    Flag;
    until(a = 3);
    a:= 0;
    //
    RadialWalk(2330719, 29, 41, 34, 0, 0);
    //
    repeat
    a:= a + 1;
    if(FindSymbol(x,y,'farming spot')) then
    Mouse(x, y, 2, 2, true);
    Flag;
    until(a = 3);
    a:= 0;
    //
    repeat
    a:= a + 1;
    if(FindSymbol(x,y,'quest')) then
    Mouse(x, y, 2, 2, true);
    Flag;
    until(a = 3);
    a:= 0;
    //
    RadialWalk(2768978, 321, 333, 62, 0, 0);
    //
    repeat
    a:= a + 1;
    if(FindSymbol(x,y,'transportation')) then
    Mouse(x, y, 2, 2, true);
    Flag;
    until(a = 3);
    a:= 0;
    //
    If(Findcolor(x, y, 1981013, MSX1, MSY1, MSX2, MSX2)) then
    begin
    Mouse(x, y, 0, 0, false);
    wait(200 + random(50));
    ClickOption('ake-boat', 1);
    end else
    If(Findcolor(x, y, 2707059, MSX1, MSY1, MSX2, MSX2)) then
    begin
    Mouse(x, y, 0, 0, false);
    wait(200 + random(50));
    ClickOption('ake-boat', 1);
    end else
    If(Findcolor(x, y, 2575216, MSX1, MSY1, MSX2, MSX2)) then
    begin
    Mouse(x, y, 0, 0, false);
    wait(200 + random(50));
    ClickOption('ake-boat', 1);
    end;
    end;
    begin
    //activateclient;
    SetupSRL;
    setupvars;
    declarebitmaps;
    walktoboat;
    end.
    I am a huge noob with radialwalking, that is probably why, I only understand like 80% of my script(Example: I don't understand the flag; I just put it in there cause I saw it in someone else's radialwalking script)... lol

    any help or suggestions or tips or anything... would be great!!! Thanks in advance...

  2. #2
    Join Date
    Apr 2007
    Location
    Texas
    Posts
    1,668
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    flag will make the script wait until the red flag on the minimap is gone.

    a better one is FFlag(x) witch will wait untill you are x pixels form the flag.

    i think that it is built into radial walk, but it doesnt hurt adding it in.

    use the radial walk helper that is buolt into srl (in the scripts folder)
    [IMG]http://farm3.static.flickr.com/2120/2052732965_348f3629d0_o.jpg[/IMG]

  3. #3
    Join Date
    Jul 2007
    Location
    N O R
    Posts
    208
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thank you, I have learned what FFlag(x) and Flag are now, thanks to you.
    I have also used the radialwalk helper, but it just doesn't seem to work, I have modified my script.

    Sometimes it will just skip a step... I have also tried using bitmaps and autocoloring with the bit maps but have had 0% success. It is difficult because I need the player to walk on grass and the dock... Any help with bitmap autocoloring for radialwalking would be great, or just anything else that would help with what I am trying to do... Here is my updated script

    Code:
    program A;
    {.include SRL/SRL.scar}
    procedure setup;
    begin
    HighestAngle;
    MakeCompass('W');
    GameTab(11);
    wait(100 + random(50));
    SetRun(true);
    wait(100 + random(50));
    GameTab(4);
    end;
    procedure movetoboat;
    begin
    ///// mark1
    RadialWalk(FindRoadColor, 22, 38, 57, 0, 0);
    Flag;
    ///// mark2
    RadialWalk(2394734, 50, 66, 59, 0, 0);
    Flag;
    ///// mark3
    if(FindSymbol(x,y,'farming spot')) then
    begin
    Mouse(x, y, 2, 2, true);
    Flag;
    end else
    begin
    wait(300 + random(50));
    if(FindSymbol(x,y,'farming spot')) then
    begin
    Mouse(x, y, 2, 2, true);
    Flag;
    end else
    begin
    wait(300 + random(50));
    if(FindSymbol(x,y,'farming spot')) then
    begin
    Mouse(x, y, 2, 2, true);
    Flag;
    end;
    end;
    end;
    ///// mark4
    if(FindSymbol(x,y,'quest')) then
    begin
    Mouse(x, y, 2, 2, true);
    Flag;
    end else
    begin
    wait(300 + random(50));
    if(FindSymbol(x,y,'quest')) then
    begin
    Mouse(x, y, 2, 2, true);
    Flag;
    end else
    begin
    wait(300 + random(50));
    if(FindSymbol(x,y,'quest')) then
    begin
    Mouse(x, y, 2, 2, true);
    Flag;
    end;
    end;
    end;
    ///// mark5
    if(FindSymbol(x,y,'transportation')) then
    begin
    Mouse(x, y, 2, 2, true);
    Flag;
    end else
    begin
    wait(300 + random(50));
    if(FindSymbol(x,y,'transportation')) then
    begin
    Mouse(x, y, 2, 2, true);
    Flag;
    end else
    begin
    wait(300 + random(50));
    if(FindSymbol(x,y,'transportation')) then
    begin
    Mouse(x, y, 2, 2, true);
    Flag;
    end;
    end;
    end;
    end;
    begin
    SetupSRL;
    setup;
    movetoboat;
    end.
    Thanks for helping lordgreggreg, and thanks in advance to any1 else who wants to help!!

  4. #4
    Join Date
    May 2007
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    try using the monk robes with very low tolerance. i would try and use..

    If FindColor(x, y,Color) and (IsUpText'onk') then
    Begin;
    Mouse(x, y, 1, 1, False)
    ClickToContinue;
    ClickToContinue;
    ClickToContinue;
    Originally Posted by YoHoJo
    I like hentai.

  5. #5
    Join Date
    Jul 2007
    Location
    N O R
    Posts
    208
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok, thanks, I'll try that, but I have another problem... getting to the monks lol
    It is hard to use radialwalk because it is on grass and a dock, does anyone have any suggestions / scripts that I could use to get to the transport sign on the mini-map, then I could use llamaman's example and maybe be able to go on the boat?

    thanks

  6. #6
    Join Date
    May 2007
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i dont know how to walk, but fer failsafes, you can do, If FindSymbol'quest' then beginn radialwalk or something.o an rost, if u like the help +rep wud be nice ^^
    Originally Posted by YoHoJo
    I like hentai.

  7. #7
    Join Date
    May 2006
    Location
    Qld, Australia
    Posts
    223
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Good idea Llama, Also you could try
    SCAR Code:
    procedure ExampleWalk; //I like to make my stuff neat so I ended up making a procedure
    var
      Attempts: Integer;
    begin
      repeat
        RadialWalk(..);
        Attempts := Attempts + 1;
      until(FindSymbol(..) or (Attempts >= 5));
      if not FindSymbol(..) then
      begin
        Writeln('Error walking');
        TerminateScript;
      end;
    end;

    And perhaps you could even add that if it has the error walking to tele back to draynor and start again
    Haven't scripted in a while, Willing to proofread, test and provide feedback.

  8. #8
    Join Date
    Jul 2007
    Location
    N O R
    Posts
    208
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks both of you, I do use symbols whenever possible, and I will try your script keven, I tried something like it, but when it looks for the symbol, it temperarily freezes, and if make it repeat until it finds the symbol, then the screen stays frozen and can't find the symbol because the image on the screen doesn't change

    P.S. I have also tried using DTMs and it works sometimes, but then other times it doesn't, it just doesn't detect the DTM and it goes to the next part... any suggestions?

  9. #9
    Join Date
    May 2007
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    Writeln ('error walking...teleporting back to draynor')
    If  FindColor(x, y, purpleHERE) Then;
    Begin;
    Mouse(x, y, 1, 1, False);
    ClickOption(Rub,2);
    Wait(1000+random(3000));
    If FindSymbol('bank') then
    Begin;
    WalkToMonk;//the procedure to walk to the monk./..again
    Originally Posted by YoHoJo
    I like hentai.

  10. #10
    Join Date
    Jul 2007
    Location
    N O R
    Posts
    208
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    good, idea, once I get it so that an error doesn't happen EVERY TIME I will put that in as a failsafe, that is smart, thanks

  11. #11
    Join Date
    May 2007
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ehh, i just started my own powa chopa 2 hrs agi and its 90% done =/
    Originally Posted by YoHoJo
    I like hentai.

  12. #12
    Join Date
    Jul 2007
    Location
    N O R
    Posts
    208
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    nice, btw, do you hav a screen name for aim? that could be easier to communicate?

  13. #13
    Join Date
    May 2007
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    nvr bothered to get it.. sry =/, can u get me a link to dl it?
    Originally Posted by YoHoJo
    I like hentai.

  14. #14
    Join Date
    Jul 2007
    Location
    N O R
    Posts
    208
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    - go to aim.com
    - click install now where it says "AIM 6.1 For Windows"
    - Download it and install it
    - go back to aim.com
    - click "Get a Screen Name" on the upper-rightish side of the screen
    - Check "Create a Screen Name" and hit continue
    - fill out the form and hit submit
    - Then sign on, and I will usually be on
    - My screen name is: rostaryms

  15. #15
    Join Date
    May 2007
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    hehe, cool.
    Originally Posted by YoHoJo
    I like hentai.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. radial walking aid
    By Vap0ur in forum OSR Help
    Replies: 4
    Last Post: 10-15-2007, 12:41 AM
  2. Simple Script Request Involving Math
    By sollek in forum RS3 Outdated / Broken Scripts
    Replies: 1
    Last Post: 08-18-2007, 12:58 PM
  3. need some help with radial walking
    By randomness6 in forum OSR Help
    Replies: 6
    Last Post: 07-10-2007, 08:38 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
  •