Da 0wner
2009-05-22 02:35:48
function DropAllDTM(DTM : integer) : boolean;
var
i, x, y, c, t : integer;
box : TBox;
begin
for i := 1 to 28 do
begin
if not ExistsItem(i) then
Continue;
Box := InvBox(i);
if FindDTM(DTM, x, y, Box.x1, Box.y1, Box.x2, Box.y2) then
begin
c := GetColor(x, y);
Mouse(x, y, 3, 3, false);
Wait(100 + random(100));
ChooseOptionEx('rop', 'action');
MarkTime(t);
while (GetColor(x, y) = c) and (TimeFromMark(t) <= 3000) do
if TimeFromMark(t) >= 3000 then
break;
Wait(100 + random(100));
end;
end;
while (FindDTM(DTM, x, y, MIX1, MIY1, MIX2, MIY2)) and (TimeFromMark(t) <= 2500) do
if TimeFromMark(t) >= 2500 then
break;
result := not FindDTM(DTM, x, y, MIX1, MIY1, MIX2, MIY2);
end;Drops all instances of the DTM. Very fast.