SRL Archive - OSR Help

How to fix this changing color problem?


juunhoad

2013-03-02 15:56:52

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.

[ATTACH=CONFIG]19542[/ATTACH][ATTACH=CONFIG]19543[/ATTACH]

rj

2013-03-02 16:01:35

change the tolerance


juunhoad

2013-03-02 16:07:14

From: rjj95
change the tolerance



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

rj

2013-03-02 16:08:01

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

juunhoad

2013-03-02 16:10:25

From: rjj95
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.:
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.

rj

2013-03-02 16:12:44

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

juunhoad

2013-03-02 16:18:15

From: rjj95
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?

rj

2013-03-02 16:19:17

From: juunhoad
Ya haha, well how would you do walking in 07scape?


Object DDTM or rotated DTM or TPA

vizzyy

2013-03-02 16:30:02

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

juunhoad

2013-03-02 21:54:54

From: vizzyy
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).

King

2013-03-03 13:50:24

From: juunhoad
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

juunhoad

2013-03-03 15:05:45

From: SRLKing
I'm having the same issue with ddtm's


damm, what walking method are you going to use now?

King

2013-03-03 15:28:22

From: juunhoad
damm, what walking method are you going to use now?


Just going to continue with multiple DTM's with a few different logins

Sjoe

2013-03-03 15:36:49

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