Re: [Circle] [Code]

From: Derek L. Karnes (dkarnes@mystech.com)
Date: 11/22/96


Ghost Shaidan wrote:

> Here is my problem, I dont care if they sac a corpse, but i would like
> to stop them from sacrificing a container of any type if it has something
> in it, and i cant seem to find a clear example of this anywhere.
> (tried to muddle through do put and do get and ended up in convulsions,
> need a little more practice for those)  If some one could point me to a
> more clear example, 


if (obj->contains)
 fprintf(stderr, "This object has something in it.");


An example is in get_from_container() in act.item.c

--    dkarnes@mystech.com
--    Serapis, Imp of Dark Pawns
--    knight.ufp.org 4000
--    Open for Beta testing
+-----------------------------------------------------------+
| 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/18/00 PST