SCAR Code:
begin
DTM := LoadDTM('ubow');//both these are integers
DTM2 := LoadDTM('bs');
if finddtm(dtm,x,y,mix1,miy1,mix2,miy2) then
begin
case random(3) of
0,1:
begin
Mouse(x,y,4,4,true);
waitFunc(@ItemClicked(x,y),10+random(15), 500);//HERE
writeln('Waited for the first item');
end;
2:
begin
mouse(x,y,4,4,false);
waitOption('se', 500);
end;
end;
if finddtm(dtm2,tx,ty,mix1,miy1,mix2,miy2) then
begin
case random(3) of
0,1:
begin
Mouse(tx,ty,4,4,true);
waitFunc(@ItemClicked(tx,ty),10+random(15), 500);''hERE
end;
2:
begin
mouse(tx,ty,4,4,false);
waitOption('se', 500);
end;
end;
end;
end;
end;
and item clicked is
SCAR Code:
Function ItemClicked(cx,cy:integer): boolean;
var D:integer;
begin
D := CoordsToItem(cx,cy);
Result := ItemActivated(D);
end;
NO clue what this could be