Unpacks an inventory location bitfield into usable components
See also Inventory functions, Bank functions, Container functions, Equipment Manager functions.
location- A bit field that represents an item's location in the player's possession. This bit field can be obtained using the
player- A flag indicating whether or not the item exists in the player's inventory (i.e. an equipped item). (
bank- A flag indicating whether or not the item exists in the payer's bank. (
bags- A flag indicating whether or not the item exists in the player's bags. (
location or slot- The inventory slot that contains the item, or the container slot that contains the item, if the item is in the player's bags. (
bag- The bagID of the container that contains the item. (