示例#1
0
def move_to_room(client, src_room, dest_room):
    client.send("target_clear")
    src_room.contents.remove_player(client)
    client.player.room = dest_room.short_name + '@' + dest_room.zone
    dest_room.contents.add_player(client)
    client.send("map", make_map(client))
    client.send('room_contents', dest_room.contents.get_players_names(),
        dest_room.contents.get_mob_names())
示例#2
0
def do_map(client, args, msg):
    map_data = make_map(client)
    client.send("map", map_data)