def load_npc(self, npc_id, npc_area):
        """Load an npc into the same room as the player."""
        if not self.pc.location:
            self.pc.update_output('But you\'re in a void!')
            return
        prototype = npc_area.get_npc(npc_id)
        if prototype:
            npc = prototype.load()
            npc.location = self.pc.location
            self.pc.location.add_char(npc)
            self.pc.update_output('You summon %s into the world.\n' % npc.name)
            if self.alias == 'spawn':
                self.pc.location.tell_room('%s summons %s.' % (self.pc.fancy_name(), npc.name), 
                                             [self.pc.name], self.pc)
        else:
            self.pc.update_output('That npc doesn\'t exist.')
dataset/ETHPy150Open shinymud/ShinyMUD/src/shinymud/commands/commands.py/Load.load_npc/original