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

FindFullQuantity

Returns the total quantity of items found by the last FindType, FindTypeEx, or FindTypesArrayEx call, including the contents of item stacks.

Returns 0 if no objects were found or the character is disconnected.

Unlike FindCount which counts stacks as single items, this method sums up all items within stacks.

Возвращает общее количество найденных предметов после последнего поиска, включая содержимое стеков.

Возвращает 0, если ничего не найдено или персонаж не подключён.

В отличие от FindCount, который считает стеки как отдельные предметы, этот метод суммирует все предметы внутри стеков.

Pascal

function FindFullQuantity: Integer;

Python

def FindFullQuantity() -> int: ...

Pascal Example

begin
  FindType($0F7B, Backpack);  // Blood Moss
  AddToSystemJournal('Total Blood Moss: ' + IntToStr(FindFullQuantity));
end.

Python Example

FindType(0x0F7B, Backpack())
AddToSystemJournal(f'Total Blood Moss: {FindFullQuantity()}')

See Also

FindTypeEx, FindCount, FindQuantity