From Stealth Client

Jump to: navigation, search


FindItem

function FindItem():Cardinal

Returns the last object found using the function Doc:Api/FindType or Doc:Api/FindTypeEx

If nothing is found - return 0.

Example 1:

if FindTypeEx(bottle_type,bottle_color,Ground,false) > 0 then
begin
  UseObject(FindItem);
end;

Example 2:

  IF FindType($190,ground) > 0 THEN
    WaitTargetObject(FindItem);