Re: Help with if statement.

From: Phillip A. Ames (kirk47@JUNO.COM)
Date: 10/05/98


On Mon, 5 Oct 1998 20:44:43 -0400 Del Minturn <caminturn@EARTHLINK.NET>
writes:
>I am brain farting or something on this one. I have been trying to get
>this working right and something is just not right.
[snip]
If what you said below is right, I think it is farting....

>Then it checks to see what your class is and if your trying to remort
>to
>a class that you should not be. (Please no arguments on why).
>
>   if((IS_WARRIOR(ch)) && (x == ((CLASS_CRUSADER) || (CLASS_WARLOCK)
>||
>(CLASS_ASSASSIN)))) {
>    send_to_char("You can only select a Knight, Cleric, Thief, Warrior
>or Sorcerer.\r\n", ch);
>    return;
>    }
>
>The character I am trying is a warrior, and tried to remort to
>assassin.
>This check does not work right.
[snip]

You are trying to remort to an assassin, but, your check has put it as
if the char is a warrior, and they are trying to remort to a crusader,
warlock, OR !!assassin!!:

Send to them: You can't pick any of those!  Only a knight, cleric, thief,
warrior, or sorcerer!

And then kick them out of the command.

I think your problem is with the assassin check in there.  But then
again, my brain could be farting too(It's been known to do that often).
Hope this helps,

-Phillip


Phillip Ames    | Satisfaction is not guaranteed.
kirk47@juno.com | -Ferengi Rule of Acquisition #19
ICQ: 8778335    | AOL IM: Grathol
http://members.xoom.com/Gowron/index.html(Unfinished)

___________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
or call Juno at (800) 654-JUNO [654-5866]


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



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