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]).
function GetFoundItems: TCardinalDynArray;
def GetFoundList() -> list[int]: ...
GetFoundListis an alias forGetFindedList— both returnlist[int]in Python.
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.
if FindTypeEx(0x0E21, 0xFFFF, Backpack(), True) > 0:
items = GetFoundList()
for obj_id in items:
AddToSystemJournal(f'Found: ${obj_id:08X}')
GetFindedList, FindTypeEx, FindItem, FindCount, FindFullQuantity