inventory.txt
485 Bytes
def inventory(id, players, mud):
mud.send_message(id, " %green+-Item---------------------=Inventory=--------------------Qty--+", nowrap=True)
for item, item_list in players[id]['inventory'].items():
mud.send_message(id, ' %green|%reset {} {} %green|'.format("%-55s" % item, str(len(item_list)).center(4, ' ')))
mud.send_message(id, " %green+--------------------------------------------------------------+", nowrap=True)
inventory(id, players, mud)
del inventory