Results 1 to 8 of 8

Thread: Best Walk Method

  1. #1
    Join Date
    Oct 2006
    Location
    United States
    Posts
    672
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Best Walk Method

    Im having alot of trouble walking to a cetain place and I cannot find out why. I am very familiar with walking, but I cannot find out why. Every method I try, it will work, then the next time I try, it will not work. I tried autocoloring, dtms, radial, radialroadwalk, autocolorthis, bitmaps, and I am not exaggerating :P I have been working on this stupid task for about 2 maybe 3 days now. Here is where I want to go.(Pointing West). P.S. I only have the procedure of dtm left.
    First:


    Second:


    Third:


    SCAR Code:
    SRock  := DTMFromString('78DA6374646260086400034608C5E0E9E2C22' +
           '087C46704A9F16540019A2A2A287A186D816A0208A87100AA0941' +
           '5503B20B458D2BA639E86A005788065F');

    SCAR Code:
    if FindDTMRotated(SRock, x, y, MMX1, MMY1, MMX2, MMY2, -Pi, Pi, 0.1, WalkAngle)then
        Mouse(x+85, y+11, 2, 2, True);

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

    Default

    why not use ddtms, and srl has a function, autocolorrock(i think its called that) that you can use to make the dtm (ill show if you youd like).

    and the reason radial walk wouldnt work, is that it requires you to be facing north (or the cordinates are based upton it) try benjaa's radialwalking thingy that goes for any angle.
    “Ignorance, the root and the stem of every evil.”

  3. #3
    Join Date
    Oct 2006
    Location
    United States
    Posts
    672
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Blumblebee View Post
    and the reason radial walk wouldnt work, is that it requires you to be facing north (or the cordinates are based upton it)
    Wooooow that helped me SO much thanks! Ill get testing. You should get srl helper trophy.

  4. #4
    Join Date
    Dec 2007
    Location
    Wizzup?'s boat
    Posts
    1,013
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    function RadialRoadWalkOffNorth(TheColor: Integer; StartRadial, EndRadial: Integer; Radius: Integer; Xmod, Ymod: Integer) : boolean;
    var
      Angle : extended;
      NewStart, NewEnd : integer;
    begin
      Angle := rs_GetCompassAngleDegrees;
      NewStart := Trunc(StartRadial + Angle);
      while ((NewStart) > 360) do
        NewStart := NewStart - 360;
     
      NewEnd := Trunc(EndRadial + Angle);
      while ((NewEnd) > 360) do
        NewEnd := NewEnd - 360;
       
      Result := RadialRoadWalk(TheColor, NewStart, NewEnd, Radius, Xmod, Ymod);
    end;

    Here's a radial walk that doesnt matter if your facing north or not
    But the angles are chosen in relation to North
    Project: Welcome To Rainbow

  5. #5
    Join Date
    Oct 2006
    Location
    United States
    Posts
    672
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by benjaa View Post
    SCAR Code:
    function RadialRoadWalkOffNorth(TheColor: Integer; StartRadial, EndRadial: Integer; Radius: Integer; Xmod, Ymod: Integer) : boolean;
    var
      Angle : extended;
      NewStart, NewEnd : integer;
    begin
      Angle := rs_GetCompassAngleDegrees;
      NewStart := Trunc(StartRadial + Angle);
      while ((NewStart) > 360) do
        NewStart := NewStart - 360;
     
      NewEnd := Trunc(EndRadial + Angle);
      while ((NewEnd) > 360) do
        NewEnd := NewEnd - 360;
       
      Result := RadialRoadWalk(TheColor, NewStart, NewEnd, Radius, Xmod, Ymod);
    end;

    Here's a radial walk that doesnt matter if your facing north or not
    But the angles are chosen in relation to North
    I made it pointing west with coords that wouldnt matter which direction and they worked?

  6. #6
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Try like a
    radialwalk(FindRockColor...);
    And put the radial to like 68 or sdome thing
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  7. #7
    Join Date
    Oct 2006
    Location
    United States
    Posts
    672
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by noidea View Post
    Try like a
    radialwalk(FindRockColor...);
    And put the radial to like 68 or sdome thing
    Yup this is the walking that finally works.

    SCAR Code:
    RadialRoadWalk(AutoColorD, 1, 50, 60, -1, -1);
        RadialWalk(FindWaterColor, 90, 10, 65, -1, -1);
        RadialWalk(FindRockColor, -340, 50, 60, -1, -1);

  8. #8
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    For my own script I use:
    • DDTM's
    • RadialWalk failsafe
    • SymbolWalk failsafe of failsafe
    • CoordWalk failsafe of failsafe of failsafe


    =']
    Ce ne sont que des gueux


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. BEST Walk method for THIS situation
    By mormonman in forum OSR Help
    Replies: 13
    Last Post: 12-05-2008, 11:49 PM
  2. Doesn't walk?
    By Zeta in forum OSR Help
    Replies: 7
    Last Post: 09-22-2007, 05:07 PM
  3. How to walk using map
    By nik999389 in forum OSR Help
    Replies: 3
    Last Post: 03-26-2007, 07:34 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
  •