JPHamlett
2009-07-25 02:36:41
I give credit to MouseitemId cause i only changed alittle bit
function R_ClickItemID(ID: integer): Boolean;
var
Inv, x, y, itemID, i: integer;
B: TBox;
begin
Inv := GetInterface(149, 0);
Result := False;
for i := 0 to 27 do
begin
itemID := SmartGetFieldArrayInt(Inv, InventoryItemIDs, i);
if (itemID > 0) and (itemID = ID) then
begin
B := InvBox(i+1);
MouseBox(B.x1, B.y1, B.x2, B.y2, 1);
end;
end;
SmartFreeObject(Inv);
end;
lll go into more detail later but i g2g