xtrapsp
2013-07-16 11:33:08
Hey guys,
having ridiculous slow pickups :/
removed name etc for obvious reasons (Private script).
edit: got solution i think?
having ridiculous slow pickups :/
function Finditem:Boolean;
var
x, y, CTS, i, T, InvC:Integer;
TPA, RedTPA:TpointArray;
ATPA:T2DPointArray;
begin
LoginSetup;
GameTab(Tab_Inv);
CTS := GetColorToleranceSpeed
SetColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.78, 3.80);
if FindColorsTolerance(TPA, 2134643, MSX1, MSY1, MSX2, MSY2 - 10, 3) then
begin
SetColorToleranceSpeed(CTS);
SetColorSpeed2Modifiers(0.2, 0.2);
if Length(TPA) < 1 then Exit;
SplitTPAWrap(TPA, 7, ATPA);
SortATPAFromMidPoint(ATPA, Point(MSCX, MSCY));
Smart_DebugATPA(false, ATPA);
MarkTime(T);
InvC := InvCount;
for i := 0 to High(ATPA) do
begin
MiddleTPAEx(ATPA[i], x, y);
MMouse(x, y, 2, 2);
if WaitUptextMulti(['', '', ''], 500) then
begin
ClickMouse2(Mouse_left);
while TimeFromMark(T) < 3000 do
begin
Wait(200);
if InvC = ( InvCount - 1) then
begin
FFlag(1);
Result := True;
Exit;
end;
end;
end else
begin
if WaitUptextMulti([''], 500) then
begin
ClickMouse2(Mouse_Right);
if WaitOptionMulti(['', ''], 500) then
begin
while TimeFromMark(T) < 3000 do
begin
Wait(200);
if InvC = ( InvCount - 1) then
begin
FFlag(1);
Result := True;
Exit;
end;
end;
end;
end else Exit;
end;
end;
end;
end; removed name etc for obvious reasons (Private script).
edit: got solution i think?