def load_item(self, item_id, item_area):
        """Load an item into the player's inventory."""
        prototype = item_area.get_item(item_id)
        if prototype:
            item = prototype.load()
            self.pc.item_add(item)
            self.pc.update_output('You summon %s into the world.\n' % item.name)
            if self.pc.location and (self.alias == 'spawn'):
                self.pc.location.tell_room('%s summons %s into the world.' % (self.pc.fancy_name(), item.name), 
                                                                                [self.pc.name], self.pc)
        else:
            self.pc.update_output('That item doesn\'t exist.\n')
dataset/ETHPy150Open shinymud/ShinyMUD/src/shinymud/commands/commands.py/Load.load_item/original