Results 1 to 8 of 8

Thread: Radialwalking

  1. #1
    Join Date
    Aug 2009
    Posts
    242
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Radialwalking

    Edit:
    I can't do it lol
    of if someone could give a like a breack down of walking out of VEB to the water or the info i need to do it that would be great i am realy finding scar hard at the moment and to make it worse im back at school now
    Last edited by rya; 09-08-2009 at 10:25 PM.
    I see Now, says the blind man

  2. #2
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    the varrock road color is always changing and currently there is no autocolor for it. Please wait until the developers create an autocolor for it. Alternatively you could edit RadialWalk and add tolerance to it.
    “Ignorance, the root and the stem of every evil.”

  3. #3
    Join Date
    Aug 2009
    Posts
    242
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Blumblebee View Post
    the varrock road color is always changing and currently there is no autocolor for it. Please wait until the developers create an autocolor for it. Alternatively you could edit RadialWalk and add tolerance to it.
    How do you add tol to RadilWalk
    I see Now, says the blind man

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

    Default

    Quote Originally Posted by rya View Post
    How do you add tol to RadilWalk
    Look for the function in the SRL include, copy/paste it into your script, add a tolerance into the function.

  5. #5
    Join Date
    Aug 2009
    Posts
    242
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by NCDS View Post
    Look for the function in the SRL include, copy/paste it into your script, add a tolerance into the function.
    Im not following you

    and is there a way of doing it with a DTM?
    I see Now, says the blind man

  6. #6
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    tada!

    SCAR Code:
    Function RadialWalkExEx(TheColor: Integer; StartRadial, EndRadial: Integer; Radius: Integer; Xmod, Ymod: Integer; Tol: Integer): Boolean;
    var tpa: TPointArray; i: Integer;
    begin
      if RadialWalkEx(tpa, MMCX, MMCY, TheColor, Tol, 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;
    “Ignorance, the root and the stem of every evil.”

  7. #7
    Join Date
    Aug 2009
    Location
    Inside the Matrix...yes it has me, and it has you too.
    Posts
    1,896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    here is the most i can give you for easy radial walking:

    add this function:
    SCAR Code:
    function FindWalkingColor: Integer;
    var
      TPA: TPointArray;
      I: Integer;

    FindColorsTolerance(TPA, (PUT VAROCK ROAD COLOR HERE without brackets), MMX1, MMY1, MMX2, MMY2, 10);
     
      if(GetArrayLength(TPA) > 0) then
        Result := GetColor(TPA[i].X, TPA[i].Y) else
          Result := 0;
    end;

    then this where you want the radial walk:

    SCAR Code:
    RadialWalk(FindWalkingColor, 0, 360, 60, 5, 5);

    Sorry but u need to find the varock road color urself
    NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN

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

    Default

    Alternatively make a DDTM, then do a dtm search, check to see if it fails, if not dtmrotated then...Tol := Tol + 15;

    Tol should replace Tolerance in the DDTM[2].Tolerance thingy, then simply do..

    if Tol > 50 and not dtmrotated then
    begin
    writeln('fail');
    result := false;

    Sorry for bad standards, too lazy to write it in scar


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
  •