[NEWBIE] Autodiag

From: Melissa J. Jadwinski (jadwin@tiac.net)
Date: 11/20/98


>SYSERR: Mob using '((ch)->player_specials->saved.pref)' at C:
>\circle30bpl14\src\fight.c:955.

Mobs don't have saved prefs -- you're right, the mud is checking to see if
the mob is flagged autodiag, just switch around the autodiag check.  From
the autodiag snippet, you probably have something like:
if (PRF_FLAGGED(ch, PRF_AUTODIAG) && !IS_NPC(ch) && FIGHTING(ch))

change to:
if (!IS_NPC(ch) && PRF_FLAGGED(ch, PRF_AUTODIAG) && FIGHTING(ch))

this should short-circuit false for mobs, thus ridding you of those
annoying syserrs.

--meersan


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