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.

/* 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;
}
--- Begin Message ---
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.

--- End Message ---

Reply via email to