inventory.txt 365 Bytes
def inventory(id, players, mud):
    mud.send_message(id, '\r\n-Item----------=Inventory=-----------Qty-\r\n')
    for item, item_list in players[id]['inventory'].items():
        mud.send_message(id, '{} {}'.format("%-37s" % item, len(item_list)))
    mud.send_message(id, '\r\n-----------------------------------------')

inventory(id, players, mud)
del inventory