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

Ignore

Adds the specified object to the ignore list. Ignored objects are excluded from all subsequent find operations (FindType, FindTypeEx, FindTypesArrayEx, etc.).

ObjID — ID of the object to ignore. If 0, the call is silently ignored.

If the object is already in the ignore list, the call has no effect (no duplicate entries are created).

The ignore list is per-script and persists until the script ends or IgnoreReset is called.

Добавляет указанный объект в список игнорирования. Игнорируемые объекты исключаются из всех последующих операций поиска (FindType, FindTypeEx, FindTypesArrayEx и т.д.).

ObjID — ID объекта для игнорирования. Если 0, вызов молча пропускается.

Если объект уже в списке игнорирования, вызов не имеет эффекта (дубликаты не создаются).

Список игнорирования привязан к скрипту и сохраняется до завершения скрипта или вызова IgnoreReset.

Pascal

procedure Ignore(ObjID: Cardinal);

Python

def Ignore(ObjID: int) -> None: ...

Pascal Example

var
  i: Integer;
begin
  for i := 1 to 5 do
  begin
    if FindType($0EED, Backpack) > 0 then
    begin
      AddToSystemJournal('Found gold pile: $' + IntToHex(FindItem, 8));
      Ignore(FindItem);
    end;
  end;
  IgnoreReset;
end.

Python Example

for _ in range(5):
    if FindType(0x0EED, Backpack()) > 0:
        AddToSystemJournal(f'Found gold pile: ${FindItem():08X}')
        Ignore(FindItem())
IgnoreReset()

See Also

IgnoreOff, IgnoreReset, FindTypeEx