Jan Pedersen wrote:
>from errors log
>Jun 30 13:32:31 :: SYSERR: Mob using '((k->follower)->player_specials->saved.pref)' at act.offensive.c:124
>Jun 30 14:12:47 :: SYSERR: Mob using '((ch)->player_specials->saved.pref)' at act.wizard.c:119
>Jun 30 14:13:40 :: SYSERR: Mob using '((i->character)->player_specials->saved.pref)' at act.comm.c:509
>
>anyone able to tell me why a mob all of the sudden start using this and crash the mud?
You are accessing information only PCs have, ie. PRF_FLAGGED(ch, PRF_NOHASSLE). If you call this for a mob, it makes no sense and thus gives you the error message.
To avoid it make sure only player chars are ever checked:
ie. instead of
if (PRF_FLAGGED(ch, PRF_NOHASSLE)) {}
use
if (!IS_NPC(ch) && PRF_FLAGGED(ch, PRF_NOHASSLE)) {}
The same goes for PLR flags - The name says it all.
Welcor
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 04/10/01 PDT