From Stealth Client

Jump to: navigation, search


FindQuantity

function FindQuantity():Integer

Returns the number of aytemov the stack of the last object found by the functions Doc:Api/FindType or Doc:Api/FindTypeEx

If the latter is not aytem stack(stack), it returns a

If nothing is found - return 0.

Example:

FindType(BM, backpack);
  AddAddToSystemJournal('BM in last found stack:' + IntToStr(FindQuantity));