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

FindItem

Returns the ID of the last object found by FindType, FindTypeEx, or FindTypesArrayEx.

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

This is the same value returned by the search methods themselves.

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

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

Совпадает со значением, возвращаемым самими методами поиска.

Pascal

function FindItem: Cardinal;

Python

def FindItem() -> int: ...

Pascal Example

begin
  if FindTypeEx($0E76, $FFFF, Ground, False) > 0 then
    UseObject(FindItem);
end.

Python Example

if FindTypeEx(0x0E76, 0xFFFF, Ground(), False) > 0:
    UseObject(FindItem())

See Also

FindTypeEx, FindCount, FindQuantity, FindFullQuantity