Re[2]: Mob fleeing

From: Angus Mezick (angus@EDGIL.CCMAIL.COMPUSERVE.COM)
Date: 10/27/97

check out the CHECK_WAIT() macro in utils.h, it will do exactly what you want to
do here, and will standardize it (you will want to put this in any skill func
you plan to allow mobs to use.)

incase I changed it, here is mine:

#define CHECK_WAIT(ch)  (((ch)->desc) ? ((ch)->desc->wait > 1) :\

______________________________ Reply Separator _________________________________
Subject: Re:  Mob fleeing
Author: at CSERVE
Date:    10/26/97 7:51 PM

>Some mortal just brought to my attention that mobs (with wimpy set) flee
>when stunned (bashed, tripped,,,..whatever skills you might have). So,
>might want to add a check for mob wait state before it flees, in fight.c.

I'm wondering why we have the variable in a different place for mobs and
PC's. I suppose you could add something like this to do_flee():

if ((IS_NPC(ch) && GET_MOB_WAIT(ch)) || (!IS_NPC(ch) && CHECK_WAIT(ch))) {
  send_to_char("You cannot flee yet!\r\n", ch);

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

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