DeSnob
2011-01-11 16:56:58
function FindRock: Boolean;
var
Rocks: TRSObjectArray;
begin
Rocks := GetObjectByID(Which, OBJECT_TYPE_INTERACTABLE, 15);<TROUBLE MAKER
R_FindRandoms;
if Length(Rocks) < 0 then
LogOut;
for i:= 0 to High(Rocks) do
begin
YRock := Rocks[i].Tile;
YRockID := Rocks[i].ID;
RockP := TileToMs(Rocks[i].Tile, 0);
MMouse(RockP.x, RockP.y, 5, 5);
Wait(100+random(230));
R_FindRandoms;
If IsUpText('ine') then
begin
GetMousePos(x, y);
Mouse(x, y, 1, 1, True);
Writeln('Clicked Rock');
Result := True;
Exit;
end;
end;
end; Just trying to use my powerminer again, but I get this issue.