void do_afk ( CHAR_DATA *ch, char * argument) { if (IS_SET(ch->comm,COMM_AFK)) { send_to_char("AFK mode removed. Type 'replay' to see tells.\n\r",ch); REMOVE_BIT(ch->comm,COMM_AFK); } else { send_to_char("You are now in AFK mode.\n\r",ch); SET_BIT(ch->comm,COMM_AFK); do { send_to_char("You are in AFK mode, if you want to play normally set AFK off$ REMOVE_BIT(ch->comm,COMM_AFK); } else { send_to_char("You are now in AFK mode.\n\r",ch); SET_BIT(ch->comm,COMM_AFK); do { send_to_char("You are in AFK mode, if you want to play normally set AFK off$ delay(10); } while (ch->comm!=COMM_AFK); } }