Re: Paladins

From: Greg Breault (gregbt@ids.net)
Date: 05/08/95


Hello,
  
Just wanted to thank everyone who replied to the Paladin message. It worked
perfectly after the suggested changes!

Grog 


At 12:56 PM 5/7/96 -0400, you wrote:
>
>> ACMD(do_kick)
>> {
>>   struct char_data *vict;
>>   int percent, prob;
>> 
>>   if (GET_CLASS(ch) != CLASS_WARRIOR != CLASS_PALADIN) {
>>     send_to_char("You'd better leave all the martial arts to
fighters.\r\n", ch$
>>     return;
>>   }
>>   one_argument(argument, arg);
>> 
> 
>	Seems to me your if statement is always true; you can't string 
>together multiple '!='s together.  Try this instead:
>
>   if ((GET_CLASS(ch) != CLASS_WARRIOR) && (GET_CLASS(ch) != CLASS_PALADIN)) 
>	
>	That should solve your problem.
>
>	Graham Gilmore
>



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