Results 1 to 4 of 4

Thread: how many ends are there in this radialwalking bit

  1. #1
    Join Date
    Dec 2006
    Posts
    2,244
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default how many ends are there in this radialwalking bit

    yes its messy but it works well the end; bit dont

    Line 208: [Error] (18939:1): Identifier expected in script C:\Users\Alex\Desktop\Runescape\My Scripts\chicken ownage middle stages.scar


    SCAR Code:
    Procedure Walkback;  //I done the radialwalk  Seaninio done the flag bits.
    var
    randomnum,Clicked:integer;
    Begin
    If (inchat('You Are Dead')) Or (FindSymbol(x,y,'Water')) Then
     begin
     RadialRoadWalk(RoadColor, 342, 353, 66, Xmod, Ymod);
      repeat
      wait(200);
      until(not(FlagPresent))
     Status('At Bridge')
      RadialRoadWalk(RoadColor, 0, 2, 63, Xmod, Ymod);
      repeat
      wait(200);
      until(not(FlagPresent))
        Status('Across Bridge')
         RadialRoadWalk(RoadColor, 301, 308, 67, Xmod, Ymod);
      repeat
      wait(200);
      until(not(FlagPresent))
          Status('Near Cow Gate')
           RadialRoadWalk(RoadColor, 240, 250, 58, Xmod, Ymod);
             repeat
      wait(200);
      until(not(FlagPresent))
            Status('At Cow Gate')
             RadialRoadWalk(RoadColor, 236, 242, 62, Xmod, Ymod);
               repeat
      wait(200);
      until(not(FlagPresent))
            Status('Near Chicken Farm')
           RadialRoadWalk(RoadColor, 250, 257, 60, Xmod, Ymod);
             repeat
      wait(200);
      until(not(FlagPresent))
          repeat
           Status('even closer')
            RadialRoadWalk(RoadColor, 228, 232, 58, Xmod, Ymod);
          Repeat
          Wait(200);
          Until(Not(FlagPresent))
       Repeat
       RadialRoadWalk(RoadColor, 254, 261, 58, Xmod, Ymod); // Gate bit
          Repeat
           Wait(200);
            Until(Not(FlagPresent))
            RadialWalk(FindRoadColor, 178, 191, 31, Xmod, Ymod);
            Status('At Farm');
     End;
    End;

  2. #2
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Missing until
    SCAR Code:
    Repeat
       RadialRoadWalk(RoadColor, 254, 261, 58, Xmod, Ymod); // Gate bit
          Repeat
           Wait(200);
            Until(Not(FlagPresent))
    You dont need
    Repeat
    Wait(200);
    Until(Not(FlagPresent))
    Just use Flag; for it.

    and You dont even need commands like Flag; in RadialRoadWalk, it waits itself until Flag is almost gone.

    SCAR Code:
    Procedure Walkback;  //I done the radialwalk  Seaninio done the flag bits.
    var
    randomnum,Clicked:integer;
    Begin
    If (inchat('You Are Dead')) Or (FindSymbol(x,y,'Water')) Then
     begin
     RadialRoadWalk(FindRoadColor, 342, 353, 66, Xmod, Ymod);
     Status('At Bridge')
     RadialRoadWalk(FindRoadColor, 0, 2, 63, Xmod, Ymod);
     Status('Across Bridge')
     RadialRoadWalk(FindRoadColor, 301, 308, 67, Xmod, Ymod);
     Status('Near Cow Gate')
     RadialRoadWalk(FindRoadColor, 240, 250, 58, Xmod, Ymod);
     Status('At Cow Gate')
     RadialRoadWalk(FindRoadColor, 236, 242, 62, Xmod, Ymod);
     Status('Near Chicken Farm')
     RadialRoadWalk(FindRoadColor, 250, 257, 60, Xmod, Ymod);
     Status('even closer')
     RadialRoadWalk(FindRoadColor, 228, 232, 58, Xmod, Ymod);
     RadialRoadWalk(FindRoadColor, 254, 261, 58, Xmod, Ymod); // Gate bit
     RadialWalk(FindFindRoadColor, 178, 191, 31, Xmod, Ymod);
     Status('At Farm');
     End;
    End;

  3. #3
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Ever heard of FFlag?

    You might find it useful


    SCAR Code:
    Procedure Walkback;  //I done the radialwalk  Seaninio done the flag bits.
    var
    randomnum,Clicked:integer;
    Begin
    If (inchat('You Are Dead')) Or (FindSymbol(x,y,'Water')) Then
     begin
     RadialRoadWalk(RoadColor, 342, 353, 66, Xmod, Ymod);
      repeat
      wait(200);
      until(not(FlagPresent))
     Status('At Bridge')
      RadialRoadWalk(RoadColor, 0, 2, 63, Xmod, Ymod);
      repeat
      wait(200);
      until(not(FlagPresent))
        Status('Across Bridge')
         RadialRoadWalk(RoadColor, 301, 308, 67, Xmod, Ymod);
      repeat
      wait(200);
      until(not(FlagPresent))
          Status('Near Cow Gate')
           RadialRoadWalk(RoadColor, 240, 250, 58, Xmod, Ymod);
             repeat
      wait(200);
      until(not(FlagPresent))
            Status('At Cow Gate')
             RadialRoadWalk(RoadColor, 236, 242, 62, Xmod, Ymod);
               repeat
      wait(200);
      until(not(FlagPresent))
            Status('Near Chicken Farm')
           RadialRoadWalk(RoadColor, 250, 257, 60, Xmod, Ymod);
             repeat
      wait(200);
      until(not(FlagPresent))
           Status('even closer')
            RadialRoadWalk(RoadColor, 228, 232, 58, Xmod, Ymod);
          Repeat
          Wait(200);
          Until(Not(FlagPresent))
       RadialRoadWalk(RoadColor, 254, 261, 58, Xmod, Ymod); // Gate bit
          Repeat
           Wait(200);
            Until(Not(FlagPresent))
            RadialWalk(FindRoadColor, 178, 191, 31, Xmod, Ymod);
            Status('At Farm');
      End;
    End;

    You had too many repeats

    And your standards need a lot of work

    You also might want some more failsafes, but they can be added as your script matures
    Interested in C# and Electrical Engineering? This might interest you.

  4. #4
    Join Date
    Dec 2006
    Posts
    2,244
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    indeed smart i no and pentti does that work the bottom 1?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Script ends after mining one ore =/
    By orange in forum OSR Help
    Replies: 13
    Last Post: 10-15-2008, 03:13 PM
  2. Need help with begin-ends
    By IPwnz in forum OSR Help
    Replies: 4
    Last Post: 12-01-2007, 06:31 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
  •