RE: [Circle] [Code]

From: Guilbault, Brian (AUBURNHILL!IRVINAH1!
Date: 11/22/96

>Here is my problem, I don't 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, or tell me what little thing I am missing, I would be
>most appreciative.

Someone correct me if I'm wrong, but couldn't you just do something like
this, assuming the object you are trying to sacrifice is "obj":

if (GET_OBJ_TYPE == ITEM_CONTAINER && obj->contains) {
  send_to_char("You can't junk a full container.\r\n", ch);

I think that will work for you.


| Please reply to |

| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   |

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