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

GetFindedList

Returns the list of object IDs from the last search performed by FindType, FindTypeEx, FindNotoriety, etc.

In Pascal, fills a TStringList with hex-formatted IDs and returns True if items were found.

In Python, returns a list[int] directly.

Starting from version 7.9.0, a modern replacement is available — GetFoundItems, which returns an array of Cardinal directly without hex conversion. In Python, the equivalent function is GetFoundList (alias for GetFindedList).

Возвращает список ID объектов из последнего поиска через FindType, FindTypeEx, FindNotoriety и т. д.

В Pascal заполняет TStringList ID в hex-формате и возвращает True при наличии результатов.

В Python возвращает list[int] напрямую.

Начиная с версии 7.9.0 доступна современная замена — GetFoundItems, возвращающая массив Cardinal напрямую без hex-преобразования. В Python эквивалентная функция — GetFoundList (алиас для GetFindedList).

Pascal

function GetFindedList(var UserList: TStringList): Boolean;

Warning: IDs in the list are in hex format. The TStringList must be created before calling and freed after use.

Python

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

Pascal Example

var
  List: TStringList;
  i: Integer;
begin
  if FindTypeEx($0E21, $FFFF, Backpack, True) > 0 then
  begin
    List := TStringList.Create;
    if GetFindedList(List) then
      for i := 0 to List.Count - 1 do
        AddToSystemJournal('Found: $' + List[i]);
    List.Free;
  end;
end.

Python Example

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

See Also

FindTypeEx, FindItem, FindCount, GetFoundItems