Using findDtm is it possible to have multiple DTM strings for different items or colors without having to make a new procedure?
Using findDtm is it possible to have multiple DTM strings for different items or colors without having to make a new procedure?
Learning one step at a time.
Place them in an array and loop through them.
Simba Code: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;
Working on: Tithe Farmer
Thank you but after doing this how do i use the function with this procedure
procedure FrogFinder;
var
x, y, Frog: Integer;
begin//Begins program.
Frog := DTMFromString('mQwAAAHicY2aAAGYgZoTSrFAx12IVBvtMRQ bTCGkGNiAfhhmRMBAAAFSaAnI=');
//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;
Learning one step at a time.
There are currently 1 users browsing this thread. (0 members and 1 guests)