Page 2 of 2 FirstFirst 12
Results 26 to 44 of 44

Thread: Complete DDTM Walking Tutorial.

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

    Default

    SCAR Code:
    dtmSubPoints: array[0..5] of TDTMPointDef;

    Increase the 4 to a five then it should work. Or a six I forgot?
    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

  2. #27
    Join Date
    Dec 2006
    Posts
    908
    Mentioned
    1 Post(s)
    Quoted
    17 Post(s)

    Default

    ;p yea well what if you got 2 DDTMS and one of them is 4 subpoints and the other 5.

  3. #28
    Join Date
    May 2007
    Location
    NSW, Australia
    Posts
    2,823
    Mentioned
    3 Post(s)
    Quoted
    25 Post(s)

    Default

    Make it the same then. You only need 4 or 5 points each time.

  4. #29
    Join Date
    Jul 2008
    Posts
    907
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    so can this be used for other colors eg the dirt in al kharad?


  5. #30
    Join Date
    Jun 2008
    Location
    Australia
    Posts
    111
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks for this very good tutorial =]

  6. #31
    Join Date
    Dec 2006
    Posts
    173
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Great tutorial! It helped a lot. I'm going to use the idea of loading DDTM's with cases. I'll credit you in script.
    Starting to merchant, if you know of any good clans, PM me please.

  7. #32
    Join Date
    Dec 2006
    Posts
    908
    Mentioned
    1 Post(s)
    Quoted
    17 Post(s)

    Default

    Although this is an example. You have a memory leak XD

    SCAR Code:
    function WalkToSomewhere: Boolean;
    var
      WalkDTM: integer; // Calls the WalkDTM making walking simpler.
    begin
      WalkDTM := LoadAllDTMWalks(1); //Load which DDTM you want to find.
      if FindDTM(WalkDTM, X, Y, MMx1,MMy1,MMx2,MMy2) then // Find the DDTM using Find DTM
      begin
        FreeDTM(WalkDTM);
        Mouse(X, Y, 8, 8, True);
        WriteLn('Walk Main 1. - Complete.');
        FFlag(0);
        Result := True; // If succesfully finds it will click it and wait to flag is gone.
      end else // else it will do this...
      begin
        FreeDTM(WalkDTM); // MEmory leak, forgot this one lol
        if RadialWalk(FindFallyRoadColor, 300, 220, 55, 1, 1) then
        begin
          Writeln(' Walk Backup 1. - Complete.');
          Result := True; //Will look for this if DDTM fails, if this fails then logsout, but you can change that.
        end else
        begin
          cant find the backup goes here... // No SCAR alows it to remain False unless it changes True.
          Writeln(' Walk Backup 1. - Failed. Logging Out.');
          //FreeDTM(WalkDTM); // FREEs the DDTM so you dont have a memory overload :P  We already did ;p
          if not (Result) then //if doesnt get results does this
          begin
            Logout; // logs out.
          end;
        end;
    end;

    also do this

    RoadColor := FindRoadColor;

    DTM somehting point color.. := RoadColor;

    This prevents ur debug from having 4 same results printed ;p

  8. #33
    Join Date
    Dec 2006
    Posts
    908
    Mentioned
    1 Post(s)
    Quoted
    17 Post(s)

    Default

    How do i make a DDTM if i were to try using like Palm Trees as sub-points or Rocks, etc... I tried doing that on my Law Crafter, My DDTM isn't working.

    SCAR Code:
    1:begin
            dtmMainPoint.x := 572;
            dtmMainPoint.y := 55;
            dtmMainPoint.AreaSize := 0;
            dtmMainPoint.AreaShape := 0;
            dtmMainPoint.Color := 0;
            dtmMainPoint.Tolerance := 255;
            dtmSubPoints[0].x := 572;
            dtmSubPoints[0].y := 55;
            dtmSubPoints[0].AreaSize := 0;
            dtmSubPoints[0].AreaShape := 0;
            dtmSubPoints[0].Color := 0;
            dtmSubPoints[0].Tolerance := 255;
            dtmSubPoints[1].x := 602;
            dtmSubPoints[1].y := 44;
            dtmSubPoints[1].AreaSize := 0;
            dtmSubPoints[1].AreaShape := 0;
            dtmSubPoints[1].Color := 195836;
            dtmSubPoints[1].Tolerance := 55;
            dtmSubPoints[2].x := 617;
            dtmSubPoints[2].y := 82;
            dtmSubPoints[2].AreaSize := 0;
            dtmSubPoints[2].AreaShape := 0;
            dtmSubPoints[2].Color := 195836;
            dtmSubPoints[2].Tolerance := 55;
            dtmSubPoints[3].x := 618;
            dtmSubPoints[3].y := 26;
            dtmSubPoints[3].AreaSize := 3;
            dtmSubPoints[3].AreaShape := 0;
            dtmSubPoints[3].Color := RoadColor;
            dtmSubPoints[3].Tolerance := Tolerance;
            TempTDTM.MainPoint := dtmMainPoint;
            TempTDTM.SubPoints := dtmSubPoints;
            Result := AddDTM(TempTDTM);
          end;
        2: begin
             dtmMainPoint.x := 583;
             dtmMainPoint.y := 33;
             dtmMainPoint.AreaSize := 0;
             dtmMainPoint.AreaShape := 0;
             dtmMainPoint.Color := 0;
             dtmMainPoint.Tolerance := 255;
             dtmSubPoints[0].x := 583;
             dtmSubPoints[0].y := 33;
             dtmSubPoints[0].AreaSize := 0;
             dtmSubPoints[0].AreaShape := 0;
             dtmSubPoints[0].Color := 0;
             dtmSubPoints[0].Tolerance := 255;
             dtmSubPoints[1].x := 664;
             dtmSubPoints[1].y := 46;
             dtmSubPoints[1].AreaSize := 3;
             dtmSubPoints[1].AreaShape := 0;
             dtmSubPoints[1].Color := RoadColor;
             dtmSubPoints[1].Tolerance := Tolerance;
             dtmSubPoints[2].x := 587;
             dtmSubPoints[2].y := 135;
             dtmSubPoints[2].AreaSize := 3;
             dtmSubPoints[2].AreaShape := 0;
             dtmSubPoints[2].Color := WaterColor;
             dtmSubPoints[2].Tolerance := Tolerance;
             dtmSubPoints[3].x := 649;
             dtmSubPoints[3].y := 67;
             dtmSubPoints[3].AreaSize := 3;
             dtmSubPoints[3].AreaShape := 0;
             dtmSubPoints[3].Color := 195836;
             dtmSubPoints[3].Tolerance := 55;
             TempTDTM.MainPoint := dtmMainPoint;
             TempTDTM.SubPoints := dtmSubPoints;
             Result := AddDTM(TempTDTM);
           end;
        3: begin
             dtmMainPoint.x := 588;
             dtmMainPoint.y := 109;
             dtmMainPoint.AreaSize := 0;
             dtmMainPoint.AreaShape := 0;
             dtmMainPoint.Color := 0;
             dtmMainPoint.Tolerance := 255;
             dtmSubPoints[0].x := 588;
             dtmSubPoints[0].y := 109;
             dtmSubPoints[0].AreaSize := 0;
             dtmSubPoints[0].AreaShape := 0;
             dtmSubPoints[0].Color := 0;
             dtmSubPoints[0].Tolerance := 255;
             dtmSubPoints[1].x := 604;
             dtmSubPoints[1].y := 32;
             dtmSubPoints[1].AreaSize := 3;
             dtmSubPoints[1].AreaShape := 0;
             dtmSubPoints[1].Color := RoadColor;
             dtmSubPoints[1].Tolerance := Tolerance;
             dtmSubPoints[2].x := 587;
             dtmSubPoints[2].y := 73;
             dtmSubPoints[2].AreaSize := 0;
             dtmSubPoints[2].AreaShape := 0;
             dtmSubPoints[2].Color := 6774370;
             dtmSubPoints[2].Tolerance := 75;
             dtmSubPoints[3].x := 644;
             dtmSubPoints[3].y := 145;
             dtmSubPoints[3].AreaSize := 3;
             dtmSubPoints[3].AreaShape := 0;
             dtmSubPoints[3].Color := RoadColor;
             dtmSubPoints[3].Tolerance := Tolerance;
             TempTDTM.MainPoint := dtmMainPoint;
             TempTDTM.SubPoints := dtmSubPoints;
             Result := AddDTM(TempTDTM);
           end;

  9. #34
    Join Date
    Sep 2008
    Location
    Nova Scotia, Canada
    Posts
    49
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default I'll never get this

    Nevermind. Solved my own problem.
    http://www.stats.srl-forums.com/sigs/6137.png

    If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly. - Put this in your sig.

  10. #35
    Join Date
    Sep 2008
    Location
    Nova Scotia, Canada
    Posts
    49
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default When do you free DTM

    Edit: Oops, double-post! My bad.

    When walking anywhere it is mostly likely going to involve several steps to get where you are going.

    In that case, in order to avoid memory leaks, shouldn't your WalkToSomewhere actually be something along these lines?

    Code:
    LoadAllDTMWalks(1);
    <Find>
    <FreeDTM>
    LoadAllDTMWalks(2);
    <Find & Move>
    <FreeDTM>
    and so on...

    Or am I just missing the point completely.
    http://www.stats.srl-forums.com/sigs/6137.png

    If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly. - Put this in your sig.

  11. #36
    Join Date
    Aug 2007
    Location
    Where do you live?
    Posts
    934
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    dont mean to grave dig (even though its only been a month) but this is a very good tut thanks man

    rep++

  12. #37
    Join Date
    May 2008
    Location
    127.0.0.1
    Posts
    705
    Mentioned
    1 Post(s)
    Quoted
    6 Post(s)

    Default

    how would you make it load 2 different DDTMs?
    <Wizzup> And he's a Christian
    <Wizzup> So he MUST be trusted
    ___________________________________________
    <Wizzup> she sounds like a dumb bitch

  13. #38
    Join Date
    Nov 2008
    Location
    Melbourne, Australia
    Posts
    2,240
    Mentioned
    3 Post(s)
    Quoted
    11 Post(s)

    Default

    Thank you. I learned a lot from this and best of all it was quick and easy to learn. Thanks!

  14. #39
    Join Date
    Aug 2007
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I like the tutorials where you give a working function as an example, and then I can modify/dissect it to understand it better. Your tutorial implements this, and I thank you for it Besides that, it's a great tutorial, well written and easy to understand. Rep +

    @Deathscytex, I'm pretty sure you just change it to:
    Code:
    dtmSubPoints: array[0..5] of TDTMPointDef;


    I could be wrong though.

  15. #40
    Join Date
    Mar 2007
    Location
    South australia
    Posts
    109
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Wicked sick, xD. Great tut.
    My Woodcutting Guide. 1-99 p2p. Click here

    http://i38.tinypic.com/s3hu1d.png
    Wooo siggy made by "Camo Developer" Thank you xD.

  16. #41
    Join Date
    Jun 2007
    Location
    south park
    Posts
    1,160
    Mentioned
    0 Post(s)
    Quoted
    62 Post(s)

    Default

    I been doing a lot of gravedigging, because there seems to be some confusion as in what works for osrs

    Is this up to date?
    http://www.youtube.com/user/YoHoJoSRL
    Good scripting guides on youtube
    Formerly known as (djcheater)

  17. #42
    Join Date
    Jun 2012
    Location
    Howell, Michigan
    Posts
    1,585
    Mentioned
    34 Post(s)
    Quoted
    553 Post(s)

    Default

    Quote Originally Posted by randy marsh View Post
    I been doing a lot of gravedigging, because there seems to be some confusion as in what works for osrs

    Is this up to date?

    This works fine in OSRS, I use it for walking. It's a method, cant go out of date with a method (;. Works fine, just use ACA for your points instead of the DTM editor.

  18. #43
    Join Date
    Jun 2007
    Location
    south park
    Posts
    1,160
    Mentioned
    0 Post(s)
    Quoted
    62 Post(s)

    Default

    also dos this work on, non paths ?


    i.e anyway?
    http://www.youtube.com/user/YoHoJoSRL
    Good scripting guides on youtube
    Formerly known as (djcheater)

  19. #44
    Join Date
    Dec 2007
    Posts
    174
    Mentioned
    0 Post(s)
    Quoted
    43 Post(s)

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Complete Form Tutorial
    By BobboHobbo in forum OSR Advanced Scripting Tutorials
    Replies: 10
    Last Post: 05-29-2012, 01:36 PM
  2. Complete forms tutorial
    By tim46 in forum OSR Advanced Scripting Tutorials
    Replies: 29
    Last Post: 06-12-2009, 11:43 PM
  3. ddtm walking need help...
    By joery in forum OSR Help
    Replies: 5
    Last Post: 11-06-2008, 11:18 PM
  4. Help With DDTM Walking
    By Blumblebee in forum OSR Help
    Replies: 11
    Last Post: 09-02-2008, 11:07 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
  •