Hi.
I need to find a way to store the position of all the DTMs on the screen into a TPA , just like the FindColors function does with colors.
thx for all the helpers :P
Hi.
I need to find a way to store the position of all the DTMs on the screen into a TPA , just like the FindColors function does with colors.
thx for all the helpers :P

FindDTM(DTM: Integer; var x, y: Integer; xs, ys, xe, ye: Integer): Boolean;
(Or something like that).. It'll store the x and y coords.
(Use like, if(FindDTM(DTM, x, y, 0, 0, 100, 100))then Mouse(x, y, 2, 2, True); )
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
If it's just one DTM, then do this:
SCAR Code:program DTMToTPA;
{.include SRL/SRL.scar}
var
I, X, Y, DTM : Integer;
TPA : TPointArray;
begin
repeat
if FindDTM(X, Y, DTM, X1, Y1, X2, Y2) then
begin
TPA[0]:= X, Y;
Inc(I);
end;
until(not FindDTM(X, Y, DTM, X1, Y1, X2, Y2);
end
Richard
<3
Originally Posted by Eminem
I posted a FindBitmaps somewhere a long time ago that could be converted to FindDTMs (or the other way around, I forgot) but I'm having trouble finding it. Though another solution is copying client to bitmap, and then doing a FastSetPixel to 'break' each found DTM so it will find the next one, but that might be too slow.
Ah I found it. I couldn't find it at first because I was search for FindBitmaps and FindDTMs, but I forgot I called it FindAllBitmaps (this was from before SCAR had FindBitmaps). Here you go, just change all bitmap stuff to DTM http://www.villavu.com/forum/showthr...map#post108319
Last edited by Boreas; 09-04-2009 at 04:13 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)