SRL Archive - General Botting Help

Finding the right DTM.


Ross

2014-08-18 11:53:50

I'm trying to nail down a backpack check for my tanning script, but when it checks the backpack currently, it thinks that the hides are leather even if they aren't tanned. I even tried turning the tolerance all the way to 0 for the first color and this was the best I had.

http://puu.sh/aXH6b/810ce50f4b.jpg

Advice?

Here's a screenshot of an unmarked pack.

http://puu.sh/aXH9z/43ce013496.jpg

theorange

2014-08-18 16:21:20

From: therossity
I'm trying to nail down a backpack check for my tanning script, but when it checks the backpack currently, it thinks that the hides are leather even if they aren't tanned. I even tried turning the tolerance all the way to 0 for the first color and this was the best I had.

http://puu.sh/aXH6b/810ce50f4b.jpg

Advice?

Here's a screenshot of an unmarked pack.

http://puu.sh/aXH9z/43ce013496.jpg


You know you can use the tabBackpack.mouseSlot(SLOTNUMBER, MOUSE_MOVE) and then see what the hover-over text is?

The Spark

2014-08-18 18:57:23

From: theorange
You know you can use the tabBackpack.mouseSlot(SLOTNUMBER, MOUSE_MOVE) and then see what the hover-over text is?


That's completely human, and not totally bot-ish at all!


From: therossity
I'm trying to nail down a backpack check for my tanning script, but when it checks the backpack currently, it thinks that the hides are leather even if they aren't tanned. I even tried turning the tolerance all the way to 0 for the first color and this was the best I had.
]


Can you attach your dtm file?

Wire

2014-08-18 19:22:20

Most likely a bad dtm.

The Mayor

2014-08-18 20:09:47

Just make the midpoint of the DTM where the light colour would be.

TylerT

2014-08-18 23:42:38

if (tabBackpack.isItemInSlot(28)) and (isMouseOverText(['leather'])) then
begin
Your Script Here;
end

Use that to avoid using a DTM in this situation?

Ross

2014-08-19 00:09:38

From: sparkyownage
That's completely human, and not totally bot-ish at all!




Can you attach your dtm file?


Do you just want the whole script?

From: Wire
Most likely a bad dtm.


You don't want to know how many DTMs I've tried :S

From: The Mayor
Just make the midpoint of the DTM where the light colour would be.


Just tried that, and with the tolerance between 0-2 it only sees the leather, however when running the script it just assumes that everything in the pack is untanned, even after tanning.

From: TylerT
if (tabBackpack.isItemInSlot(28)) and (isMouseOverText(['leather'])) then
begin
Your Script Here;
end

Use that to avoid using a DTM in this situation?


As said above that could be a little bottish, but I'm not sure if they can monitor mouse hovering (I assume they can due to the popularity of the hover mouse off client antiban).

The Mayor

2014-08-19 00:17:05

From: therossity
Just tried that, and with the tolerance between 0-2 it only sees the leather, however when running the script it just assumes that everything in the pack is untanned, even after tanning.


If I can see a difference with my eyes then simba can :p Post a PNG of your backpack with half and half and I will do it for you

Ross

2014-08-19 00:27:31

From: The Mayor
If I can see a difference with my eyes then simba can :p Post a PNG of your backpack with half and half and I will do it for you


[ATTACH=CONFIG]23835[/ATTACH]

The only way I've been successful is by making the tolerance on the first point waaayyy low.

Wire

2014-08-19 10:28:19

Please look this file for a quick look at my dtms[ATTACH=CONFIG]23838[/ATTACH]
I by no means claim I'm a expert but simply a novice. Little run down on how i got the following DTMs; i chose the difference between the hides. The very small changing between the reds in hides/leather attempt to depict scales. This was my main target for the DTM points out compared to the non existent ones on the leather version.

The raw leather dtm

DTM := DTMFromString('mvQEAAHiczctBCoJAFMbxVxBECbnpNt6ghScIEsEiohYK5XUCU1DEoJIoPJt/5c0m2rRr4DffPN43cxHZYw0fG0QIscMWJyzhIcBBO7F2Qu0ctbNCiQsq3HFFjodmgRsyvNHgpb0zEqSo8dQ/rj2VxWzSM+8uO4417lNk+JMR9yezNfPgD3w9LbrTG1U=');

And the leather dtm
DTM := DTMFromString('m0gEAAHiczcxBCoJQFIXhWxEV2dSlNIrAhRRoDiIJIYJqg0VRIGoObBC6kn7jDGvSqAvf5b7D4blmFsFHiDU2iLHCAgGWyg7YYq97p3eszhwz/XVHjhsuSPGQUtkRJyQ444pCnSdqVOpnyiZO37zRwKYYD3tvze2JWfsnXXaj80Xrz3yeF+wiHoA=');


Because i was unable to distinguish between the two types in the second DTM i'll provide a workaround. The following is one of my personal scripts for fletching and is by no means perfected. I use this little section(chopped for simplicity) to continually run antiban if the logs are found in the inventory until all are bows. RLea will be the RawLeather dtm provided above; while Lea will be the following dtm.

function AntiBan:boolean;
begin
repeat
Wait(50);
If FindDTM(RLea, x, y, MIX1, MIY1, MIX2, MIY2) then
begin //if this is able to find the hide with scales it will continue in the loop.
FreeDTM(RLea);
WriteLn('Still tanning');
end else // this means the above sequence is ended and if the above cant happen the following will, this is called a if then else.
begin //If the RLea dtm cant be found in the inventory then the loop will break and continue with the next section.
FreeDTM(RLea);
WriteLn('No hides left');
Result:=False;
Exit;
end;
Wait(100+random(500));
until (false);
end;

Ross

2014-08-19 11:34:14

From: Wire
Please look this file for a quick look at my dtms[ATTACH=CONFIG]23838[/ATTACH]
I by no means claim I'm a expert but simply a novice. Little run down on how i got the following DTMs; i chose the difference between the hides. The very small changing between the reds in hides/leather attempt to depict scales. This was my main target for the DTM points out compared to the non existent ones on the leather version.

The raw leather dtm

DTM := DTMFromString('mvQEAAHiczctBCoJAFMbxVxBECbnpNt6ghScIEsEiohYK5XUCU1DEoJIoPJt/5c0m2rRr4DffPN43cxHZYw0fG0QIscMWJyzhIcBBO7F2Qu0ctbNCiQsq3HFFjodmgRsyvNHgpb0zEqSo8dQ/rj2VxWzSM+8uO4417lNk+JMR9yezNfPgD3w9LbrTG1U=');

And the leather dtm
DTM := DTMFromString('m0gEAAHiczcxBCoJQFIXhWxEV2dSlNIrAhRRoDiIJIYJqg0VRIGoObBC6kn7jDGvSqAvf5b7D4blmFsFHiDU2iLHCAgGWyg7YYq97p3eszhwz/XVHjhsuSPGQUtkRJyQ444pCnSdqVOpnyiZO37zRwKYYD3tvze2JWfsnXXaj80Xrz3yeF+wiHoA=');


Because i was unable to distinguish between the two types in the second DTM i'll provide a workaround. The following is one of my personal scripts for fletching and is by no means perfected. I use this little section(chopped for simplicity) to continually run antiban if the logs are found in the inventory until all are bows. RLea will be the RawLeather dtm provided above; while Lea will be the following dtm.

function AntiBan:boolean;
begin
repeat
Wait(50);
If FindDTM(RLea, x, y, MIX1, MIY1, MIX2, MIY2) then
begin //if this is able to find the hide with scales it will continue in the loop.
FreeDTM(RLea);
WriteLn('Still tanning');
end else // this means the above sequence is ended and if the above cant happen the following will, this is called a if then else.
begin //If the RLea dtm cant be found in the inventory then the loop will break and continue with the next section.
FreeDTM(RLea);
WriteLn('No hides left');
Result:=False;
Exit;
end;
Wait(100+random(500));
until (false);
end;



The Mayor was helping me out last night, and after tooling with BMPs and dozens of DTMs we ended up using a findColor which worked out simply and perfectly.