Re: [CODE] [QUESTION] act_progs

From: Lubos Lunak (l.lunak@SH.CVUT.CZ)
Date: 05/14/98


In comm.c, in the SENDOK() macro, change "(ch)->desc" to
  "((ch)->desc || ( IS_MOB(ch) && mob_index[(ch)->nr].progtypes & ACT_PROG
))",

i.e. change the macro to something like this :

#define SENDOK(ch) ( ((ch)->desc || ( IS_MOB(ch) && \
                     mob_index[(ch)->nr].progtypes & ACT_PROG )) && \
                    (AWAKE(ch) || sleep) && !PLR_FLAGGED((ch), PLR_WRITING))



Christoffer Lundberg wrote:

> I've noticed that the Mobprogs-package doesn't really work properly, as
> act_prog doesn't trigger. Is there a fix to this at some of the snippet-
> pages?
>
> Thanks in advance....     - Christoffer

You're right, the mobprogs package doesn't work properly. I spent a lot of
time fixing it.

 L.Lunak
 l.lunak@sh.cvut.cz


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



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