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