Re: NODROP

From: Mike Stilson (mike@velgarian.sytes.net)
Date: 09/20/02


On Fri, Sep 20, 2002 at 04:54:52AM +0000, Kras Kresh wrote:
>Why does that matter? I'm talking about the item here, not the container.

Well here.

--- handler.c   Sat Sep  7 22:11:48 2002
+++ handler.c.new       Fri Sep 20 13:04:19 2002
@@ -724,6 +724,11 @@ void obj_to_obj(struct obj_data *obj, st
     return;
   }

+  if(OBJ_FLAGGED(obj, ITEM_NODROP)) {
+    send_to_char(ch, "That item seems to be cursed.\r\n");
+    return;
+  }
+
   obj->next_content = obj_to->contains;
   obj_to->contains = obj;
   obj->in_obj = obj_to;

no NODROP items can be put in containers.

-me

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT