Results 1 to 5 of 5

Thread: Result True, False.

  1. #1
    Join Date
    Nov 2008
    Location
    Norway, Alesund
    Posts
    924
    Mentioned
    0 Post(s)
    Quoted
    37 Post(s)

    Default Result True, False.

    Can anyone quick explain about it. if found color it should use radial walk. if didn't find he should search it again or do something i am pretty sure here need results but i dont know them... any one can give me quick help?
    SCAR Code:
    Procedure myProc;
    var c, RoadColour:integer;
    Begin
       ClearDebug;
       RoadColour := FindVarrockRoadColor
       RadialWalk(RoadColour, 120, 175, 68, 0, -4);
    end;

  2. #2
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    Like this:

    Code:
    MarkTime(FailSafe);
    repeat
      if(RadialWalk(RoadColour, 120, 175, 68, 0, -4))then
        Exit;
      else
      begin
        inc(C);
        if(C>=5) then
        begin
        writeln('failed walking, terminating');
        TerminateScript; 
        end;
      end;
    Until(c>=5) or (TimeFromMark(Failsafe)>= 5 * 60000) //5 minutes
    wrote really fast, not even sure if I have an end for each begin or if it'll definitely compile, it should though as long as you declare the variables.
    Last edited by Baked0420; 09-01-2009 at 01:45 AM.

  3. #3
    Join Date
    Jan 2008
    Location
    Frankfurt, Germany
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    Procedure myProc;
    var c, RoadColour:integer;
    Begin
       ClearDebug;
       RoadColour := FindVarrockRoadColor
       if RoadColour >= 0 then //should output -1 if not found ^^
         RadialWalk(RoadColour, 120, 175, 68, 0, -4);
    end;
    There is nothing right in my left brain and there is nothing left in my right brain.

  4. #4
    Join Date
    Nov 2008
    Location
    Norway, Alesund
    Posts
    924
    Mentioned
    0 Post(s)
    Quoted
    37 Post(s)

    Default

    checking Ty for both.

  5. #5
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Quite a bit shorter than the others:
    SCAR Code:
    for i := 0 to 5 do
    begin
       if(RadialWalk(RoadColour, 120, 175, 68, 0, -4))then
         Break;
      Wait(80 + Random(50));
    end;

Thread Information

Users Browsing this Thread

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

Posting Permissions

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