Re: In game Class Joining

From: Bo Young (Jeepster11@email.msn.com)
Date: 06/01/99


this:
if (!*arg && (ch->in_room != join_room))

prolly needs to be something akin to this:
if (!*arg && (ch->in_room != alchemist_join_room || ch->in_room !=
necromancer_join_room || ch->in_room != ranger_join_room))

: )

-----Original Message-----
From: Drew Johnston <Drew29028@aol.com>
To: CIRCLE@post.queensu.ca <CIRCLE@post.queensu.ca>
Date: Monday, May 31, 1999 5:24 PM
Subject:  In game Class Joining


>Subj:   In game Class Joining
>Date:   5/31/99 10:09:14 AM Pacific Daylight Time
>From:   Drew29028
>To:     CIRCLE@POST.QUEENSA.CA
>
>
>Hey. Im trying to make my own in game class-joining system ( I like the
>role-playing factor of a character having to find the guild in their
hometown
>and join it that way).
>But anyways, i made a ACMD(do_enroll) function which when typed checks to
see
>if the player is in a designated guildhouse (defined in config.c along with
>the donation and start rooms). But when i test it out in game, even when i
am
>in a joining room, it shows the message that i need to be in a guild room.
>Here is my code snippet:
>
>ACMD(do_enroll)
>{
>  one_argument(argument, arg);
>
>  if (!*arg && (ch->in_room != join_room))
>    send_to_char("Go to a guild if you wish to enroll!\r\n", ch);
>    /* above message is the one that pops up even when im in the right room
*/
>
>  else if (!*arg && (ch->in_room == alchemist_join_room)) {
>    send_to_char("The alchemist guild leader nods his head and shakes your
>hand.\r\n", ch);
>    ch->player.chclass = CLASS_ALCHEMIST;
>
>etc. for each class
>
>did write the comparison wrong or what?
>
>                        Drew
>        TalonMUD
>
>
>     +------------------------------------------------------------+
>     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
>     +------------------------------------------------------------+


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