Results 1 to 6 of 6

Thread: Radial walking flag?

  1. #1
    Join Date
    Jul 2007
    Location
    Pluto... Maybe?
    Posts
    198
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Radial walking flag?

    I like radial walking but i notice it waits till the flag has vanished before it moves to the next spot which isnt very human like, so i was wondering how can i make it select its next destination before it reaches the flag? i was trying for e.g.

    SCAR Code:
    procedure example;
    begin
    RadialRoadWalk(blablablabla);
    FFlag(4);
    RadialRoadWalk(blablablabla);
    FFlag(4);
    RadialRoadWalk(blablablabla);
    end;
    But it doesnt work

  2. #2
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Edit the radialwalk function and name it radialwalk2?

    SCAR Code:
    {*******************************************************************************
    function RadialWalk(TheColor, StartRadial, EndRadial, Radius, Xmod, Ymod: Integer): Boolean;
    By: Nielsie95
    Description: Walks TheColor from StartRadial to EndRadial for Radius Distance
    Valid Arguments:
    TheColor: Any Color, but Road- or WaterColor will do fine :)
    StartRadial/EndRadial: Any number between 0-720. 0=N,90=E,180=S,270=W.
    Radius: Distance from the centre of minimap, i.e. how far away the mouse clicks. Use numbers 20-72
    XMod, YMod: deviation from MouseFindFlag. -2 to 2.
    *******************************************************************************}

    function RadialWalk(TheColor, StartRadial, EndRadial, Radius, 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;
            Exit;
          end;
    end;

    Edit: it says fflag(10);

  3. #3
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    If you are using like FindVarrockRoadColor each time, that can cause lag.

    If you do like:

    Color := FindVarrockRoadColor;
    RadialRoadWalk(Color)

    then it shouldn't lag and then will click right when it is 4 pixels away from the flag. I had this problem years ago with my Varrock Lumberjack and this fixed it.

  4. #4
    Join Date
    Jul 2007
    Location
    Pluto... Maybe?
    Posts
    198
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    But then wont that only effect me and not everyone else that uses the script?

    EDIT: just saw above post and will test that

  5. #5
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by pl0xmypl0x View Post
    But then wont that only effect me and not everyone else that uses the script?

    EDIT: just saw above post and will test that
    If u save radialwalk2 to your script, it won't. And use RadialWalkEx if ur not gonna use an autocolor.

    Example:

    SCAR Code:
    RadialWalkEx(TPA, x, y, 45363473, 25, 0, 90, 65);

    edit:

    SCAR Code:
    var
      TPA: TPointArray;
      x, y: integer;
    //These are variables ;p.

  6. #6
    Join Date
    Jul 2007
    Location
    Pluto... Maybe?
    Posts
    198
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i just made it only have to find the road colour once and that still didnt fix it i guess il have to live with it :S

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
  •