SCAR Code:
{*******************************************************************************
function ExamineInv(F, T : Integer) Boolean;
By: R1ch
Description: Chooses a random item in the inventory to examine
*******************************************************************************}
function ExamineInv(F, T: Integer) Boolean;
var
i, c : Integer;
p: TIntegerArray;
begin
if (InvEmpty) or (not(LoggedIn)) or (not InRange(T - F, 0, 27)) then Exit;
SetLength(p, T - F);
c := 0;
for i := F to T do
if ItemExists(I) then
begin
p[c]:= I;
Inc(c);
end;
MouseItem(p[Random(c)], False);
Wait(100 + Random(200));;
Result:=WaitOptionEx('xamine', 'action', ClickLeft, 300);
end;
Made it work