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

IgnoreOff

Remove object with ID(not type!) ObjID from the ignore list (if exists), so it can be found by FindType, FindTypeEx and other FindXX methods.

NB: Related methods: Ignore, IgnoreReser

Pascal

procedure IgnoreOff(ObjID : Cardinal);

Python

def IgnoreOff(ObjID)

Example Pascal

procedure FindCorpsesAndLoot();
var
  i : Integer;
  corpses: TCardinalDynArray;
begin
  FindType($2006, Ground);
  corpses := GetFoundItems();
  
  for i:=0 to Length(corpses)-1 do
    begin
      newMoveXY(GetX(corpses[i]), GetY(corpses[i]), true, 1, true);
      UseObject(corpses[i]);
      Wait(1000);
             
      FindTypeEx($0EED, $0000, corpses[i], true);
      if (FindCount > 0) then
        begin
          MoveItem(FindItem, 0, Backpack, 0,0,0);
          Wait(1000);
        end;      
      Ignore(corpses[i]);
    end;
     
  
end;