This Snipper allow you to add in ImpTalk.
ImpTalk is a channel just for the imps.
I do not require that you give me any credit
for this snippet just that you like it.
This is for rom. I am using Ghostmud so you
may wanna tweak it for your mud.
/*act_comm.c*/
Add this under void do_immtalk
void do_imptalk( CHAR_DATA *ch, char *argument )
{
DESCRIPTOR_DATA *i;
if ( argument[0] == '\0' )
{
if (IS_SET(ch->comm,COMM_NOWIZ))
{
send_to_char("{wImplementor {Gchannel is now {RON{x\n\r",ch);
REMOVE_BIT(ch->comm,COMM_NOWIZ);
}
else
{
send_to_char("{wImplementor {Gchannel is now {ROFF{x\n\r",ch);
SET_BIT(ch->comm,COMM_NOWIZ);
}
return;
}
REMOVE_BIT(ch->comm,COMM_NOWIZ);
act_new("{DIMPTALK {D[{R$n{D]{B: $t{x",ch,argument,NULL,TO_CHAR,POS_DEAD);
for ( i = descriptor_list; i != NULL; i = i->next )
{
if(!i->connected && i->character &&
IS_MAXLEVEL(i->character) &&
!IS_SET(i->character->comm,COMM_NOWIZ) )
{
act_new("{DIMPTALK [{R$n{D]{B: $t{x",ch,argument,i->character,TO_VICT,POS_DEAD);
}
}
return;
}
/*interp.c*/
{ "imptalk", do_imptalk, POS_DEAD, ML, LOG_NORMAL, 1 },
/*interp.h*/
DECLARE_DO_FUN( do_imptalk );
/*merc.h*/
add this
int imptalk_text[3]; /* {i */
int imptalk_type[3]; /* {I */
under
int immtalk_text[3]; /* {i */
int immtalk_type[3]; /* {I */