On Sun, Feb 10, 2002 at 08:10:32PM -0500, [EMAIL PROTECTED] wrote:
> ok i added my clan code, the clantalk is defined in interp.c and little
> modifications had to be done to act_comm.c but when i type clan or clantalk
> (whatever) i get nothing, no returns, no channel, nothing. here is my snip of
> my clantalk. I've had one other coder look at it and it boggled him too.
Did you run it in GDB? If so, what happened? If not, why not? Your
typo is so fscking obvious, it's not funny to point it out. And
fire the other coder too, I don't [EMAIL PROTECTED] h1z sk1llz.
Edwin
>
> /* clan channels */
> void do_clantalk( CHAR_DATA *ch, char *argument )
> {
> char buf[MAX_STRING_LENGTH];
> DESCRIPTOR_DATA *d;
> {
> if (!is_clan(ch) || (ch->clan == 0))
>
> send_to_char("You aren't in a clan.\n\r",ch);
> return;
> }
> if ( argument[0] == '\0' )
> {
> if (IS_SET(ch->comm,COMM_NOCLAN))
> {
> send_to_char("Clan channel is now ON\n\r",ch);
> REMOVE_BIT(ch->comm,COMM_NOCLAN);
> }
> else
> {
> send_to_char("Clan channel is now OFF\n\r",ch);
> SET_BIT(ch->comm,COMM_NOCLAN);
> }
> return;
> }
>
> if (IS_SET(ch->comm,COMM_NOCHANNELS))
> {
> send_to_char("The gods have revoked your channel
> priviliges.\n\r",ch);
> return;
> }
>
> REMOVE_BIT(ch->comm,COMM_NOCLAN);
>
> sprintf( buf, "You clan '%s'\n\r", argument );
> send_to_char( buf, ch );
> sprintf( buf, "`{b%s %s`{x: {Y%s{x\n\r", player_rank(ch), ch->name,
> argument );
> for ( d = descriptor_list; d != NULL; d = d->next )
> {
> if ( d->connected == CON_PLAYING &&
> d->character != ch &&
> is_same_clan(ch,d->character) &&
> !IS_SET(d->character->comm,COMM_NOCLAN) &&
> !IS_SET(d->character->comm,COMM_QUIET) )
> {
> act_new("$n clans '$t'",ch,argument,d->
> character,TO_VICT,POS_DEAD);
> }
> }
>
> return;
> }
> Date: Sun, 10 Feb 2002 20:09:40 EST
> From: [EMAIL PROTECTED]
> To: [email protected]
> Subject: modifying channels
> X-Mailer: AOL 7.0 for Windows US sub 121
>
> ok i added my clan code, the clantalk is defined in interp.c and little
> modifications had to be done to act_comm.c but when i type clan or clantalk
> (whatever) i get nothing, no returns, no channel, nothing. here is my snip of
> my clantalk. I've had one other coder look at it and it boggled him too.
--
Edwin Groothuis | Personal website: http://www.MavEtJu.org
[EMAIL PROTECTED] | Interested in MUDs? Visit Fatal Dimensions:
------------------+ http://www.FatalDimensions.org/