On Mon, 31 May 1999, Drew Johnston wrote:
> 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))
^^^^^^^^^ -> real_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)) {
^^^^^^^^^^^^^^^^^^^ ->
real_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;
+------------------------------------------------------------+
| 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