Results 1 to 3 of 3

Thread: failsafe for radial walk

  1. #1
    Join Date
    Jul 2007
    Posts
    238
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default failsafe for radial walk

    oke..im trying to make a failsafe for my radialwalk but it doesnt work well

    SCAR Code:
    if RadialroadWalk(roadColor, 120, 110, 70, -15, 5)  then
    WriteLn('left bank')
    else RadialroadWalk(roadColor, 120, 80, 70, -15, 5)
    WriteLn('left bank2')
    flag;

    what i want it to do is if he cant do the first radial walk it should do the second one

    and what i think it does is doing both of them cause i cause it write both
    writeLn in the debug

    any help or ID for failsafe in radialwaling
    ....

  2. #2
    Join Date
    Aug 2007
    Posts
    1,404
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    MarkTime before radialwalking. If radialwalking has taken longer than x-amount of time, then logout and go to next player.
    Except from that, I'd use a very lovely thing:
    SCAR Code:
    Procedure WalkAround;
    var I: Integer;
    begin
      for I:= 0 to 10 do
      begin
        if(RadialWalkTolerance(RoadColor,-20,20,70,-15,5,5+I))then Break;
      end;
    end;
    A favorite of mine; It tries again, and on each retry it tries with more tolerance. Not sure if it's very good for RadialWalking, but you could try.

    To fix your script:
    SCAR Code:
    begin
      if(RadialroadWalk(roadColor, 120, 110, 70, -15, 5))then
      begin
        Writeln('Used primary RRW')
      end else
      begin
        if(RadialroadWalk(roadColor, 120, 80, 70, -15, 5))then
        begin
          Writeln('Used secondary RRW')
        end else
        Writeln('Did not use either.')
      end;
    end.

    -Knives

  3. #3
    Join Date
    Jul 2007
    Posts
    238
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    tnx knives
    hope it works
    ....

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. radial walk
    By i 69 ur nan in forum OSR Help
    Replies: 9
    Last Post: 11-26-2008, 07:15 AM
  2. radial walk
    By coolguy14136 in forum OSR Help
    Replies: 3
    Last Post: 03-13-2007, 07:42 PM
  3. radial walk help
    By del_signo in forum OSR Help
    Replies: 2
    Last Post: 02-27-2007, 12:31 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
  •