On Fri, 16 Aug 1996 23:19:21 -0700, you wrote:
>I had the mail saved that someone sent to me on how to not allow junking
>of corpses, something like
>
>if (GET_OBJ_VAL(i) == ITEM_CONTAINER(i, 3)
>
>but I'm not sure if that was right, it checked the container to see if
>it was a corpse, if whoever helped me last time could send it again I
>would appreciate it.
if ((GET_ITEM_TYPE(i) == ITEM_CONTAINER) && (GET_OBJ_VAL(i, 3) == 1)
&& (mode == SCMD_JUNK))
{
act("You cannot junk corpses!", FALSE, ch, 0, 0, TO_CHAR);
return(0);
}
--
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