Vinyl Scratch
2012-07-31 22:32:37
function Siphon(EsslingUpText:TStringArray; Color, Tol:integer; Hue, Sat:extended): Boolean;
var
Data:TIntegerArray;
TPA: TPointArray;
ATPA: Array of TPointArray;
Box:Tbox;
x,y: Integer;
begin
SetLength(Data, 4);
Data[3]:=GetColorToleranceSpeed;
ColorToleranceSpeed(2);
ColorToleranceSpeed(Data[3]);
ATPA:= TPAToATPAEx(TPA, 15, 15);
Data[1]:=High(ATPA);
for Data[0] := 0 to Data[1] do
begin
MiddleTPAEx(ATPA[Data[0]], x, y);
Box.X1:=x;
Box.Y1:=y;
Box.X2:=x+2;
Box.Y2:=y+2;
MouseTBox(Box, Move);
if WaitUpTextMulti(EsslingUptext, 300) then
begin
case Random(2) of
0: begin
ClickMouse2(True);
if(DidRedClick())then
Wait(RandomRange(28000, 32000));
Break;
end;
1: begin
ClickMouse2(False);
Wait(Randomrange(28000, 30000))
else
FindRandoms;
Break;
end;
end;
begin
Result:= True;
end;
end;
end;
end;My function that I made, wanted to see if you guys wanted to add it to the SRL include, for Runecrafting, idk. I just wanted to contribute to SRL, along with the community. I'm going to make more functions. ;)