View Full Version : Aided FindDTM??
Brotein
03-11-2012, 09:39 PM
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
03-11-2012, 09:43 PM
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.
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
03-11-2012, 10:00 PM
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
03-11-2012, 10:08 PM
Ok so I built 3 DTMs targeting different colors of that log, seems to work fine now, thanks for the advice!
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.