Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

GetFoundItems

Modern replacement for GetFindedList.

Returns search results as an array of Cardinal. If nothing was found, returns an empty array.

The search is performed by FindType, FindTypeEx, FindNotoriety, FindTypesArrayEx, etc.

Unlike GetFindedList, which fills a TStringList with hex-formatted strings, this method returns numeric IDs directly — no conversion needed.

In Python, the equivalent function is GetFoundList (alias for GetFindedList, which already returns list[int]).

Современная замена для GetFindedList.

Возвращает результаты поиска в виде массива Cardinal. Если ничего не найдено, возвращает пустой массив.

Поиск выполняется через FindType, FindTypeEx, FindNotoriety, FindTypesArrayEx и т. д.

В отличие от GetFindedList, который заполняет TStringList строками в hex-формате, этот метод возвращает числовые ID напрямую — без необходимости преобразования.

В Python эквивалентная функция — GetFoundList (алиас для GetFindedList, который уже возвращает list[int]).

Pascal

function GetFoundItems: TCardinalDynArray;

Python

def GetFoundList() -> list[int]: ...

GetFoundList is an alias for GetFindedList — both return list[int] in Python.

Pascal Example

var
  Items: TCardinalDynArray;
  i: Integer;
begin
  if FindTypeEx($0E21, $FFFF, Backpack, True) > 0 then
  begin
    Items := GetFoundItems;
    for i := 0 to Length(Items) - 1 do
      AddToSystemJournal('Found: $' + IntToHex(Items[i], 8));
  end;
end.

Python Example

if FindTypeEx(0x0E21, 0xFFFF, Backpack(), True) > 0:
    items = GetFoundList()
    for obj_id in items:
        AddToSystemJournal(f'Found: ${obj_id:08X}')

See Also

GetFindedList, FindTypeEx, FindItem, FindCount, FindFullQuantity