spells.txt 432 Bytes
def spells(id, players, mud):
    mud.send_message(id, '\r\n-Spell-----------=Spells=-----------Cost-\r\n')
    for name, spell in players[id]['sp'].items():
        mud.send_message(id, '{} {}'.format("%-37s" % name, spell['cost']))
    mud.send_message(id, '\r\n-----------------------------------------\r\n')
    mud.send_message(id, 'For more detail on a specific spell use "help <spell>"')


spells(id, players, mud)
del spells