Re: [Circle] No Junking Corpses

From: Casper Lund (
Date: 08/15/96

On Thu, 15 Aug 1996 08:04:43 -0400, you wrote:

>Leonard Burns IV wrote:
>> Does anyone know easy it is to make it so players can't junk corpses?
>> --
>> Leonard Burns IV
>Fairly simple; this comes to mind:
>in perform_drop (act.item.c)) before the first "if" statement:
>if ( (mode == SCMD_JUNK) &&(isname("corpse", obj->name)) )
>   send_to_char("Leonard Burns IV says you can't junk corpses\r\n", ch);
>   return(0);
>of course, if you have any wierd objects like "the statue of the corpse
>of Flar" it won't let you junk those either, but those should be fairly

Better yet: Simply check to see if the object about to be junked is a
container and if it's value3 equals 1 (meaning it's a corpse).

This way you can easily junk objs regardless of their name.. Only
"real" corpses won't be junk'd.

Casper Lund
...Incoming mail forwarded via the PObox II remailer
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   |

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