Re: [DG SCRIPTS] MOB Act triggers not working

From: Mark A. Heilpern (heilpern@mindspring.com)
Date: 12/01/98


At 04:39 PM 12/1/98 +0100, you wrote:
> #define SENDOK(ch) ( ((ch)->desc || ( IS_MOB(ch) && \
>                mob_index[(ch)->nr].progtypes & ACT_PROG )) && \
>                (AWAKE(ch) || to_sleeping) && !PLR_FLAGGED((ch),
PLR_WRITING))
>
>This one work with Mobprogs. Change "mob_index[(ch)->nr].progtypes &
ACT_PROG"
> to whatever DG scripts need.
>
> L.Lunak
> l.lunak@email.cz


Thanks, Lubos.

For those with DG Scripts, augment SENDOK() [in utils.h] to be:

#define SENDOK(ch) ( ((ch)->desc || SCRIPT_CHECK((ch), MTRIG_ACT))  && \
               (AWAKE(ch) || to_sleeping) && !PLR_FLAGGED((ch), PLR_WRITING))


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