ExamineInv ~ Antiban.scar ~ R1ch
This is a nice little function which examines a random item in the inventory if it finds one. If it finds an item and examines it, then the function will return true. Please let me know what you think.
SCAR Code:
*******************************************************************************
function ExamineInv(FromI, ToI : Integer) Boolean;
By: R1ch
Description: Chooses a random item in the inventory to examine
*******************************************************************************}
function ExamineInv(FromI, ToI : Integer) Boolean;
var
I, T : Integer;
Poz : TIntegerArray;
begin
if (InvEmpty or (not(LoggedIn))) then
Exit;
for I:= FromI to ToI do
if ItemExists(I) then
Poz[I]:= I;
MouseItem(Random(Poz), False);
Wait(500 + Random(1000);
Result:=WaitOption('xamine', 50);
end;
Richard.