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

From: Xual (xual@danathara.dhs.org)
Date: 03/23/99


On Tue, 23 Mar 1999, Anthony Benjamin wrote:

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

Looks fine to me... where is ch defined?

"Misery is boundless"
        -Xual the Torturer, on the Eve of the Sundering.

Danathara Online RPG
telnet://danathara.dhs.org:4000


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