[Circle] copyto question

From: Brian Williams - Nashak (bmw@efn.org)
Date: 11/30/96


I created a command called copyto, which copies description from room 1 to
room 2.. my problem is.. it says Done. no matter what, and never copies
the description.. here is the command, any help is appreciated
ACMD(do_copyto)
{
  int first, last;

  two_arguments(argument, buf, buf2);

  if (!*buf || !*buf2) {
    send_to_char("Usage: copyto <room> <copy room>\r\n", ch);
    return;
  }
  first = atoi(buf);
  last = atoi(buf2);

  if ((first < 1) || (first > 99999) || (last < 1) || (last > 99999)) {
    send_to_char("Values must be between 1 and 99999.\n\r", ch);
    return;
  }

    world[last].description = world[first].description;
    send_to_char("Done.\r\n", ch);
}


        /---------\      /--------/
       / /XXXXXXX\ \    / ////// /
      / ///XXXXX\\\ \  / ////// /
     / /////XXX\\\\\ \/ ////// /    mud.penguin.net 4000
    / //////  \\\\\\\  ////// /    Brian Williams
   / ////// /\ \\\\\XXX///// /    bmw@efn.org
  / ////// /  \ \\\XXXXX/// /
 / ////// /    \ \XXXXXXX/ / /\  /_ |_|  /\  |/
/--------/      \---------/ /--\  / | | /--\ |\

+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/18/00 PST