int get_next_houseid() { top_houseid++; save_houseinfo(); // coreinfo return top_houseid; } CHAR_DATA *create_house( int houseid ) { int houseid = 0; int livingroomvnum = 0; int kitchenvnum = 0; int bedroomvnum = 0; int atticvnum = 0; int cellarvnum = 0; int closetvnum = 0; if (ch->houseid == 0) ch->houseid = get_next_houseid(); livingroomvnum = (200101 + (houseid * 5)) kitchenvnum = (200102 + (houseid * 5)) bedroomvnum = (200103 + (houseid * 5)) atticvnum = (200104 + (houseid * 5)) cellarvnum = (200104 + (houseid * 5)) closetvnum = (200101 + (houseid * 5)) redit_create(ch, livingroomvnum); redit_create(ch, bedroomvnum); redit_create(ch, kitchenvnum); redit_create(ch, atticvnum); redit_create(ch, cellarvnum);