Re: NEWBIE...Needs help with sac code

From: Welcor (welcor@dune.net)
Date: 01/29/02


----- Original Message -----
From: "Jeremy D. Helton" <mars@MARKAB.NET>


> Is there a way to use the NOTAKE flag in the sac code to prevent the sac
of
> items?

Add this check in the do_sac func:

if (!OBJWEAR_FLAGGED(obj, ITEM_WEAR_TAKE) {
  send_to_char("You can't sacrifice that!\r\n", ch);
  return 0;
}

Welcor
--
Paranoid schizophrenics outnumber their enemies at least two to one.

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