Ignore
Add object with ID(not type!) ObjID to the ignore list, so it can be no logner found by FindType, FindTypeEx and other FindXX methods.
NB: To remove item from ignore list, use IgnoreOff, or IgnoreReset to clear ignore list.
NB: Related methods: IgnoreOff, IgnoreReset
Pascal
procedure Ignore(ObjID : Cardinal);
Python
def Ignore(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;