NexPB
2012-01-21 13:55:22
Title.
function FindInstruction: String;
Var
box: TBox;
begin
box := IntToBox(207, 37, 309, 54);
SMART_DrawBox(box);
if (FindTextTPA(clWhite, 20, box.X1, box.Y1, box. X2, box.Y2, 'Helm', SmallChars, nothing)) then
begin
Writeln('Found instrcution.');
Result := 'helm';
end else
if (FindTextTPA(clWhite, 20, box.X1, box.Y1, box. X2, box.Y2, 'Boots', SmallChars, nothing)) then
begin
Writeln('Found instrcution.');
Result := 'boots';
end else
if (FindTextTPA(clWhite, 20, box.X1, box.Y1, box. X2, box.Y2, 'Chestplate', SmallChars, nothing)) then
begin
Writeln('Found instrcution.');
Result := 'body';
end else
if (FindTextTPA(clWhite, 20, box.X1, box.Y1, box. X2, box.Y2, 'Gauntlets', SmallChars, nothing)) then
begin
Writeln('Found instrcution.');
Result := 'gaunts';
end else
Exit;
end;