Nevermind. I figured out why it didn't work. --- Matt Foltz <[EMAIL PROTECTED]> wrote: > I'm a little stumped on this one. I'm making my own version > of > the inlay snippet I've seen floating around, so that mine is > more customize-able. Everything works perfectly, but it > doesn't > copy the effects on the gem item onto the piece of armor. I > used the part of clone_object to copy the effects. Here is > the > code: > > --- cut here --- > > socket->value[i] = -1; > socket->enchanted = TRUE; > socket->weight += gem->weight; > > for (paf = gem->affected; paf != NULL; paf = paf->next) > affect_to_obj(socket,paf); > > obj_from_char( socket ); > obj_to_char( socket, ch ); > > if (gem->level > socket->level) > socket->level = gem->level; > > sprintf( buf, "You inlay %s into %s.\n\r", > gem->short_descr, socket->short_descr ); > stc( buf, ch ); > > extract_obj( gem ); > return; > } > > Anyone know why it doesn't work? Thanks. > > > ===== > -Matt Foltz > [Neoterra MUD] telnet://neoterra.is-a-geek.com:4000 > [Car Audio Resources homepage] http://www.car-audio.net > > __________________________________ > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! > http://sbc.yahoo.com > > -- > ROM mailing list > [email protected] > http://www.rom.org/cgi-bin/mailman/listinfo/rom
===== -Matt Foltz [Neoterra MUD] telnet://neoterra.is-a-geek.com:4000 [Car Audio Resources homepage] http://www.car-audio.net __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com

