Results 1 to 14 of 14

Thread: How to fix this changing color problem?

  1. #1
    Join Date
    Apr 2012
    Posts
    92
    Mentioned
    0 Post(s)
    Quoted
    23 Post(s)

    Default How to fix this changing color problem?

    Hello guys,

    I got my 2 DDTM cases to work, but when I logged back in it didn't. I think it's because of the minimap color that changes. I really don't know how to fix this..

    I uploaded 2 images of the minimap, so you know what I mean.

    Minimap1.pngminimap2.png
    Last edited by juunhoad; 03-02-2013 at 09:17 PM.

  2. #2
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    change the tolerance


  3. #3
    Join Date
    Apr 2012
    Posts
    92
    Mentioned
    0 Post(s)
    Quoted
    23 Post(s)

    Default

    Quote Originally Posted by rjj95 View Post
    change the tolerance

    Even If I have it on 25 it still doesn't work.

  4. #4
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Are you searching for the DTM in the right area? show us your code

  5. #5
    Join Date
    Apr 2012
    Posts
    92
    Mentioned
    0 Post(s)
    Quoted
    23 Post(s)

    Default

    Quote Originally Posted by rjj95 View Post
    Are you searching for the DTM in the right area? show us your code
    here, don't mind the 50 tolerance. Was just checking that out.:
    Simba Code:
    program new;
    {$i SRL/SRL.simba}
    {$I P07Include.Simba}


    function FindFloorColor0: Integer;
    var
      Point0 : TPointArray;
    begin
      if FindColorsTolerance(Point0,1480557 , P07_MMX1,P07_MMY1,P07_MMX2,P07_MMY2, 15) then
        Result:= GetColor(Point0[0].X, Point0[0].Y);
    end;

    function FindFloorColor1: Integer;
    var
      Point1 : TPointArray;
    begin
      if FindColorsTolerance(Point1, 1343324, P07_MMX1,P07_MMY1,P07_MMX2,P07_MMY2, 15) then
        Result:= GetColor(Point1[1].X, Point1[1].Y);
    end;

    function FindFloorColor2: Integer;
    var
      Point2 : TPointArray;
    begin
      if FindColorsTolerance(Point2, 1344360, P07_MMX1,P07_MMY1,P07_MMX2,P07_MMY2, 15) then
        Result:= GetColor(Point2[2].X, Point2[2].Y);
    end;

    function FindFloorColor3: Integer;
    var
      Point3 : TPointArray;
    begin
      if FindColorsTolerance(Point3, 1343103, P07_MMX1,P07_MMY1,P07_MMX2,P07_MMY2, 15) then
        Result:= GetColor(Point3[3].X, Point3[3].Y);
    end;

    function FindFloorColor4: Integer;
    var
      Point0 : TPointArray;
    begin
      if FindColorsTolerance(Point0, 1343342, P07_MMX1,P07_MMY1,P07_MMX2,P07_MMY2, 15) then
        Result:= GetColor(Point0[0].X, Point0[0].Y);
    end;


    function FindFloorColor5: Integer;
    var
      Point0 : TPointArray;
    begin
      if FindColorsTolerance(Point0, 1210481, P07_MMX1,P07_MMY1,P07_MMX2,P07_MMY2, 15) then
        Result:= GetColor(Point0[0].X, Point0[0].Y);
    end;

    function FindFloorColor6: Integer;
    var
      Point1 : TPointArray;
    begin
      if FindColorsTolerance(Point1, 1209204, P07_MMX1,P07_MMY1,P07_MMX2,P07_MMY2, 15) then
        Result:= GetColor(Point1[1].X, Point1[1].Y);
    end;

    function FindFloorColor7: Integer;
    var
      Point2 : TPointArray;
    begin
      if FindColorsTolerance(Point2, 1211473, P07_MMX1,P07_MMY1,P07_MMX2,P07_MMY2, 15) then
        Result:= GetColor(Point2[2].X, Point2[2].Y);
    end;

    function FindFloorColor8: Integer;
    var
      Point3 : TPointArray;
    begin
      if FindColorsTolerance(Point3, 1209429, P07_MMX1,P07_MMY1,P07_MMX2,P07_MMY2, 15) then
        Result:= GetColor(Point3[3].X, Point3[3].Y);
    end;
    function FindFloorColor9: Integer;
    var
      Point3 : TPointArray;
    begin
      if FindColorsTolerance(Point3, 1209429, P07_MMX1,P07_MMY1,P07_MMX2,P07_MMY2, 15) then
        Result:= GetColor(Point3[3].X, Point3[3].Y);
    end;

    function FindFloorColor10: Integer;
    var
      Point1 : TPointArray;
    begin
      if FindColorsTolerance(Point1, 1209204, P07_MMX1,P07_MMY1,P07_MMX2,P07_MMY2, 15) then
        Result:= GetColor(Point1[1].X, Point1[1].Y);
    end;

    function FindFloorColor11: Integer;
    var
      Point2 : TPointArray;
    begin
      if FindColorsTolerance(Point2, 1211473, P07_MMX1,P07_MMY1,P07_MMX2,P07_MMY2, 15) then
        Result:= GetColor(Point2[2].X, Point2[2].Y);
    end;

    function FindFloorColor12: Integer;
    var
      Point3 : TPointArray;
    begin
      if FindColorsTolerance(Point3, 1209429, P07_MMX1,P07_MMY1,P07_MMX2,P07_MMY2, 15) then
        Result:= GetColor(Point3[3].X, Point3[3].Y);
    end;
    function FindFloorColor13: Integer;
    var
      Point3 : TPointArray;
    begin
      if FindColorsTolerance(Point3, 1209429, P07_MMX1,P07_MMY1,P07_MMX2,P07_MMY2, 15) then
        Result:= GetColor(Point3[3].X, Point3[3].Y);
    end;

    function DDTMWalk(WalkNumber: Integer): Integer;
    var
      dtmMainPoint: TDTMPointDef;
      dtmSubPoints: array[0..4] of TDTMPointDef;
      TempTDTM: TDTM;
    begin
      case WalkNumber of
        1: begin
             dtmMainPoint.x := 612;
             dtmMainPoint.y := 110;
             dtmMainPoint.AreaSize := 1;
             dtmMainPoint.AreaShape := 0;
             dtmMainPoint.Color := FindFloorColor0;
             dtmMainPoint.Tolerance := 50;

             dtmSubPoints[0].x := 612;
             dtmSubPoints[0].y := 110;
             dtmSubPoints[0].AreaSize := 1;
             dtmSubPoints[0].AreaShape := 0;
             dtmSubPoints[0].Color := FindFloorColor0;
             dtmSubPoints[0].Tolerance := 50;

             dtmSubPoints[1].x := 616;
             dtmSubPoints[1].y := 79;
             dtmSubPoints[1].AreaSize := 1;
             dtmSubPoints[1].AreaShape := 0;
             dtmSubPoints[1].Color := FindFloorColor1;
             dtmSubPoints[1].Tolerance := 50;

             dtmSubPoints[2].x := 630;
             dtmSubPoints[2].y := 142;
             dtmSubPoints[2].AreaSize := 1;
             dtmSubPoints[2].AreaShape := 0;
             dtmSubPoints[2].Color := FindFloorColor2;
             dtmSubPoints[2].Tolerance := 50;

             dtmSubPoints[3].x := 647;
             dtmSubPoints[3].y := 97;
             dtmSubPoints[3].AreaSize := 1;
             dtmSubPoints[3].AreaShape := 0;
             dtmSubPoints[3].Color := FindFloorColor3;
             dtmSubPoints[3].Tolerance := 50;

             dtmSubPoints[4].x := 647;
             dtmSubPoints[4].y := 118;
             dtmSubPoints[4].AreaSize := 1;
             dtmSubPoints[4].AreaShape := 0;
             dtmSubPoints[4].Color := FindFloorColor4;
             dtmSubPoints[4].Tolerance := 50;

             TempTDTM.MainPoint := dtmMainPoint;
             TempTDTM.SubPoints := dtmSubPoints;
             Result := AddDTM(TempTDTM);
           end;
         2:begin
             dtmMainPoint.x := 618;
             dtmMainPoint.y := 22;
             dtmMainPoint.AreaSize := 1;
             dtmMainPoint.AreaShape := 0;
             dtmMainPoint.Color := FindFloorColor5;
             dtmMainPoint.Tolerance := 10;

             dtmSubPoints[0].x := 613;
             dtmSubPoints[0].y := 22;
             dtmSubPoints[0].AreaSize := 1;
             dtmSubPoints[0].AreaShape := 0;
             dtmSubPoints[0].Color := FindFloorColor5;
             dtmSubPoints[0].Tolerance := 10;

             dtmSubPoints[1].x := 643;
             dtmSubPoints[1].y := 15;
             dtmSubPoints[1].AreaSize := 1;
             dtmSubPoints[1].AreaShape := 0;
             dtmSubPoints[1].Color := FindFloorColor6;
             dtmSubPoints[1].Tolerance := 10;

             dtmSubPoints[2].x := 628;
             dtmSubPoints[2].y := 50;
             dtmSubPoints[2].AreaSize := 1;
             dtmSubPoints[2].AreaShape := 0;
             dtmSubPoints[2].Color := FindFloorColor7;
             dtmSubPoints[2].Tolerance := 10;

             dtmSubPoints[3].x := 604;
             dtmSubPoints[3].y := 39;
             dtmSubPoints[3].AreaSize := 1;
             dtmSubPoints[3].AreaShape := 0;
             dtmSubPoints[3].Color := FindFloorColor8;
             dtmSubPoints[3].Tolerance := 10;

             dtmSubPoints[4].x := 635;
             dtmSubPoints[4].y := 43;
             dtmSubPoints[4].AreaSize := 1;
             dtmSubPoints[4].AreaShape := 0;
             dtmSubPoints[4].Color := FindFloorColor8;
             dtmSubPoints[4].Tolerance := 10;

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

     function Walk: Boolean;
    var
      WalkDTM,x ,y: integer;
    begin
      WalkDTM := DDTMWalk(1);
      if FindDTM(WalkDTM, X, Y, MMX1,MMY1,MMX2,MMY2) then
      begin
        MMouse(X, Y, 5, 5);
        ClickMouse2(mouse_left);
        P07_FFlag;
       end;
     begin
      WalkDTM := DDTMwalk(2);
      if FindDTM(WalkDTM, X, Y, MMX1,MMY1,MMX2,MMY2) then
        begin
        MMouse(X, Y, 5, 5);
        ClickMouse2(mouse_left);
       end;
       end;
      end;


    begin
      SetupP07Include;
      Walk;
    end.

  6. #6
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Oh your doing DDTM walking? Maybe it can't find the other DTM's I'm not sure how to do DDTM walking though

  7. #7
    Join Date
    Apr 2012
    Posts
    92
    Mentioned
    0 Post(s)
    Quoted
    23 Post(s)

    Default

    Quote Originally Posted by rjj95 View Post
    Oh your doing DDTM walking? Maybe it can't find the other DTM's I'm not sure how to do DDTM walking though
    Ya haha, well how would you do walking in 07scape?

  8. #8
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by juunhoad View Post
    Ya haha, well how would you do walking in 07scape?
    Object DDTM or rotated DTM or TPA

  9. #9
    Join Date
    Feb 2013
    Location
    United States
    Posts
    53
    Mentioned
    2 Post(s)
    Quoted
    12 Post(s)

    Default

    Ive been having this same problem as well with a script i've written to run back to draynor willows if the bot dies. My DTM's always break because of the change in color whenever the client is restarted.

    Please post if you've found a suitable alternative

  10. #10
    Join Date
    Apr 2012
    Posts
    92
    Mentioned
    0 Post(s)
    Quoted
    23 Post(s)

    Default

    Quote Originally Posted by vizzyy View Post
    Ive been having this same problem as well with a script i've written to run back to draynor willows if the bot dies. My DTM's always break because of the change in color whenever the client is restarted.

    Please post if you've found a suitable alternative
    I'm thinking of using SPS. I really don't know whats going on with DDTM, but it doesn't work. Would be nice if a experience DDTM'er would make a video about it(for 07scape).

  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 juunhoad View Post
    I'm thinking of using SPS. I really don't know whats going on with DDTM, but it doesn't work. Would be nice if a experience DDTM'er would make a video about it(for 07scape).
    I'm having the same issue with ddtm's

  12. #12
    Join Date
    Apr 2012
    Posts
    92
    Mentioned
    0 Post(s)
    Quoted
    23 Post(s)

    Default

    Quote Originally Posted by SRLKing View Post
    I'm having the same issue with ddtm's
    damm, what walking method are you going to use now?

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

    Default

    Quote Originally Posted by juunhoad View Post
    damm, what walking method are you going to use now?
    Just going to continue with multiple DTM's with a few different logins

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

    Default

    Most of the times I use 255 for mainpoint. And tolerance as high as possible, without screwing the (D)DTM up.

    Creds to DannyRS for this wonderful sig!

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
  •