On Wed, 15 Jan 1997, David Klasinc wrote:
> Banzai!
>
> I've been fiddling again with that act_prog and i got it to work now, the
> only problem was that SENDOK(ch) was checking if the one who should get
> the message has descriptor... And since mobs are w/o descriptors... :)
>
> I've patched SENDOK(ch) so it doesn't let out mobs, I hope this won't
> affect lag that much...
>
> in comm.c just change #define SENDOK(ch) tha will look like this:
> #define SENDOK(ch) ((AWAKE(ch) || sleep) && !PLR_FLAGGED((ch), PLR_WRITING))
How about instead of putting the act_prog() after the SENDOK, you
check if the person is a mobile and call act_prog() before it and
leave SENDOK as is.
if (IS_NPC(ch))
...act_prog call...
--
Daniel Koepke
dkoepke@california.com
Forgive me father, for I am sin.
+-----------------------------------------------------------+
| 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