I've got this stinky problem, every time i restart RuneScape i have to change the DTM, otherwise it can't find it!
I've got this stinky problem, every time i restart RuneScape i have to change the DTM, otherwise it can't find it!
because colors change, try to set a tolerance, btw what is the dtm of?
Infractions, reputation, reflection, the dark side of scripting, they are.
But that's impossiblea tree icon on the map hasn't got any black outlines...
Iloveit8, how do i set a tolerance for DTMs?
for the tree icon:
SCAR Code:FindSymbol(x, y, 'tree');//not sure if it is tree....
Mouse(x, y, 2, 2, true);
Infractions, reputation, reflection, the dark side of scripting, they are.
But i really need it to be specific trees...
I had to find the color of a specific tree on MM, so I did a DTM of it so that the radialwalk has always right colors. Here's a paint picture
Well so it finds the tree, then
And voilâ you have your color refreshed every time it runs.SCAR Code:Color := GetColor (Coords found from the position of the DTM)
And when your doing a DTM look at the almost lowest bar on the right I think, there's the tolerance.
That can sound a little weird, I'm not good doing tuts
I hope you get the idea![]()
So you want the tree not the symbol but the tree, well its kinda hardbecause if your minimap is rotated a little then it isnt the same it was before
i hope you get what im saying! But some skilled scripter could do it!
try finddtmrotated...
Infractions, reputation, reflection, the dark side of scripting, they are.
FindDTMRotated(DTM, x, y, x1, y1, x2, y2: Integer; StartAngle, EndAngle, AngleStep: Extended; var Angle: Extended): Boolean;
Scans for a Rotated DTM. I use StartAngle Radians(-20) and EndAngle Radians(20) and AngleStep 0.005 This scans for the DTM -20 to 20 degrees from its origin (Mainpoint) in 0.005 radian steps, where 6.28 (= 2*pi) = 360 degrees.
so:
FindDTMRotated(DTM, x, y, MMx1, MMy1, MMx2, MMy2, Radians(-20), Radians(20), 0.005, Angle); will scan for the DTM on the minimap with a rotation of 40 degrees ( 20 to the left and 20 to the right) around its Mainpoint. Using the SCAR 2.03 DTM-Editor set the colortolerance of each subpoint to 20-50 (experiment with these values). Using DIVI I would suggest using Dynamic DTM's, since you can input the colors/points/tolerances etc. runtime.
More on this subject maybe later. Hope this helps a bit.
SRL is a Library of routines made by the SRL community written for the Program Simba.We produce Scripts for the game Runescape.
Yes, this helped alot. Thank you very much.
EDIT: And what are Dynamic DTM's ?
Ya, i was kind of busyso i had no time for searching, and its always easyer to just ask in here, but thats just my opionion!
I have MakeCompass(' N'); in my script so FindDTMRotated won't work, will it?
@Pownzor, that won't work, because there are lots of trees on the minimap at draynor, with all the same color... and i just need the trees, and not the oaks or willows... i need those later :P
(Creating a multi tree chopper + banker)
why wouldnt finddtm rotated work? perfect north is a little bit off(always) so try finddtmrotated..
Infractions, reputation, reflection, the dark side of scripting, they are.
Ok i will try immediatly when i'm on the right comp..
There are currently 1 users browsing this thread. (0 members and 1 guests)