Mr. Doctor
2011-01-30 17:04:57
I am currently working on a script. It is going to use color with reflection backup (or vice-versa).
This is the part of the script right herrr that is troubling me,
I was wondering, what could I do for a reflection check if it finds the rock to make sure it is iron and it isn't mined?
Thanks in advanced.
This is the part of the script right herrr that is troubling me,
function CheckIron: TPoint;
var
i: integer;
IronTPA: TPointArray;
begin
Result := Point(-1, -1);
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(MSCX, MSCY, IronTPA, 969971, MSX1, MSY1, MSX2, MSY2, 20); // Dummy color
SetColorSpeed2Modifiers(0.2, 0.2);
ColorToleranceSpeed(1);
for i := 0 to high(GoldTPA) do
begin
MMouse(IronTPA[I].x, IronTPA[I].y, 2, 2);
if(IsUpTextMultiCustom(['ine','ock','cks'])) then
begin
Result := IronTPA[I];
Writeln('Iron Found, or a different rock. Doing a reflection check.');
// this right herrr
end
end;
end;
I was wondering, what could I do for a reflection check if it finds the rock to make sure it is iron and it isn't mined?
Thanks in advanced.