Mor
2012-04-06 17:02:00
What is wrong in my script?I have tried to put the "repeat-until" in other places in the code but still it doesnt work.
The color I picked is the color of the leaves,and there is no other object with the same color.
The mouse always return to the inventory tab.
The color I picked is the color of the leaves,and there is no other object with the same color.
The mouse always return to the inventory tab.
procedure PickBanana;
Var
x, y : Integer;
TPA : TPointArray;
MyPoint : TPoint;
I : Integer;
begin
FindColorsTolerance( TPA, 6336583, MSX1, MSY1, MSX2, MSY2, 17);
begin
for i:=0 to high(TPA) do
repeat
MyPoint :=TPA[i];
MMouse(MyPoint.x,MyPoint.y,1,1);
if IsUpText('ick') then
begin
wait(700);
Mouse(x,y,1,1,true);
wait(900);
end;
until (InvFull);
end;
end;
begin
//{$IFDEF SMART}
// Smart_Server := 0;
// Smart_Members := True;
// Smart_Signed := True;
// Smart_SuperDetail := False;
//{$ENDIF}
SetUpSRL();
ActivateClient();
DeclarePlayers();
LoginPlayer();
PickBanana;
end.