Results 1 to 6 of 6

Thread: RadialWalkEx

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

    Default RadialWalkEx

    SCAR Code:
    procedure GoToDoor;

    var
    i,rdx,rdy,bkx,bky,tank:integer;
    TPARoad:TPointArray;
    begin
      setrun(true);
      Setangle(True);
      repeat
        i:=i+1;
        writeln('Repeated '+inttostr(i));
        if RadialWalkEx(Tparoad,MMCX, MMCY,7963011,30,220,270,50) then
        begin
        writeln('Managed to RadialWalk');
        tank:=tank+1;
        MiddleTPAEx(TPARoad,rdx, rdy);
        Mouse(rdx,rdy,3,3,true);
        end;
      until(i=10) or (tank=7)
      if i=10 then
      begin
      FindSymbol(bkx,bky,'bank');
      Restart:=True; //This "Restart" is a global boolean
      Mouse(bkx,bky,10,10,true);
      Exit;
      end else
      writeln('Managed to Radialwalk 7 times, exiting procedure.');
    end;

    Problem is, RadialWalkEx never manages to get "True" even if i set the tolerance to 200 o.O

    Any problems with it?
    [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
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Just use RadialWalk it works anyways.

    Ex is used for complecated terrain with tolerance

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

    Default

    Not for me, :P
    Im trying to walk from varrock west bank to barbarian village. And there are so many colour changes even autocolorthis wont work o.O

    So im stuck with radialwalkex.

    Anybody else know whats wrong?
    [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
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Try using DDTM's with 255 tolerance.

  5. #5
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Go to MapWalk.scar, RadialWalk:

    SCAR Code:
    function RadialWalk(TheColor: Integer; StartRadial, EndRadial: Integer; Radius: Integer; Xmod, Ymod: Integer): Boolean;
    var
      tpa: TPointArray;
      i: Integer;
    begin
      Result := False;
      if RadialWalkEx(tpa, MMCX, MMCY, TheColor, 0, StartRadial, EndRadial, Radius) then
        for i := 0 to High(tpa) do
          if MFNF(tpa[i].x, tpa[i].y, Xmod, Ymod) then
          begin
            FFlag(10);
            Result := True;
            Break;
          end;
    end;

    Use RadialWalkEx exactly as RadialWalk except you change the tolerance.


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

    Default

    Problem with radialwalk is that it doesnt have tolerance, so I cant really use them with all the colour changes, and autocolorthis doesnt work on the bit of land im using.

    Edit1: Oh right! now i get what you mean. I have copied the entire radialwalk procedure and just changed the tolerance. Thanks!

    Oh, and about ddtms, I think I can use them...

    Anyway, I really want to know if theres anything wrong with the above section of script. A simple yes or no would suffice
    [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]

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. radialwalkex error
    By Killerdou in forum OSR Help
    Replies: 11
    Last Post: 10-13-2007, 01:48 PM
  2. RadialWalkEx
    By Rambozin in forum OSR Help
    Replies: 0
    Last Post: 04-29-2007, 06:44 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
  •