Re: [Circle] No Junking Corpses

From: Casper Lund (ncl@mailhost.net)
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
>> lburns@continet.com
>
>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
>rare.

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
.ncl@mailhost.net
..http://home1.inet.tele.dk/nci
...Incoming mail forwarded via the PObox II remailer
+-----------------------------------------------------------+
| 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/07/00 PST