Peanuts
2013-05-28 10:41:09
How?
Function Findiron:boolean;
var
ironTPA, WoodTPA:TPointArray;
ironATPA:T2DPointArray;
ironBox:TBox;
i, r, counter:integer;
begin
if not(loggedin) then
exit;
SetColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.23, 0.83);
if findcolorstolerance(ironTPA, 6697071, MSX1, MSY1, MSX2, MSY2, 11) then
begin
SortATPASize(ironATPA, True);
for i := 0 to high(ironATPA) do
begin
ironBox := GetTPABounds(ironATPA[i]);
SetColorSpeed2Modifiers(0.04, 0.28);
if findcolorstolerance(ironTPA, 4609378, ironBox.x1, ironbox.Y1, ironbox.X2, ironbox.Y2, 15) then
Break;
if i = high(ironATPA) then
begin
writeln('Colours not finding!');
Terminatescript;
end;
end;
SetColorToleranceSpeed(1);
SetColorSpeed2Modifiers(0.02, 0.02);
marktime(counter);
while (not isuptextmulticustom(['ron','iron'])) do
begin
r := random(length(ironTPA));
mmouse(ironTPA[r].x, ironTPA[r].y, 3, 3);
wait(randomrange(200, 500));
if timefrommark(counter) > 5000 then
begin
writeln('No Uptext Found');
Logout;
Terminatescript;
end;
end;
clickmouse2(mouse_right);
if ChooseOption('em') then
begin
Writeln('Mining...');
end;
end;
end;