RE: [Circle] [Code]

From: Guilbault, Brian (AUBURNHILL!IRVINAH1!BGUILBAU@takata.attmail.com)
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);
  return;
}

I think that will work for you.


  -Brian

+----------------------------------+
| Please reply to guil9964@gmi.edu |
+----------------------------------+



+-----------------------------------------------------------+
| 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