Results 1 to 17 of 17

Thread: Is it me?

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

    Default Is it me?

    Well i keep trying to find DDTMs and well it never works ive maded about 10 ranging from close together points to realy far away points and well i can never find them
    Is there something wonrg with this
    SCAR Code:
    program New;
    {.include SRL/SRL.scar}
    Var Tol:integer;



    function SetDDTM(WalkNumber: Integer): Integer;
    var
      dtmMainPoint: TDTMPointDef;
      dtmSubPoints: Array [0..4] of TDTMPointDef;
      TempTDTM: TDTM;
    begin
      Case WalkNumber Of
      0: begin
      dtmMainPoint.x := 945;
      dtmMainPoint.y := 346;
      dtmMainPoint.AreaSize := 0;
      dtmMainPoint.AreaShape := 0;
      dtmMainPoint.Color := 8881803;
      dtmMainPoint.Tolerance := 0;

      dtmSubPoints[0].x := 945;
      dtmSubPoints[0].y := 346;
      dtmSubPoints[0].AreaSize := 0;
      dtmSubPoints[0].AreaShape := 0;
      dtmSubPoints[0].Color := 8881803;
      dtmSubPoints[0].Tolerance := 0;

      dtmSubPoints[1].x := 953;
      dtmSubPoints[1].y := 387;
      dtmSubPoints[1].AreaSize := 0;
      dtmSubPoints[1].AreaShape := 0;
      dtmSubPoints[1].Color := 6587026;
      dtmSubPoints[1].Tolerance := 0;

      dtmSubPoints[2].x := 946;
      dtmSubPoints[2].y := 372;
      dtmSubPoints[2].AreaSize := 0;
      dtmSubPoints[2].AreaShape := 0;
      dtmSubPoints[2].Color := 6784405;
      dtmSubPoints[2].Tolerance := 0;

      dtmSubPoints[3].x := 925;
      dtmSubPoints[3].y := 349;
      dtmSubPoints[3].AreaSize := 0;
      dtmSubPoints[3].AreaShape := 0;
      dtmSubPoints[3].Color := 8487045;
      dtmSubPoints[3].Tolerance := 0;

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


    Function Walk(WalkNumber: Integer): Boolean;
    var
      TheDDTM, x, y : Integer;
    begin
      SetRun(True);
      Tol := 5;
      TheDDTM := SetDDTM(WalkNumber);
      repeat
        if not DTMRotated(TheDDTM, x, y, MMX1, MMY1, MMX2, MMY2) then
        begin
          Writeln('Didn''t find DDTM, increasing tolerance...');
          Wait(1000+random(1000))
          IncEx(Tol, 10);
          FreeDTM(TheDDTM);
          TheDDTM := SetDDTM(WalkNumber);
        end else
        begin
          Writeln('Walking');
          Mouse(x, y, 4, 4, True);
          Result := True;
          Break;
        end;
      until((Tol >= 90) or not LoggedIn);
      Tol := 5;
      FreeDTM(TheDDTM);
    end;


    begin
    SetupSRL;
      If Walk(0) Then
          Writeln('we should be in shop');
    end.
    I see Now, says the blind man

  2. #2
    Join Date
    Nov 2009
    Location
    Seattle, WA
    Posts
    589
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I was told that DDTM Colors should all be the same.
    You need to Make your AreaSize at least 1. If your AreaSize is 0 scar has no area to search in.

    Try that. If it still doesn't work, or it does something entirely different, tell us exactly whats happening.
    Don't Troll, Don't Fight, Just keep the Respect
    Status : Offline

    Feel free to re-make my scripts ;D
    Community Member

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

    Default

    Quote Originally Posted by Heavenguard View Post
    I was told that DDTM Colors should all be the same.
    You need to Make your AreaSize at least 1. If your AreaSize is 0 scar has no area to search in.

    Try that. If it still doesn't work, or it does something entirely different, tell us exactly whats happening.
    Now ive maded it
    SCAR Code:
    program New;
    {.include SRL/SRL.scar}
    Var Tol:integer;



    function SetDDTM(WalkNumber: Integer): Integer;
    var
      dtmMainPoint: TDTMPointDef;
      dtmSubPoints: Array [0..4] of TDTMPointDef;
      TempTDTM: TDTM;
    begin
      Case WalkNumber Of
      0: begin
      dtmMainPoint.x := 945;
      dtmMainPoint.y := 346;
      dtmMainPoint.AreaSize := 1;
      dtmMainPoint.AreaShape := 0;
      dtmMainPoint.Color := 8881803;
      dtmMainPoint.Tolerance := Tol;

      dtmSubPoints[0].x := 945;
      dtmSubPoints[0].y := 346;
      dtmSubPoints[0].AreaSize := 1;
      dtmSubPoints[0].AreaShape := 0;
      dtmSubPoints[0].Color := 8881803;
      dtmSubPoints[0].Tolerance := Tol;

      dtmSubPoints[1].x := 953;
      dtmSubPoints[1].y := 387;
      dtmSubPoints[1].AreaSize := 1;
      dtmSubPoints[1].AreaShape := 0;
      dtmSubPoints[1].Color := 6587026;
      dtmSubPoints[1].Tolerance := Tol;

      dtmSubPoints[2].x := 946;
      dtmSubPoints[2].y := 372;
      dtmSubPoints[2].AreaSize := 1;
      dtmSubPoints[2].AreaShape := 0;
      dtmSubPoints[2].Color := 6784405;
      dtmSubPoints[2].Tolerance := Tol;

      dtmSubPoints[3].x := 925;
      dtmSubPoints[3].y := 349;
      dtmSubPoints[3].AreaSize := 1;
      dtmSubPoints[3].AreaShape := 0;
      dtmSubPoints[3].Color := 8487045;
      dtmSubPoints[3].Tolerance := Tol;

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


    Function Walk(WalkNumber: Integer): Boolean;
    var
      TheDDTM, x, y : Integer;
    begin
      SetRun(True);
      Tol := 5;
      TheDDTM := SetDDTM(WalkNumber);
      repeat
        if not DTMRotated(TheDDTM, x, y, MMX1, MMY1, MMX2, MMY2) then
        begin
          Writeln('Didn''t find DDTM, increasing tolerance...');
          Wait(1000+random(1000))
          IncEx(Tol, 10);
          FreeDTM(TheDDTM);
          TheDDTM := SetDDTM(WalkNumber);
        end else
        begin
          Writeln('Walking');
          Mouse(x, y, 4, 4, True);
          Result := True;
          Break;
        end;
      until((Tol >= 90) or not LoggedIn);
      Tol := 5;
      FreeDTM(TheDDTM);
    end;


    begin
    SetupSRL;
      If Walk(0) Then
          Writeln('we should be in shop');
    end.
    and its still not working i get
    Code:
    New client targeted
    Successfully compiled (7075 ms)
    SRL Compiled in 31 msec
    Didn't find DDTM, increasing tolerance...
    Didn't find DDTM, increasing tolerance...
    Didn't find DDTM, increasing tolerance...
    Didn't find DDTM, increasing tolerance...
    Didn't find DDTM, increasing tolerance...
    Didn't find DDTM, increasing tolerance...
    Didn't find DDTM, increasing tolerance...
    Didn't find DDTM, increasing tolerance...
    Didn't find DDTM, increasing tolerance...
    Successfully executed
    it would be creat help if some one could creat a working one to get from VEB to the magic shop or help me
    I see Now, says the blind man

  4. #4
    Join Date
    Nov 2009
    Location
    Seattle, WA
    Posts
    589
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    You gotta make the Colors static. All of your subpoints & MainPoint should have the same color. Like 8881803;
    Update: Someone Could Create one for you, but whats the fun, and not to mention accuracy, of that >.>
    Last edited by Heavenguard; 12-10-2009 at 07:02 PM. Reason: Updating
    Don't Troll, Don't Fight, Just keep the Respect
    Status : Offline

    Feel free to re-make my scripts ;D
    Community Member

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

    Default

    Quote Originally Posted by Heavenguard View Post
    You gotta make the Colors static. All of your subpoints & MainPoint should have the same color. Like 8881803;
    Update: Someone Could Create one for you, but whats the fun, and not to mention accuracy, of that >.>
    lol how can i get them static

    Random Varock road colour
    Code:
    Color Picked: 8751493 at (888, -17653182)
    Color Picked: 8751493 at (877, -17653184)
    Color Picked: 8751493 at (867, -17653181)
    Color Picked: 8883079 at (864, -17653187)
    Color Picked: 8620163 at (857, -17653187)
    Color Picked: 8751493 at (858, -17653184)
    Random dirt road colour

    Code:
    Color Picked: 6785682 at (938, -17653157)
    Color Picked: 6719888 at (939, -17653152)
    Color Picked: 6719888 at (944, -17653147)
    Color Picked: 6653838 at (944, -17653134)
    Color Picked: 6653838 at (941, -17653121)
    Color Picked: 13623007 at (1067, -17652963)
    I see Now, says the blind man

  6. #6
    Join Date
    Nov 2009
    Location
    Seattle, WA
    Posts
    589
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Dont use AutoColors XD. Tell you what, here ill fix it for you. I believe the AutoColors are currently broken.
    SCAR Code:
    program New;
    {.include SRL/SRL.scar}
    Var Tol:integer;



    function SetDDTM(WalkNumber: Integer): Integer;
    var
      dtmMainPoint: TDTMPointDef;
      dtmSubPoints: Array [0..4] of TDTMPointDef;
      TempTDTM: TDTM;
    begin
      Case WalkNumber Of
      0: begin
      dtmMainPoint.x := 945;  // Make sure the Points you picked are seperated a good distance.
      dtmMainPoint.y := 346;
      dtmMainPoint.AreaSize := 1;
      dtmMainPoint.AreaShape := 0;
      dtmMainPoint.Color := 8881803;
      dtmMainPoint.Tolerance := Tol;

      dtmSubPoints[0].x := 945;
      dtmSubPoints[0].y := 346;
      dtmSubPoints[0].AreaSize := 1;
      dtmSubPoints[0].AreaShape := 0;
      dtmSubPoints[0].Color := 8881803;
      dtmSubPoints[0].Tolerance := Tol;

      dtmSubPoints[1].x := 953;
      dtmSubPoints[1].y := 387;
      dtmSubPoints[1].AreaSize := 1;
      dtmSubPoints[1].AreaShape := 0;
      dtmSubPoints[1].Color := 8881803;
      dtmSubPoints[1].Tolerance := Tol;

      dtmSubPoints[2].x := 946;
      dtmSubPoints[2].y := 372;
      dtmSubPoints[2].AreaSize := 1;
      dtmSubPoints[2].AreaShape := 0;
      dtmSubPoints[2].Color := 8881803;
      dtmSubPoints[2].Tolerance := Tol;

      dtmSubPoints[3].x := 925;
      dtmSubPoints[3].y := 349;
      dtmSubPoints[3].AreaSize := 1;
      dtmSubPoints[3].AreaShape := 0;
      dtmSubPoints[3].Color := 8881803;
      dtmSubPoints[3].Tolerance := Tol;

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


    Function Walk(WalkNumber: Integer): Boolean;
    var
      TheDDTM, x, y : Integer;
    begin
      SetRun(True);
      Tol := 5;
      TheDDTM := SetDDTM(WalkNumber);
      repeat
        if not DTMRotated(TheDDTM, x, y, MMX1, MMY1, MMX2, MMY2) then
        begin
          Writeln('Didn''t find DDTM, increasing tolerance...');
          Wait(1000+random(1000))
          IncEx(Tol, 10);
          FreeDTM(TheDDTM);
          TheDDTM := SetDDTM(WalkNumber);
        end else
        begin
          Writeln('Walking');
          Mouse(x, y, 4, 4, True);
          Result := True;
          Break;
        end;
      until((Tol >= 90) or not LoggedIn);
      Tol := 5;
      FreeDTM(TheDDTM);
    end;


    begin
    SetupSRL;
      If Walk(0) Then
          Writeln('we should be in shop');
    end.
    Try to see if it works
    Last edited by Heavenguard; 12-10-2009 at 07:12 PM. Reason: Updating
    Don't Troll, Don't Fight, Just keep the Respect
    Status : Offline

    Feel free to re-make my scripts ;D
    Community Member

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

    Default

    Where did you make the DDTM? cuz i can't find it lol
    I see Now, says the blind man

  8. #8
    Join Date
    Nov 2009
    Location
    Seattle, WA
    Posts
    589
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I didn't make the DDTM >.> I fixed yours that you made. I just adjusted the Colors on it. You don't see the Script?
    Copy and Paste that whole thing and just replace yours.
    Don't Troll, Don't Fight, Just keep the Respect
    Status : Offline

    Feel free to re-make my scripts ;D
    Community Member

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

    Default

    Quote Originally Posted by Heavenguard View Post
    I didn't make the DDTM >.> I fixed yours that you made. I just adjusted the Colors on it. You don't see the Script?
    Copy and Paste that whole thing and just replace yours.
    I did copy and past it but it still did not find it lol
    I see Now, says the blind man

  10. #10
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Are you sure it's looking for the right color at the right spot?

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  11. #11
    Join Date
    Oct 2007
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Make sure the area of the DDTM you are searching for it in the view of your map.
    Woot woot.

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

    Default

    Quote Originally Posted by Ultra View Post
    Make sure the area of the DDTM you are searching for it in the view of your map.
    should be

    o well i give up
    I see Now, says the blind man

  13. #13
    Join Date
    Nov 2009
    Location
    Seattle, WA
    Posts
    589
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    NO do NOT give up, if you give up DDTM's I cant wait to see when you learn TPA , ATPA >.>. Learn it bro, I was in your shoes. LEARN IT LOL!!
    Don't Troll, Don't Fight, Just keep the Respect
    Status : Offline

    Feel free to re-make my scripts ;D
    Community Member

  14. #14
    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

    Yes, i agree with heaven. I had troubles with DDTM's too...but it was worth it in the end. LEARNING means WORKING for knowledge. If you can't handle that, then...:/
    NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN

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

    Default

    Quote Originally Posted by Heavenguard View Post
    NO do NOT give up, if you give up DDTM's I cant wait to see when you learn TPA , ATPA >.>. Learn it bro, I was in your shoes. LEARN IT LOL!!
    i meant im giving up on walking and varock for the mo i think i should try some thing easyer for the time being
    I see Now, says the blind man

  16. #16
    Join Date
    Nov 2009
    Location
    Seattle, WA
    Posts
    589
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Yeah just do that , I suggest going to Draynor and try to make a DDTM to walk into the Willow Tree's Area. If you really needed that Varrock Magic Shop thing, When you learn Radial Walk and Symbol Finding, that will be pretty easy. Don't give up, were here to help you
    Don't Troll, Don't Fight, Just keep the Respect
    Status : Offline

    Feel free to re-make my scripts ;D
    Community Member

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

    Default

    give me a screenshot of the place you are trying to walk to, or your msn and I'll give you some help.

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
  •