Set Item Num

Signature

int setitemnum(int content, int count); //id:0x055c

Description

Sets the count of a content in the inventory to a specific amount and returns the new count.

Arguments

Content

The identifier of the content.

Count

The new count of the content.

Notes

For a list of content identifiers, you can view the inventory content spreadsheet in Resources.

If the content is not in the inventory and therefore has a count of 0, it will be added to the inventory with the new count.

Last updated