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

GetQuantity

Returns stack size for object ObjID

Pascal Syntax:

function GetQuantity(ObjID : Cardinal) : Integer;

Pascal Example:

  if (FindType(CraftItemReagentType, Backpack) = 0) or (GetQuantity(FindItem) < RegsAmountForCraft) then
    begin
      Ignore(FindItem);
      GetRegsFromChest(CraftItemReagentType, RegsAmountForCraft);
    end;

Python Syntax:

def GetQuantity(ObjID): --> int