[newbie][code]Distinguishing between mobs and not_mobs.

From: Anthony Benjamin (benjamin@powerweb.net)
Date: 03/23/99


Ok, lets say that someone wants to distinguish between mobs and
not_mobs...I thought you would use the IS_NPC...but with this little
snippet of code..

 if(!IS_NPC(ch)){
    send_to_char("Not a mob",ch);
   }else{
     send_to_char("A mob.",ch);
    }

It always assumes it is a mob and never, ever hits not_mob. Any ideas?
Am I using the macro wrong??

anthony


     +------------------------------------------------------------+
     | 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 : 12/15/00 PST