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).
function GetFindedList(var UserList: TStringList): Boolean;
Warning: IDs in the list are in hex format. The
TStringListmust be created before calling and freed after use.
def GetFindedList() -> list[int]: ...
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.
if FindTypeEx(0x0E21, 0xFFFF, Backpack(), True) > 0:
items = GetFindedList()
for obj_id in items:
AddToSystemJournal(f'Found: ${obj_id:08X}')