Re: [Circle] Problems with kick

From: Chris Lore (lore@UDel.Edu)
Date: 11/20/96


M.A.Clubine wrote:
> 
> Should be a && not a ||.
> 
just my two cents worth but, wouldn't && (logical and from what I
understand) make his code only let you kick if you were both a bard and
a warrior, where as the || (logical or) make it so that it could be
either a bard or a warrior that could kick?
> Monroe - Eternal
> 
> On Wed, 20 Nov 1996, CircleMud Admin wrote:
> 
> > Ok, I added a new class and gave the skill kick to the class. I went into
> > the act.offensive.c and changed the ACMD(do_kick) to:
> >
> > if (GET_CLASS(ch) != CLASS_WARRIOR || GET_CLASS(ch) != CLASS_BARD) {
> >     send_to_char("You'd better leave all the martial arts to
> > fighters.\r\n", ch)
> > ;
> >     return;
> >   }
> >
> > Which should let people in the class BARD perform the skill. But it's
> > still returning that message. Any clue what I missed?
> >
> >                               -Mike
> >
> > +-----------------------------------------------------------+
> > | Ensure that you have read the CircleMUD Mailing List FAQ: |
> > |   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
> > +-----------------------------------------------------------+
> >
> 
>    ._ o
>   /  //\.  Michael A. Clubine   (maclubin@syr.edu)
>  '  \>> |    E t e r n a l     (smith.syr.edu 4000)
>      \\ '         http://borogove.syr.edu/
> 
> +-----------------------------------------------------------+
> | Ensure that you have read the CircleMUD Mailing List FAQ: |
> |   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
> +-----------------------------------------------------------+
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



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