countitem()
¶
Warning
This page may contain outdated information, incompatible with the current version of Hercules and its coding standards.
Syntax¶
Description¶
countitem()
will return the number of items of itemid
the invoking player holds in his inventory.
Like in getitem()
, you can also write the name of the item ("Name"-column in ItemDB).
Example¶
Info
Will print out the number of Apples the char holds...