I almost replied with that yesterday, but I saw a flaw in it as I was looking at it.
If the player was PK'd, then the killer's name AND the victims name is added to the 'corpse->owner' field. This field is used to determine WHO can loot the corpse. Also, if it is a NPC corpse, the field is NULL. -Valnir ----- Original Message ----- From: "Rainer Roomet" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Tuesday, April 27, 2004 8:57 AM Subject: Thanks to all who help me to make scalp command :=) > Yesterday i asked help to make 'scalp' command and thanks everyone for help > :) > Now it works perfectly and there was easier way to make scalps :) > > First in fight.c in function 'make_corpse', where is PC corpse section there > add > 'corpse->owner = str_dup(ch->name);' > > and in function do_scalp add: > > name = corpse->owner; > > /* scalps */ > sprintf( buf, scalp->name, name ); > free_string( scalp->name ); > scalp->name = str_dup( buf ); > > sprintf( buf, scalp->short_descr, name ); > free_string( scalp->short_descr ); > scalp->short_descr = str_dup( buf ); > > and finally define > OBJ_DATA *scalp; > OBJ_VNUM_SCALP /* merc.h */ > and add scalp object to limbo.are > > It was easy :) > > -- Ranka > > The Lost Lands of Arion > telnet irc.nohik.ee 4242 > Rainer Roomet > [EMAIL PROTECTED] > > _________________________________________________________________ > Add photos to your e-mail with MSN 8. Get 2 months FREE*. > http://join.msn.com/?page=features/featuredemail > > > -- > ROM mailing list > [email protected] > http://www.rom.org/cgi-bin/mailman/listinfo/rom >

