Rhynorater2
2012-03-02 12:19:05
Using findDtm is it possible to have multiple DTM strings for different items or colors without having to make a new procedure?
2012-03-02 12:19:05
2012-03-02 12:31:16
function blabla:Boolean;
var
i,x,y:Integer
dtms:Array of Integer;
begin
setLength(dtms,3);
dtms[0] := DTMFromString('blablabla');
dtms[1] := DTMFromString('blablabla');
dtms[2] := DTMFromString('blablabla');
for i := 0 to 2 do
begin
Result := FindDTM(dtms[i],x,y,100,100,200,200);
if Result then
Exit;
end;
end;
2012-03-02 12:34:38
procedure FrogFinder;
var
x, y, Frog: Integer;
begin//Begins program.
Frog := DTMFromString('mQwAAAHicY2aAAGYgZoTSrFAx12IVBvtMRQbTCGkGNiAfhhmRMBAAAFSaAnI=');
//With the above, we Defined our DTM with the code the DTM Editor gave us.
if FindDTM(Frog, x, y, MSX1, MSY1, MSX2, MSY2) then
//FindDTM(DTMname, x, y, xs, ys, xe, ys):Boolean;
begin
Mouse(x, y, 4, 4, False);
ChooseOption('ake');
Wait(3000+random(250));
Writeln('We have picked up a toad!');
FreeDTM(Frog);
end;
end;