This is a simple but VERY usefull piece of code allows your * nagging, whining, builder >:) to make rooms with great ease * Its very compatable 'cause no matter what room flags or sector * types you decided your want the code doesnt do any funny stuff * just uses "=". I was bullied into taking timeout to code this * my builders so I hope it help you with your builders. Giving * credit where credit is due I got the idea of using olc voids * to accomplish my room mob and obj clone commands from guy who * did dig command for circle muds. Thankx man * I would post those but they would not be compatable to stock * nor most hacked circle code due to fact we have added races, * classes, sizes and AI programs to mobs as well as affect * vectors to objs. I plan on posting some stuff in future * when I have time after i get my mud open. O yes if you wish * to come nag me and be a builder drop in binder.eushc.org 4000 * or email me at parka@cdc.net. If you have any problems at all * email me or stop in mud I take time and see if i can fix it * and If you want to tell me I am stupid stand in line. * Banyal /*Roomclone Banyal..parka@cdc.net*/ ACMD(do_rclone) { /*If you have an older Oasisolc You will have to chage this line * below to the correct void olc_add_to_save_list(**********) * where inside () will be diffrent Banyal */ extern void olc_add_to_save_list(int zone, byte type); char buf2[10]; char buf[80]; int sroom = 0, cloneroom = 0; struct room_data *room; one_argument(argument, buf2); CREATE (room, struct room_data, 1); sroom = atoi(buf2); cloneroom = real_room(atoi(buf2)); *room = world[cloneroom]; if (!*buf2) { send_to_char("Format: hhroom \r\n", ch); return; } if (cloneroom <= 0) { sprintf(buf, "There is no room with the number %d.\r\n", sroom); send_to_char(buf, ch); return; } if (world[ch->in_room].description) { world[cloneroom].description = str_dup(world[ch->in_room].description); if (world[ch->in_room].name) { world[cloneroom].name = str_dup(world[ch->in_room].name);} if (world[ch->in_room].room_flags) { world[cloneroom].room_flags = world[ch->in_room].room_flags;} if (world[ch->in_room].sector_type) { world[cloneroom].sector_type = world[ch->in_room].sector_type;} olc_add_to_save_list((sroom/100), OLC_SAVE_ROOM); sprintf(buf, "You clone this room to room %d.\r\n", sroom); send_to_char(buf, ch); } else send_to_char("This room has no description so why clone it?!\r\n", ch); }