Re: extra flags

From: Ghost Shaidan (ghost@AO.NET)
Date: 10/29/98

Reading this, 2 things come to mind, either of which could be wrong ;)

The first is that you need some {}'s after your IS_NPC check to encompass
the 2nd if statement also, or else it will chec it every iteration of that

The second is that you may want to first confirm that there is actually
something being wielded, or you might try to access something on a
non-existant object and the pointers don't like that a whole lot...

Good luck!
Ghost Shaidan

> if(!IS_NPC(victim))
>         send_to_char("You ROCK!\r\n", ch);
>       send_to_char("You SUCK!\r\n", ch);

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

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