Poll: Should I make more voice guides?

Be advised that this is a public poll: other users can see the choice(s) you selected.

Page 1 of 3 123 LastLast
Results 1 to 25 of 71

Thread: A video guide to DDTM walking!

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

    Default A video guide to DDTM walking!

    Hey all, finally got around to posting this <3





    Code for the script mentioned:

    Example of DDTM being called in a function to load it.

    Simba Code:
    function LoadDDTMWalk(WalkNumber: Integer): Integer;
    var
      dtmMainPoint: TDTMPointDef;
      dtmSubPoints: array[0..3] of TDTMPointDef;
      TempTDTM: TDTM;
    begin
      case WalkNumber of
        1: begin

             begin
      dtmMainPoint.x := 1122;
      dtmMainPoint.y := 177;
      dtmMainPoint.AreaSize := 3;
      dtmMainPoint.AreaShape := 0;
      dtmMainPoint.Color := 931654;
      dtmMainPoint.Tolerance := 255;

      dtmSubPoints[0].x := 1122;
      dtmSubPoints[0].y := 177;
      dtmSubPoints[0].AreaSize := 3;
      dtmSubPoints[0].AreaShape := 0;
      dtmSubPoints[0].Color := 931654;
      dtmSubPoints[0].Tolerance := 255;

      dtmSubPoints[1].x := 1119;
      dtmSubPoints[1].y := 167;
      dtmSubPoints[1].AreaSize := 3;
      dtmSubPoints[1].AreaShape := 0;
      dtmSubPoints[1].Color := 12161405;
      dtmSubPoints[1].Tolerance := 30;

      dtmSubPoints[2].x := 1121;
      dtmSubPoints[2].y := 187;
      dtmSubPoints[2].AreaSize := 3;
      dtmSubPoints[2].AreaShape := 0;
      dtmSubPoints[2].Color := 12161405;
      dtmSubPoints[2].Tolerance := 30;

      dtmSubPoints[3].x := 1128;
      dtmSubPoints[3].y := 177;
      dtmSubPoints[3].AreaSize := 3;
      dtmSubPoints[3].AreaShape := 0;
      dtmSubPoints[3].Color := 931654;
      dtmSubPoints[3].Tolerance := 30;

      TempTDTM.MainPoint := dtmMainPoint;
      TempTDTM.SubPoints := dtmSubPoints;
      Result := AddDTM(TempTDTM);
    end;
    end;




      2: begin

         dtmMainPoint.x := 1129;
      dtmMainPoint.y := 141;
      dtmMainPoint.AreaSize := 3;
      dtmMainPoint.AreaShape := 0;
      dtmMainPoint.Color := 3104640;
      dtmMainPoint.Tolerance := 255;

      dtmSubPoints[0].x := 1129;
      dtmSubPoints[0].y := 141;
      dtmSubPoints[0].AreaSize := 3;
      dtmSubPoints[0].AreaShape := 0;
      dtmSubPoints[0].Color := 3104640;
      dtmSubPoints[0].Tolerance := 255;

      dtmSubPoints[1].x := 1108;
      dtmSubPoints[1].y := 154;
      dtmSubPoints[1].AreaSize := 3;
      dtmSubPoints[1].AreaShape := 0;
      dtmSubPoints[1].Color := 12161405;
      dtmSubPoints[1].Tolerance := 30;

      dtmSubPoints[2].x := 1111;
      dtmSubPoints[2].y := 161;
      dtmSubPoints[2].AreaSize := 3;
      dtmSubPoints[2].AreaShape := 0;
      dtmSubPoints[2].Color := 12161405;
      dtmSubPoints[2].Tolerance := 30;

      dtmSubPoints[3].x := 1154;
      dtmSubPoints[3].y := 161;
      dtmSubPoints[3].AreaSize := 3;
      dtmSubPoints[3].AreaShape := 0;
      dtmSubPoints[3].Color := 931654;
      dtmSubPoints[3].Tolerance := 30;

      TempTDTM.MainPoint := dtmMainPoint;
      TempTDTM.SubPoints := dtmSubPoints;
      Result := AddDTM(TempTDTM);
    end;


    //'''''''''''''''''''''''''''''''''''''''''\\
    //            Walking to Altar             \\
    //'''''''''''''''''''''''''''''''''''''''''\\
    3: begin
           dtmMainPoint.x := 1111;
      dtmMainPoint.y := 203;
      dtmMainPoint.AreaSize := 3;
      dtmMainPoint.AreaShape := 0;
      dtmMainPoint.Color := 2264190;
      dtmMainPoint.Tolerance := 255;

      dtmSubPoints[0].x := 1111;
      dtmSubPoints[0].y := 203;
      dtmSubPoints[0].AreaSize := 3;
      dtmSubPoints[0].AreaShape := 0;
      dtmSubPoints[0].Color := 2264190;
      dtmSubPoints[0].Tolerance := 255;

      dtmSubPoints[1].x := 1137;
      dtmSubPoints[1].y := 220;
      dtmSubPoints[1].AreaSize := 3;
      dtmSubPoints[1].AreaShape := 0;
      dtmSubPoints[1].Color := 11036250;
      dtmSubPoints[1].Tolerance := 35;

      dtmSubPoints[2].x := 1134;
      dtmSubPoints[2].y := 149;
      dtmSubPoints[2].AreaSize := 3;
      dtmSubPoints[2].AreaShape := 0;
      dtmSubPoints[2].Color := 610078;
      dtmSubPoints[2].Tolerance := 35;

      dtmSubPoints[3].x := 1117;
      dtmSubPoints[3].y := 144;
      dtmSubPoints[3].AreaSize := 3;
      dtmSubPoints[3].AreaShape := 0;
      dtmSubPoints[3].Color := 610078;
      dtmSubPoints[3].Tolerance := 35;

      TempTDTM.MainPoint := dtmMainPoint;
      TempTDTM.SubPoints := dtmSubPoints;
      Result := AddDTM(TempTDTM);
    end;

    4: begin
     dtmMainPoint.x := 1113;
      dtmMainPoint.y := 228;
      dtmMainPoint.AreaSize := 3;
      dtmMainPoint.AreaShape := 0;
      dtmMainPoint.Color := 7369593;
      dtmMainPoint.Tolerance := 255;

      dtmSubPoints[0].x := 1113;
      dtmSubPoints[0].y := 228;
      dtmSubPoints[0].AreaSize := 3;
      dtmSubPoints[0].AreaShape := 0;
      dtmSubPoints[0].Color := 7369593;
      dtmSubPoints[0].Tolerance := 255;

      dtmSubPoints[1].x := 1133;
      dtmSubPoints[1].y := 215;
      dtmSubPoints[1].AreaSize := 3;
      dtmSubPoints[1].AreaShape := 0;
      dtmSubPoints[1].Color := 610078;
      dtmSubPoints[1].Tolerance := 35;

      dtmSubPoints[2].x := 1112;
      dtmSubPoints[2].y := 211;
      dtmSubPoints[2].AreaSize := 3;
      dtmSubPoints[2].AreaShape := 0;
      dtmSubPoints[2].Color := 11036250;
      dtmSubPoints[2].Tolerance := 35;

      dtmSubPoints[3].x := 1103;
      dtmSubPoints[3].y := 197;
      dtmSubPoints[3].AreaSize := 3;
      dtmSubPoints[3].AreaShape := 0;
      dtmSubPoints[3].Color := 610078;
      dtmSubPoints[3].Tolerance := 35;

      TempTDTM.MainPoint := dtmMainPoint;
      TempTDTM.SubPoints := dtmSubPoints;
      Result := AddDTM(TempTDTM);
    end;

    5: begin
       dtmMainPoint.x := 1114;
      dtmMainPoint.y := 216;
      dtmMainPoint.AreaSize := 3;
      dtmMainPoint.AreaShape := 0;
      dtmMainPoint.Color := 7369593;
      dtmMainPoint.Tolerance := 255;

      dtmSubPoints[0].x := 1114;
      dtmSubPoints[0].y := 216;
      dtmSubPoints[0].AreaSize := 3;
      dtmSubPoints[0].AreaShape := 0;
      dtmSubPoints[0].Color := 7369593;
      dtmSubPoints[0].Tolerance := 255;

      dtmSubPoints[1].x := 1095;
      dtmSubPoints[1].y := 250;
      dtmSubPoints[1].AreaSize := 3;
      dtmSubPoints[1].AreaShape := 0;
      dtmSubPoints[1].Color := 12161405;
      dtmSubPoints[1].Tolerance := 35;

      dtmSubPoints[2].x := 1097;
      dtmSubPoints[2].y := 212;
      dtmSubPoints[2].AreaSize := 3;
      dtmSubPoints[2].AreaShape := 0;
      dtmSubPoints[2].Color := 610078;
      dtmSubPoints[2].Tolerance := 35;

      dtmSubPoints[3].x := 1114;
      dtmSubPoints[3].y := 236;
      dtmSubPoints[3].AreaSize := 3;
      dtmSubPoints[3].AreaShape := 0;
      dtmSubPoints[3].Color := 931654;
      dtmSubPoints[3].Tolerance := 35;

      TempTDTM.MainPoint := dtmMainPoint;
      TempTDTM.SubPoints := dtmSubPoints;
      Result := AddDTM(TempTDTM);
    end;



    end;
    end;


    Example of DDTM in use.

    Simba Code:
    function WalkToAltar: Boolean;
    var
      WalkDTM: integer;
      aFound: Extended;
    begin
      WalkDTM := LoadDDTMWalk(3);
      if FindDTMRotated(WalkDTM, x, y, MMX1, MMY1, MMX2, MMY2, -Pi/2, Pi/2, Pi/30, aFound) then
      begin
        Mouse(X, Y, 2, 2, True);
        FFlag(0);
        WriteDebug('Balloon Point 1 done');
      end
    else
    WriteDebug('Cant find the DDTM');


      WalkDTM := LoadDDTMWalk(4);
      if FindDTMRotated(WalkDTM, x, y, MMX1, MMY1, MMX2, MMY2, -Pi/2, Pi/2, Pi/30, aFound) then
      begin
        Mouse(X, Y, 2, 2, True);
        FFlag(0);
        WriteDebug('Balloon Point 2 done');
    end
    else
    writedebug('Cant find the DDTM');

    WalkDTM := LoadDDTMWalk(5);
      if FindDTMRotated(WalkDTM, x, y, MMX1, MMY1, MMX2, MMY2, -Pi/2, Pi/2, Pi/30, aFound) then
      begin
        Mouse(X, Y, 2, 2, True);
        FFlag(0);
        WriteDebug('Balloon Point 1 done');
      end
    else
    WriteDebug('Cant find the DDTM');
    end;

    Didnt cover this in the video, should have.

    How to AutoColor points:

    Credit to NKN for writing the code for me in skype!

    Simba Code:
    function FindTheColor(color: integer): Integer;
    var
      x,y:integer;
      TPA:TPointArray;
    begin
      if FindColorSpiralTolerance(x, y, color, MMX1, MMY1, MMX2, MMY2, 30) then

        result := GetColor(x, y)
     else
        result := -1;
    end;

    How to use it in a DDTM procedure :

    Simba Code:
    function LoadDDTMWalk(WalkNumber: Integer): Integer;
    var
      dtmMainPoint: TDTMPointDef;
      dtmSubPoints: array[0..3] of TDTMPointDef;
      TempTDTM: TDTM;
    begin
      case WalkNumber of
        1: begin

             begin
      dtmMainPoint.x := 1122;
      dtmMainPoint.y := 177;
      dtmMainPoint.AreaSize := 3;
      dtmMainPoint.AreaShape := 0;
      dtmMainPoint.Color := 931654;
      dtmMainPoint.Tolerance := 255;

      dtmSubPoints[0].x := 1122;
      dtmSubPoints[0].y := 177;
      dtmSubPoints[0].AreaSize := 3;
      dtmSubPoints[0].AreaShape := 0;
      dtmSubPoints[0].Color := 931654;
      dtmSubPoints[0].Tolerance := 255;

      dtmSubPoints[1].x := 1119;
      dtmSubPoints[1].y := 167;
      dtmSubPoints[1].AreaSize := 3;
      dtmSubPoints[1].AreaShape := 0;
      dtmSubPoints[1].Color := FindTheColor(12161405);
      dtmSubPoints[1].Tolerance := 30;

      dtmSubPoints[2].x := 1121;
      dtmSubPoints[2].y := 187;
      dtmSubPoints[2].AreaSize := 3;
      dtmSubPoints[2].AreaShape := 0;
      dtmSubPoints[2].Color := FindTheColor(12161405);
      dtmSubPoints[2].Tolerance := 30;

      dtmSubPoints[3].x := 1128;
      dtmSubPoints[3].y := 177;
      dtmSubPoints[3].AreaSize := 3;
      dtmSubPoints[3].AreaShape := 0;
      dtmSubPoints[3].Color := FindTheColor(931654);
      dtmSubPoints[3].Tolerance := 30;

      TempTDTM.MainPoint := dtmMainPoint;
      TempTDTM.SubPoints := dtmSubPoints;
      Result := AddDTM(TempTDTM);
    end;
    end;

    This Auto-Colors the point to find it a bit better. Another way to do this is to use ACA's AutoColor function and implement it just like this.

    http://villavu.com/forum/showthread.php?t=25312

    ^Link to the editor
    Last edited by King; 05-20-2013 at 08:43 PM.

  2. #2
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    Sexy voice

    Creds to DannyRS for this wonderful sig!

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

    Default

    Quote Originally Posted by Sjoe View Post
    Sexy voice
    Thanks babe

  4. #4
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    Watched it, it's good

    But re-testing a DDTM should be with changing worlds.

    Creds to DannyRS for this wonderful sig!

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

    Default

    Quote Originally Posted by Sjoe View Post
    Watched it, it's good

    But re-testing a DDTM should be with changing worlds.
    I thought I said to change worlds? That was like the 5th or 6th time I logged into RS to test that DDTM

  6. #6
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    Quote Originally Posted by King View Post
    I thought I said to change worlds? That was like the 5th or 6th time I logged into RS to test that DDTM
    Ooh sorry, didn't see you log out that's why lol.

    Creds to DannyRS for this wonderful sig!

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

    Default

    Quote Originally Posted by Sjoe View Post
    Ooh sorry, didn't see you log out that's why lol.
    I edited out the logo it's

  8. #8
    Join Date
    Apr 2013
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Keep 'em coming! That was great

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

    Default

    Quote Originally Posted by barb_of_all View Post
    Keep 'em coming! That was great
    Post any requests you may have :P

  10. #10
    Join Date
    Feb 2012
    Location
    Canada
    Posts
    1,164
    Mentioned
    26 Post(s)
    Quoted
    433 Post(s)

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

    Default

    Quote Originally Posted by StickToTheScript View Post
    Good job! I enjoyed it! Do another!
    Can you think of some to do? Im open to anything :P

  12. #12
    Join Date
    Feb 2012
    Location
    Canada
    Posts
    1,164
    Mentioned
    26 Post(s)
    Quoted
    433 Post(s)

    Default

    Quote Originally Posted by King View Post
    Can you think of some to do? Im open to anything :P
    Are you good with TPAs? Lots of people seem to be having trouble with those. Plus, a video on that would be stinking amazing! I would for sure give it a watch!

  13. #13
    Join Date
    Apr 2013
    Location
    Minnesota
    Posts
    38
    Mentioned
    0 Post(s)
    Quoted
    16 Post(s)

    Default

    Quote Originally Posted by StickToTheScript View Post
    Are you good with TPAs? Lots of people seem to be having trouble with those. Plus, a video on that would be stinking amazing! I would for sure give it a watch!
    It was an amazing guide! It is great now to have an alternate to sps walking!
    Yes another! A guide to TPAs would be fantastic!
    +Rep whatever I can give!
    Last edited by TheeMason; 05-07-2013 at 09:02 PM. Reason: +Rep

  14. #14
    Join Date
    Feb 2012
    Location
    Canada
    Posts
    1,164
    Mentioned
    26 Post(s)
    Quoted
    433 Post(s)

    Default

    Quote Originally Posted by TheeMason View Post
    It was an amazing guide! It is great now to have an alternate to sps walking!
    Yes another! A guide to TPAs would be fantastic!
    @King

    I told you.

  15. #15
    Join Date
    Dec 2007
    Posts
    2,112
    Mentioned
    71 Post(s)
    Quoted
    580 Post(s)

    Default

    Great Tut, should add an explanation of ddtm offsets.

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

    Default

    Quote Originally Posted by StickToTheScript View Post
    Are you good with TPAs? Lots of people seem to be having trouble with those. Plus, a video on that would be stinking amazing! I would for sure give it a watch!
    Im pretty good with TPA's, Ill do a few videos on them, basic, intermediate and advanced!

    Quote Originally Posted by TheeMason View Post
    It was an amazing guide! It is great now to have an alternate to sps walking!
    Yes another! A guide to TPAs would be fantastic!
    +Rep whatever I can give!
    Working on the first video tongiht :P

    Quote Originally Posted by StickToTheScript View Post
    @King

    I told you.
    :P

    Quote Originally Posted by Kasi View Post
    Great Tut, should add an explanation of ddtm offsets.
    I can add a text part to it if you like, are you talking about in the editor? If I am right, doesn't it just make the point it returns offset either by x or y that much? So I could have a DDTM that then clicks to so many spaces to the right left ect?

  17. #17
    Join Date
    Feb 2012
    Location
    Canada
    Posts
    1,164
    Mentioned
    26 Post(s)
    Quoted
    433 Post(s)

    Default

    Quote Originally Posted by King View Post
    Im pretty good with TPA's, Ill do a few videos on them, basic, intermediate and advanced!

    Working on the first video tongiht :P

    I can add a text part to it if you like, are you talking about in the editor? If I am right, doesn't it just make the point it returns offset either by x or y that much? So I could have a DDTM that then clicks to so many spaces to the right left ect?
    I would love to see those 3 tutorials. And please add the text part. The more info, the better.

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

    Default

    Quote Originally Posted by StickToTheScript View Post
    I would love to see those 3 tutorials. And please add the text part. The more info, the better.
    I will do them tonight, I will cover basic TPA finding functions to MMToMSEx and functions with finding with that, to ATPA's ect. I will also brush up on wrappers to hopefully be able to explain those as well, if I remember wrappers stop memory leaks?

  19. #19
    Join Date
    Feb 2012
    Location
    Canada
    Posts
    1,164
    Mentioned
    26 Post(s)
    Quoted
    433 Post(s)

    Default

    Quote Originally Posted by King View Post
    I will do them tonight, I will cover basic TPA finding functions to MMToMSEx and functions with finding with that, to ATPA's ect. I will also brush up on wrappers to hopefully be able to explain those as well, if I remember wrappers stop memory leaks?
    I look forward to learning your knowledge!! Its gonna be great!!

    But, I am not good with wrappers, so dont ask me about those... Lol.

  20. #20
    Join Date
    Dec 2007
    Posts
    2,112
    Mentioned
    71 Post(s)
    Quoted
    580 Post(s)

    Default

    Quote Originally Posted by King View Post
    I can add a text part to it if you like, are you talking about in the editor? If I am right, doesn't it just make the point it returns offset either by x or y that much? So I could have a DDTM that then clicks to so many spaces to the right left ect?
    Yer, you got it, its because in your video you were talking about not knowing how often the dock would show up, if you selected a mainpoint which is more reliable I.E one closer to the center of the compass then you could just add an offset to where you wanna click in relation to where your reference point was found. Remember to add the offset with the compass angle taken into account. You can do this by rotating the offset in point form (Point(X, Y)) by the angle the ddtm is found (i think the function is called RotatePoint). FindDTMRotated returns the angle in radians at which the ddtm was found, in your case this variable was aFound.

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

    Default

    Quote Originally Posted by StickToTheScript View Post
    I look forward to learning your knowledge!! Its gonna be great!!

    But, I am not good with wrappers, so dont ask me about those... Lol.
    Lol I hope it goes well..Im not the best with wrappers either XD

    Quote Originally Posted by Kasi View Post
    Yer, you got it, its because in your video you were talking about not knowing how often the dock would show up, if you selected a mainpoint which is more reliable I.E one closer to the center of the compass then you could just add an offset to where you wanna click in relation to where your reference point was found. Remember to add the offset with the compass angle taken into account. You can do this by rotating the offset in point form (Point(X, Y)) by the angle the ddtm is found (i think the function is called RotatePoint). FindDTMRotated returns the angle in radians at which the ddtm was found, in your case this variable was aFound.
    Ill add that into the main post :P

  22. #22
    Join Date
    Feb 2012
    Location
    Canada
    Posts
    1,164
    Mentioned
    26 Post(s)
    Quoted
    433 Post(s)

    Default

    Quote Originally Posted by King View Post
    Lol I hope it goes well..Im not the best with wrappers either XD
    I feel your pain... :P

  23. #23
    Join Date
    Apr 2013
    Posts
    395
    Mentioned
    1 Post(s)
    Quoted
    177 Post(s)

    Default

    Quote Originally Posted by King View Post
    if I remember wrappers stop memory leaks?
    Yep, I used wrappers in all my TPA finding functions to avoid memory leaks.

  24. #24
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default


  25. #25
    Join Date
    Feb 2012
    Location
    Canada
    Posts
    1,164
    Mentioned
    26 Post(s)
    Quoted
    433 Post(s)

    Default

    Forgot to ask...

    Do you care that ur username is showing? (Im guessing not)


    oh, You should upload that Law Rune Runner...

Page 1 of 3 123 LastLast

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
  •