The Inventory Manager can communicate with the player's inventory. You need to right click a Memory Card and put the card into the manager to use it.
Only one Memory Card can be linked by Inventory Manager.
1 2 3 4 5 6 7
|getOwner()||string||Returns the owner of the memory card, nil if the memory card is empty.|
|addItemToPlayer(string inventoryBlock, int count[, string item])||int amount||Adds an item to the player's inventory.
|removeItemFromPlayer(string inventoryBlock, int count[, string item])||int amount||Removes an item from the player's inventory to the given inventory direction.
|getItems()||table||Returns the content of the player's inventory.|
|getArmor()||table||Returns the content of the player's armor slots.|
|isPlayerEquipped()||boolean||Returns true if the player is wearing one or more armor pieces.|
|isWearing(int slot)||boolean||Returns true if the player is wearing a armor piece on the given slot. Slots: 103(Helmet)-100(Boots)|
0.5.2b Fixed a bug, that the inventory manager does not drop the contents.
0.5b Added the Inventory Manager and Memory Card