Naike
2008-06-27 14:25:29
function ObliTrade: Boolean;
var
TPA : Tpointarray;
h, i, x, y, cts, OldMS: Integer;
ATPA: T2DPointArray;
begin
if (not LoggedIn) then exit;
If(ShopScreen) then Exit;
Result := False;
Cts := GetColorToleranceSpeed;
OldMS := MouseSpeed;
MouseSpeed := 30;
ColorToleranceSpeed(2);
FindColorsTolerance(TPA, 15789808, MSX1, MSY1, MSX2, MSY2, 25);
ATPA := TPAtoATPAEx(TPA, 5, 5);
SortATPASize(ATPA, True);
h := High(TPA);
for i := 0 to h do
begin
MiddleTPAEx(ATPA[i], x, y);
MMouse(x, y, 8, 8);
if IsUpText('alk') then
Continue;
GetMousePos(x, y);
Mouse(x, y, 0, 0, False);
if ChooseOption('rade') then
begin
FFlag(0);
Wait(RandomRange(800, 1500));
If(Not(ShopScreen))Then
begin
FindNormalRandoms;
ObliTrade;
end;
result := true;
MouseSpeed := OldMS;
exit;
end;
end;
end;Whats wrong? I cant see it can you?
Figure it out and i got some cookies for you!