SRL Archive - Help

Aided FindDTM??


Brotein

2012-03-11 17:39:23

So I'm trying to write an agility script right now. It's built around DTMs, and they look fine in the DTM editor. Now I ran my script for a while, and it worked fine. The next time I started it, it had issues finding the DTMs, after finding it once before. Then if I restarted the client again, it worked again. The conditions look all the same for the script, and sometimes it'll find it after a few minutes.

So my question is, is there a way to aid the FindDTMRotated function so that it will not have issues searching for the area to click on?

Nebula

2012-03-11 17:43:01

Make two separate DTMs for your object instead of just one, and then do this:


if ((FindDTMRoated(DTM1...)) or (FindDTMRoated(DTM2...)) then
Mouse(x, y, 5, 5, true);

that way there is a 2x higher chance of your object being found, You could even use 3 or 4, so it's even more findable.

Drax

2012-03-11 17:44:15

Runescape changes the shape slightly of objects. The best thing for you to do is make you DTMs again and have the sub points inside the object not around the outside of it.

Brotein

2012-03-11 18:00:08

Well the issue it has is finding an object that is "tileable". The log balance DTM will draw red X's nearly all over the shape of the log, and the same for the plank balance DTM. But both these objects consist of roughly 4 color shades, so I thought it would have made it easier to find. I will try rebuilding using multiple DTMs for that one to hopefully get it to work.

Brotein

2012-03-11 18:08:11

Ok so I built 3 DTMs targeting different colors of that log, seems to work fine now, thanks for the advice!