act_comm.c

exodus_code/act_comm.c · 214.2 KB

From the archive exodus_code.zip

Download the archive   « Back to the archive contents

#include <sys/types.h>
#include <sys/time.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <time.h>
#include <unistd.h>
#include <crypt.h>
#include "merc.h"
#include "recycle.h"
#include "tables.h"
#include "clans/new_clans.h"
#include "clans/new_clans_comm.h"
#include "clans/new_clans_io.h"
#include "clans/new_clans_util.h"
#include "obj_trig.h"

#define ANSI_CLSHOME "[2J[1;1H"
bool ch_is_quitting = FALSE;
void clan_defect args ((CHAR_DATA * ch));
bool nowhere = FALSE;
bool isorder = FALSE;
short poll_ticks = 0;
char poll_question[MAX_STRING_LENGTH] = "";
extern long gold_toll;
extern long damage_toll;
extern bool is_linkloading;

/* command procedures needed */
DECLARE_DO_FUN (do_quit);
extern struct clan_type clan_table[MAX_CLAN];
extern void roll_stats (CHAR_DATA * ch);
extern void do_sset (CHAR_DATA * ch, char *argument);
extern void do_mset (CHAR_DATA * ch, char *argument);
extern void do_pardon (CHAR_DATA * ch, char *argument);
extern void do_transfer (CHAR_DATA * ch, char *argument);
extern void do_echo (CHAR_DATA * ch, char *argument);
extern long genraces[];
extern bool battle_royale;

//Morgan 12/23/03 Ignore function
extern bool is_ignoring(CHAR_DATA *ch, CHAR_DATA *victim);

//IBLIS 6/20/03 - needed for Battle Royale Update on char quit
extern CHAR_DATA *br_leader;
extern CHAR_DATA *last_br_kill;

//IBLIS 5/31/03 - makes a string argument into a drunkified string
void drunkify args((CHAR_DATA * ch, char *argument));
void superduel_ends args((CHAR_DATA *winner, CHAR_DATA *loser));
void aggressor_update args ((void));
void free_aggressor_list args ((AGGRESSOR_LIST * b));
void remove_aggressor args ((CHAR_DATA * ch, CHAR_DATA * victim));
void do_auction args ((CHAR_DATA * ch, char *argument));
void do_shout (CHAR_DATA * ch, char *argument);
void reset_race args((CHAR_DATA* ch));
char* nidaeify args((CHAR_DATA *ch, char* bufn, char *argument));
char* anti_nidaeify args((CHAR_DATA *ch, char* bufn, char *argument));
void nuke_boarded_mounts args((CHAR_DATA *ch));

void cj_self args((CHAR_DATA *ch, char* argument));
void cj_channel args((CHAR_DATA *ch, char* argument));
void do_switchtalk args((CHAR_DATA *ch,char* argument));

void affect_strip_skills args((CHAR_DATA * ch));

struct swap_list
{
  CHAR_DATA *member;
  struct swap_list *next;
};
void talk_auction (char *argument)
{
  DESCRIPTOR_DATA *d;
  char buf[MAX_STRING_LENGTH];
  CHAR_DATA *original;
  sprintf (buf, "`a[`NAuction`a] `N%s``", argument);
  for (d = descriptor_list; d != NULL; d = d->next)
    {
      original = d->original ? d->original : d->character;	/* if switched */
      if ((d->connected == CON_PLAYING)
	  && !IS_SET (original->comm, COMM_NOAUCTION))
	act_new (buf, original, NULL, NULL, TO_CHAR, POS_SLEEPING);
    }
}


// Minax 7-8-02 Silly little command that replaces the old social.
void do_pat (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  char arg[MAX_INPUT_LENGTH];
  one_argument (argument, arg);
  if (arg[0] == '\0')
    {
      send_to_char ("Pat whom?\n\r", ch);
      return;
    }
  if ((victim = get_char_room (ch, arg)) == NULL)
    {
      send_to_char ("They aren't here.\n\r", ch);
      return;
    }
  if (ch->level >= victim->level)
    {
      act ("You pat $N on the head.", ch, NULL, victim, TO_CHAR);
      act ("$n pats you on the head.", ch, NULL, victim, TO_VICT);
      act ("$n pats $N on the head.", ch, NULL, victim, TO_NOTVICT);
      return;
    }
  if (ch->level < victim->level)
    {
      act ("You kneel before $N, who pats you on the head.", ch, NULL,
	   victim, TO_CHAR);
      act ("$n kneels before you.  You pat $m on the head.", ch, NULL,
	   victim, TO_VICT);
      act ("$n kneels before $N, who pats $m on the head.", ch, NULL,
	   victim, TO_NOTVICT);
      return;
    }
}


// Minax 7-9-02 Dice command lets a player roll a dice for the room to see.
void do_dice (CHAR_DATA * ch, char *argument)
{
  char buf[MAX_STRING_LENGTH];
  int die;
  die = number_range (1, 100);
  sprintf (buf, "`oYou throw a 100-sided die and roll a `j%d`o!``\n\r", die);
  send_to_char (buf, ch);
  sprintf (buf,
	   "`o-> `k$n `othrows a 100-sided die and rolls a `j%d`o!``", die);
  act (buf, ch, NULL, NULL, TO_ROOM);
  return;
}

void do_cls (CHAR_DATA * ch, char *argument)
{
  send_to_char (ANSI_CLSHOME, ch);
  return;
}

void do_delet (CHAR_DATA * ch, char *argument)
{
  send_to_char ("You must type the full command to delete yourself.\n\r", ch);
}

void do_delete (CHAR_DATA * ch, char *argument)
{
  char strsave[MAX_INPUT_LENGTH];
  char pword[MAX_INPUT_LENGTH];
  if (IS_NPC (ch))
    return;
  if IS_SET(ch->comm2,COMM_NODELETE)
  {
    send_to_char("Nice try.  You can't escape that easily.\n\r",ch);
    return;
  }
  one_argument_nl (argument, pword);
  if (ch->pcdata->confirm_delete)
    {
      if (argument[0] == '\0')
	{
	  send_to_char ("Delete status removed.\n\r", ch);
	  ch->pcdata->confirm_delete = FALSE;
	  return;
	}

      else
	{
	  if (strcmp (ch->pcdata->pwd, crypt (pword, ch->pcdata->pwd)) == 0)
	    {
	      sprintf (strsave, "%s%c/%s", PLAYER_DIR,
		       toupper (ch->name[0]), capitalize (ch->name));
	      wiznet ("$N turns $Mself into line noise.", ch, NULL, 0, 0, 0);
	      if (ch->clan != CLAN_BOGUS)
		clan_defect (ch);
	      do_hard_quit (ch, "", FALSE);
	      unlink (strsave);
	      return;
	    }

	  else
	    {
	      send_to_char ("Wrong password.\n\r", ch);
	      ch->pcdata->confirm_delete = FALSE;
	      return;
	    }
	}
    }
  if (argument[0] == '\0')
    {
      send_to_char
	("Type delete <password> to remove this character.\n\r", ch);
      return;
    }
  if (strcmp (ch->pcdata->pwd, crypt (pword, ch->pcdata->pwd)) == 0)
    {
      send_to_char
	("Type delete <password> again to confirm this command.\n\r", ch);
      send_to_char ("WARNING: this command is irreversible.\n\r", ch);
      send_to_char
	("Typing delete with no argument will undo delete status.\n\r", ch);
      ch->pcdata->confirm_delete = TRUE;
      wiznet ("$N is contemplating deletion.", ch, NULL, 0, 0,
	      get_trust (ch));
    }

  else
    send_to_char ("Wrong password.\n\r", ch);
  return;
}


/* RT code to display channel status */
void do_channels (CHAR_DATA * ch, char *argument)
{
  char buf[MAX_STRING_LENGTH];

  /* lists all channels and their status */
  send_to_char ("`a[`fchannel`a]    [`fstatus`a]``\n\r", ch);
  send_to_char ("`a---------------------``\n\r", ch);
  send_to_char ("`lgossip``         ", ch);
  if (!IS_SET (ch->comm, COMM_NOGOSSIP))
    send_to_char ("`kON``\n\r", ch);

  else
    send_to_char ("`aOFF``\n\r", ch);
  send_to_char ("`lauction``        ", ch);
  if (!IS_SET (ch->comm, COMM_NOAUCTION))
    send_to_char ("`kON``\n\r", ch);

  else
    send_to_char ("`aOFF``\n\r", ch);
  send_to_char ("`lmusic``          ", ch);
  if (!IS_SET (ch->comm, COMM_NOMUSIC))
    send_to_char ("`kON``\n\r", ch);

  else
    send_to_char ("`aOFF``\n\r", ch);
  send_to_char ("`lQ/A``            ", ch);
  if (!IS_SET (ch->comm, COMM_NOQUESTION))
    send_to_char ("`kON``\n\r", ch);

  else
    send_to_char ("`aOFF``\n\r", ch);
  send_to_char ("`lOOC``            ", ch);
  if (!IS_SET (ch->comm, COMM_NOOOC))
    send_to_char ("`kON``\n\r", ch);

  else
    send_to_char ("`aOFF``\n\r", ch);
  send_to_char ("`lgrats``          ", ch);
  if (!IS_SET (ch->comm, COMM_NOGRATS))
    send_to_char ("`kON``\n\r", ch);

  else
    send_to_char ("`aOFF``\n\r", ch);
  send_to_char ("`linfo``           ", ch);
  if (!IS_SET (ch->comm, COMM_NOINFO))
    send_to_char ("`kON``\n\r", ch);

  else
    send_to_char ("`aOFF``\n\r", ch);

  //Iblis added channels below to next comment
  
  send_to_char ("`larena``          ", ch);
  if (!IS_SET (ch->comm, COMM_NOSUPERDUEL))
    send_to_char ("`kON``\n\r", ch);
  else send_to_char ("`aOFF``\n\r", ch);
  send_to_char ("`lpk``             ", ch);
  if (!IS_SET (ch->comm, COMM_NOPK))
    send_to_char ("`kON``\n\r", ch);
  else send_to_char ("`aOFF``\n\r", ch);
  send_to_char ("`lrant``           ", ch);
  if (!IS_SET (ch->comm2, COMM_NORANT))
     send_to_char ("`kON``\n\r", ch);
  else send_to_char ("`aOFF``\n\r", ch);
  send_to_char ("`lpoll``           ", ch);
  if (!IS_SET (ch->comm2, COMM_NOPOLL))
      send_to_char ("`kON``\n\r", ch);
  else send_to_char ("`aOFF``\n\r", ch);
  send_to_char ("`lgemote``         ", ch);
  if (!IS_SET (ch->comm2, COMM_NOGEMOTE))
      send_to_char ("`kON``\n\r", ch);
  else send_to_char ("`aOFF``\n\r", ch);

  //End of Iblis added channels
      
    
  if (IS_IMMORTAL (ch))
    {
      send_to_char ("`lgod channel``    ", ch);
      if (!IS_SET (ch->comm, COMM_NOWIZ))
	send_to_char ("`kON``\n\r", ch);

      else
	send_to_char ("`aOFF``\n\r", ch);
    }

  /*
   * Admin channel, added by Morgan
   * June 24. 2000, for level 100's
   * to communicate in "private"
   */
  if (IS_IMMORTAL (ch) && ch->level > 99)
    {
      send_to_char ("`lAdmin channel``  ", ch);
      if (!IS_SET (ch->comm, COMM_NOADMIN))
	send_to_char ("`kON``\n\r", ch);

      else
	send_to_char ("`aOFF``\n\r", ch);
    }
  // hearclan, added by Morgan
  // June 24. 2000, for spying on clans
  // without having clan flag
  if (IS_IMMORTAL (ch) && ch->level > 94)
    {
      send_to_char ("`lhearclan``       ", ch);
      if (!IS_SET (ch->comm, COMM_HEARCLAN))
	send_to_char ("`kON``\n\r", ch);

      else
	send_to_char ("`aOFF``\n\r", ch);
    }
  send_to_char ("`lshouts``         ", ch);
  if (!IS_SET (ch->comm, COMM_SHOUTSOFF))
    send_to_char ("`kON``\n\r", ch);

  else
    send_to_char ("`aOFF``\n\r", ch);
  send_to_char ("`ltells``          ", ch);
  if (!IS_SET (ch->comm, COMM_DEAF))
    send_to_char ("`kON``\n\r", ch);

  else
    send_to_char ("`aOFF``\n\r", ch);
  send_to_char ("`lquiet mode``     ", ch);
  if (IS_SET (ch->comm, COMM_QUIET))
    send_to_char ("`kON``\n\r", ch);

  else
    send_to_char ("`aOFF``\n\r", ch);
  if (IS_SET (ch->comm, COMM_AFK))
    send_to_char ("You are AFK.\n\r", ch);
  if (IS_SET (ch->comm, COMM_SNOOP_PROOF))
    send_to_char ("You are immune to snooping.\n\r", ch);
  if (ch->lines != PAGELEN)
    {
      if (ch->lines)
	{
	  sprintf (buf, "You display %d lines of scroll.\n\r", ch->lines + 2);
	  send_to_char (buf, ch);
	}

      else
	send_to_char ("Scroll buffering is off.\n\r", ch);
    }
  if (ch->prompt != NULL)
    {
      sprintf (buf, "Your current prompt is: %s\n\r", ch->prompt);
      send_to_char (buf, ch);
    }
  if (IS_SET (ch->comm, COMM_NOSHOUT))
    send_to_char ("You cannot shout.\n\r", ch);
  if (IS_SET (ch->comm, COMM_NOTELL))
    send_to_char ("You cannot use tell.\n\r", ch);
  if (IS_SET (ch->comm, COMM_NOCHANNELS))
    send_to_char ("You cannot use channels.\n\r", ch);
  if (IS_SET (ch->comm, COMM_NOEMOTE))
    send_to_char ("You cannot show emotions.\n\r", ch);
  if (IS_SET (ch->comm2, COMM_RANTONLY))
    send_to_char ("You can only use the Rant channel.\n\r",ch);	 
}


/* RT deaf blocks out all shouts */
void do_deaf (CHAR_DATA * ch, char *argument)
{
  if (IS_SET (ch->comm, COMM_DEAF))
    {
      send_to_char ("You can now hear tells again.\n\r", ch);
      REMOVE_BIT (ch->comm, COMM_DEAF);
    }

  else
    {
      send_to_char ("From now on, you won't hear tells.\n\r", ch);
      SET_BIT (ch->comm, COMM_DEAF);
    }
}


/* RT quiet blocks out all communication */
void do_quiet (CHAR_DATA * ch, char *argument)
{
  if (IS_SET (ch->comm, COMM_QUIET))
    {
      send_to_char ("Quiet mode removed.\n\r", ch);
      REMOVE_BIT (ch->comm, COMM_QUIET);
    }

  else
    {
      send_to_char
	("From now on, you will only hear says and emotes.\n\r", ch);
      SET_BIT (ch->comm, COMM_QUIET);
    }
}


/* afk command */
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);
      free_string (ch->afkmsg);
      ch->afkmsg = str_dup (argument);
    }
}

void do_replay (CHAR_DATA * ch, char *argument)
{
  if (IS_NPC (ch))
    {
      send_to_char ("You can't replay.\n\r", ch);
      return;
    }
  if (buf_string (ch->pcdata->buffer)[0] == '\0')
    {
      send_to_char ("You have no tells to replay.\n\r", ch);
      return;
    }
  page_to_char (buf_string (ch->pcdata->buffer), ch);
  clear_buf (ch->pcdata->buffer);
}

void do_info (CHAR_DATA * ch, char *argument)
{
  if (IS_SET (ch->comm, COMM_NOINFO))
    {
      send_to_char ("Info channel is now ON.\n\r", ch);
      REMOVE_BIT (ch->comm, COMM_NOINFO);
    }

  else
    {
      send_to_char ("Info channel is now OFF.\n\r", ch);
      SET_BIT (ch->comm, COMM_NOINFO);
    }
}


/* RT chat replaced with ROM gossip */
void do_gossip (CHAR_DATA * ch, char *argument)
{
  char buf[MAX_STRING_LENGTH], bufn[MAX_STRING_LENGTH];
  DESCRIPTOR_DATA *d;
  if (argument[0] == '\0')
    {
      if (IS_SET (ch->comm, COMM_NOGOSSIP))
	{
	  send_to_char ("Gossip channel is now ON.\n\r", ch);
	  REMOVE_BIT (ch->comm, COMM_NOGOSSIP);
	}

      else
	{
	  send_to_char ("Gossip channel is now OFF.\n\r", ch);
	  SET_BIT (ch->comm, COMM_NOGOSSIP);
	}
    }

  else
    /* gossip message sent, turn gossip on if it isn't already */
    {
      if (IS_SET (ch->comm, COMM_QUIET))
	{
	  send_to_char ("You must turn off quiet mode first.\n\r", ch);
	  return;
	}
      if (IS_SET (ch->comm, COMM_NOCHANNELS))
	{
	  send_to_char
	    ("The gods have revoked your channel priviliges.\n\r", ch);
	  return;
	}
      if (IS_SET (ch->comm2, COMM_RANTONLY))
        {
          send_to_char
            ("The gods have decreed you may only use the Rant Channel.\n\r", ch);
          return;
        }
       
      REMOVE_BIT (ch->comm, COMM_NOGOSSIP);
      if (ch->level < 3)
	{
	  send_to_char
	    ("Sorry, you are too young to project your voice across the lands in that manner.\n\r",
	     ch);
	  return;
	}
      if (ch->race == 7 && !IS_IMMORTAL (ch))
	{
	  act
	    ("The fragile structure of your vocal system prevents you from creating anything other than a high-pitched whine.",
	     ch, NULL, NULL, TO_CHAR);
	  return;
	}
      if (ch->race == PC_RACE_LITAN && !IS_IMMORTAL (ch))
      {
	 do_shout(ch,argument);
	 return;
      }
      //IBLIS 5/31/03 - Added Drunk Talk to gossip
      if (!IS_NPC (ch) && ch->pcdata->condition[COND_DRUNK] > 10)
	drunkify (ch, argument);
      if (ch->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(ch))
        cj_self(ch,argument);
      else 
      {
        sprintf (buf, "`a[`MGossip`a] `lYou`a: '`M%s`a'``\n\r", argument);     
        send_to_char (buf, ch);
      }
      
      if (ch->race == PC_RACE_NIDAE)
        nidaeify(ch,bufn,argument);
      else anti_nidaeify(ch,bufn,argument);
      
      if (!IS_SET (ch->comm2, COMM_SHUTUP))
      for (d = descriptor_list; d != NULL; d = d->next)
	{
	  CHAR_DATA *victim;
	  victim = d->original ? d->original : d->character;
	  if (d->connected == CON_PLAYING && d->character != ch
	      && !IS_SET (victim->comm, COMM_NOGOSSIP)
	      && !IS_SET (victim->comm, COMM_QUIET))
	    {
	      if (is_ignoring(victim, ch)) 
              continue;
	      if ((d->character->race == PC_RACE_NIDAE && !IS_IMMORTAL(victim))|| (ch->race == PC_RACE_NIDAE && IS_IMMORTAL(victim)))
	      {
		if (d->character->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(d->character))
		  cj_channel(d->character,bufn);
		else act_new ("`a[`MGossip`a]`l $n`a:`a '`M$t`a'``", ch,
				bufn, d->character, TO_VICT, POS_SLEEPING);
	      }
	      else {
 	        if (d->character->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(d->character))
		  cj_channel(d->character,argument);
		else act_new ("`a[`MGossip`a]`l $n`a:`a '`M$t`a'``", ch,
		     argument, d->character, TO_VICT, POS_SLEEPING);
	      }
	    }
	}
    }
}

void do_grats (CHAR_DATA * ch, char *argument)
{
  char buf[MAX_STRING_LENGTH], bufn[MAX_STRING_LENGTH];
  DESCRIPTOR_DATA *d;
  if (argument[0] == '\0')
    {
      if (IS_SET (ch->comm, COMM_NOGRATS))
	{
	  send_to_char ("Grats channel is now ON.\n\r", ch);
	  REMOVE_BIT (ch->comm, COMM_NOGRATS);
	}

      else
	{
	  send_to_char ("Grats channel is now OFF.\n\r", ch);
	  SET_BIT (ch->comm, COMM_NOGRATS);
	}
    }

  else
    /* grats message sent, turn grats on if it isn't already */
    {
      if (IS_SET (ch->comm, COMM_QUIET))
	{
	  send_to_char ("You must turn off quiet mode first.\n\r", ch);
	  return;
	}
      if (IS_SET (ch->comm, COMM_NOCHANNELS))
	{
	  send_to_char
	    ("The gods have revoked your channel priviliges.\n\r", ch);
	  return;
	}
      if (IS_SET (ch->comm2, COMM_RANTONLY))
      {
	      send_to_char("The gods have decreed you may only use the Rant Channel.\n\r", ch);
	      return;
      }
      REMOVE_BIT (ch->comm, COMM_NOGRATS);
      if (ch->level < 3)
	{
	  send_to_char
	    ("Sorry, you are too young to project your voice across the lands in that manner.\n\r",
	     ch);
	  return;
	}
      if (ch->race == 7 && !IS_IMMORTAL (ch))
	{
	  act
	    ("The fragile structure of your vocal system prevents you from creating anything other than a high-pitched whine.",
	     ch, NULL, NULL, TO_CHAR);
	  return;
	}

        if (ch->race == PC_RACE_LITAN && !IS_IMMORTAL (ch))
	{
	  do_shout(ch,argument);
	  return;
	}
	
      
      //IBLIS 5/31/03 - Added Drunk Talk to grats
      if (!IS_NPC (ch) && ch->pcdata->condition[COND_DRUNK] > 10)
	drunkify (ch, argument);
      if (ch->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(ch))
        cj_self(ch,argument);
      else {
        sprintf (buf, "`a[`MGrats`a] `lYou`a: '`M%s`a'``\n\r", argument);
        send_to_char (buf, ch);
      }
      
      if (ch->race == PC_RACE_NIDAE)
         nidaeify(ch,bufn,argument);
      else anti_nidaeify(ch,bufn,argument);
      
      if (!IS_SET (ch->comm2, COMM_SHUTUP))
      for (d = descriptor_list; d != NULL; d = d->next)
	{
	  CHAR_DATA *victim;
	  victim = d->original ? d->original : d->character;
	  if (d->connected == CON_PLAYING && d->character != ch
	      && !IS_SET (victim->comm, COMM_NOGRATS)
	      && !IS_SET (victim->comm, COMM_QUIET))
	    {
	      if (is_ignoring(victim, ch)) 
              continue;
	      if ((d->character->race == PC_RACE_NIDAE  && !IS_IMMORTAL(victim))
		      || (ch->race == PC_RACE_NIDAE && IS_IMMORTAL(victim)))
	      {
 	        if (d->character->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(victim))
	          cj_channel(d->character,bufn);
		else act_new ("`a[`MGrats`a]`l $n`a: `a'`M$t`a'``", ch,
	           bufn, d->character, TO_VICT, POS_SLEEPING);
	      }
	      else
	      {
 	        if (d->character->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(victim))
	          cj_channel(d->character,argument);
		else act_new ("`a[`MGrats`a]`l $n`a: `a'`M$t`a'``", ch,
		       argument, d->character, TO_VICT, POS_SLEEPING);
	      }
	    }
	}
    }
}

//Iblis 10-22-03 Made it so the only someones on OOC are immortals
void do_ooc (CHAR_DATA * ch, char *argument)
{
  char buf[MAX_STRING_LENGTH], buf1[MAX_STRING_LENGTH];
  DESCRIPTOR_DATA *d;
  if (argument[0] == '\0')
    {
      if (IS_SET (ch->comm, COMM_NOOOC))
	{
	  send_to_char ("OOC channel is now ON.\n\r", ch);
	  REMOVE_BIT (ch->comm, COMM_NOOOC);
	}

      else
	{
	  send_to_char ("OOC channel is now OFF.\n\r", ch);
	  SET_BIT (ch->comm, COMM_NOOOC);
	}
    }

  else
    /* OOC message sent, turn OOC on if it isn't already */
    {
      if (IS_SET (ch->comm, COMM_QUIET))
	{
	  send_to_char ("You must turn off quiet mode first.\n\r", ch);
	  return;
	}
      if (IS_SET (ch->comm, COMM_NOCHANNELS))
	{
	  send_to_char
	    ("The gods have revoked your channel priviliges.\n\r", ch);
	  return;
	}
      if (IS_SET (ch->comm2, COMM_RANTONLY))
      {
	      send_to_char("The gods have decreed you may only use the Rant Channel.\n\r", ch);
	      return;
      }
      REMOVE_BIT (ch->comm, COMM_NOOOC);
      sprintf (buf, "`a[`MOOC`a] `lYou`a: '`M%s`a'``\n\r", argument);
      send_to_char (buf, ch);
      if (!IS_SET (ch->comm2, COMM_SHUTUP))
      for (d = descriptor_list; d != NULL; d = d->next)
	{
	  CHAR_DATA *victim;
	  victim = d->original ? d->original : d->character;
	  if (d->connected == CON_PLAYING && d->character != ch
	      && !IS_SET (victim->comm, COMM_NOOOC)
	      && !IS_SET (victim->comm, COMM_QUIET))
	    {
	      if (IS_IMMORTAL(ch) && 
                  ((get_trust (d->character) < ch->invis_level) 
		     || (get_trust (d->character) < ch->incog_level && d->character->in_room != ch->in_room)))
	      {
	        strcpy(buf1, "someone");
	      }
	      else if (IS_NPC(ch))
	        strcpy(buf1, ch->short_descr);
	      else strcpy(buf1, ch->name);
	      if (is_ignoring(victim, ch)) 
              continue;
	      sprintf(buf,"`a[`MOOC`a] `l%s`a: '`M%s`a'``\n\r",buf1, argument);
	      send_to_char(buf,d->character);
	    }
	}
    }
}

void do_question (CHAR_DATA * ch, char *argument)
{
  char buf[MAX_STRING_LENGTH], bufn[MAX_STRING_LENGTH];
  DESCRIPTOR_DATA *d;
  if (argument[0] == '\0')
    {
      if (IS_SET (ch->comm, COMM_NOQUESTION))
	{
	  send_to_char ("Q/A channel is now ON.\n\r", ch);
	  REMOVE_BIT (ch->comm, COMM_NOQUESTION);
	}

      else
	{
	  send_to_char ("Q/A channel is now OFF.\n\r", ch);
	  SET_BIT (ch->comm, COMM_NOQUESTION);
	}
    }

  else
    /* question sent, turn Q/A on if it isn't already */
    {
      if (IS_SET (ch->comm, COMM_QUIET))
	{
	  send_to_char ("You must turn off quiet mode first.\n\r", ch);
	  return;
	}
      if (IS_SET (ch->comm, COMM_NOCHANNELS))
	{
	  send_to_char
	    ("The gods have revoked your channel priviliges.\n\r", ch);
	  return;
	}
      if (IS_SET (ch->comm2, COMM_RANTONLY))
      {
	      send_to_char("The gods have decreed you may only use the Rant Channel.\n\r", ch);
	      return;
      }
      REMOVE_BIT (ch->comm, COMM_NOQUESTION);
      if (ch->level < 3)
	{
	  send_to_char
	    ("Sorry, you are too young to project your voice across the lands in that manner.\n\r",
	     ch);
	  return;
	}
      if (ch->race == 7 && !IS_IMMORTAL (ch))
	{
	  act
	    ("The fragile structure of your vocal system prevents you from creating anything other than a high-pitched whine.",
	     ch, NULL, NULL, TO_CHAR);
	  return;
	}
      if (ch->race == PC_RACE_LITAN && !IS_IMMORTAL (ch))
        {
  	  do_shout(ch,argument);
          return;		
	}

      //IBLIS 5/31/03 - Added Drunk Talk to question
      if (!IS_NPC (ch) && ch->pcdata->condition[COND_DRUNK] > 10)
        drunkify (ch, argument);
      
      if (ch->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(ch))
        cj_self(ch,argument);
      else
      {
        sprintf (buf, "`a[`MQuestion`a] `lYou`a: '`M%s`a'``\n\r", argument);
        send_to_char (buf, ch);
      }

      if (ch->race == PC_RACE_NIDAE)
        nidaeify(ch,bufn,argument);
      else anti_nidaeify(ch,bufn,argument);
      
      if (!IS_SET (ch->comm2, COMM_SHUTUP))
      for (d = descriptor_list; d != NULL; d = d->next)
	{
	  CHAR_DATA *victim;
	  victim = d->original ? d->original : d->character;
	  if (d->connected == CON_PLAYING && d->character != ch
	      && !IS_SET (victim->comm, COMM_NOQUESTION)
	      && !IS_SET (victim->comm, COMM_QUIET))
	    {
	      if (is_ignoring(victim, ch)) 
              continue;
	      if ((d->character->race == PC_RACE_NIDAE && !IS_IMMORTAL(victim))|| (ch->race == PC_RACE_NIDAE && IS_IMMORTAL(victim)))
	      {
	       if (d->character->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(victim))
	         cj_channel(d->character,bufn);	     
	       else act_new ("`a[`MQuestion`a]`l $n`a: '`M$t`a'``", ch,
	         bufn, d->character, TO_VICT, POS_SLEEPING);
	      }
	      else 
	      {
		if (d->character->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(victim))
                  cj_channel(d->character,argument);
		else act_new ("`a[`MQuestion`a]`l $n`a: '`M$t`a'``", ch,
		  argument, d->character, TO_VICT, POS_SLEEPING);
	      }
		 
	    }
	}
    }
}


/* RT answer channel - uses same line as questions */
void do_answer (CHAR_DATA * ch, char *argument)
{
  char buf[MAX_STRING_LENGTH], bufn[MAX_STRING_LENGTH];
  DESCRIPTOR_DATA *d;
  if (argument[0] == '\0')
    {
      if (IS_SET (ch->comm, COMM_NOQUESTION))
	{
	  send_to_char ("Q/A channel is now ON.\n\r", ch);
	  REMOVE_BIT (ch->comm, COMM_NOQUESTION);
	}

      else
	{
	  send_to_char ("Q/A channel is now OFF.\n\r", ch);
	  SET_BIT (ch->comm, COMM_NOQUESTION);
	}
    }

  else
    /* answer sent, turn Q/A on if it isn't already */
    {
	     
      if (IS_SET (ch->comm, COMM_QUIET))
	{
	  send_to_char ("You must turn off quiet mode first.\n\r", ch);
	  return;
	}
      if (IS_SET (ch->comm, COMM_NOCHANNELS))
	{
	  send_to_char
	    ("The gods have revoked your channel priviliges.\n\r", ch);
	  return;
	}
      if (IS_SET (ch->comm2, COMM_RANTONLY))
      {
	      send_to_char("The gods have decreed you may only use the Rant Channel.\n\r", ch);
	      return;
      }
      REMOVE_BIT (ch->comm, COMM_NOQUESTION);
      if (ch->level < 3)
	{
	  send_to_char
	    ("Sorry, you are too young to project your voice across the lands in that manner.\n\r",
	     ch);
	  return;
	}
      if (ch->race == 7 && !IS_IMMORTAL (ch))
	{
	  act
	    ("The fragile structure of your vocal system prevents you from creating anything other than a high-pitched whine.",
	     ch, NULL, NULL, TO_CHAR);
	  return;
	}
       if (ch->race == PC_RACE_LITAN && !IS_IMMORTAL (ch))
       {
	 do_shout(ch,argument);
         return;
        }

      //IBLIS 5/31/03 - Added Drunk Talk to question
      if (!IS_NPC (ch) && ch->pcdata->condition[COND_DRUNK] > 10)
        drunkify (ch, argument);
	
      if (ch->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(ch))
       cj_self(ch,argument);
      else
      {
        sprintf (buf, "`a[`MAnswer`a] `lYou`a: '`M%s`a'``\n\r", argument);
        send_to_char (buf, ch);
      }

      if (ch->race == PC_RACE_NIDAE)
        nidaeify(ch,bufn,argument);
      else anti_nidaeify(ch,bufn,argument);
      
      if (!IS_SET (ch->comm2, COMM_SHUTUP))
      for (d = descriptor_list; d != NULL; d = d->next)
	{
	  CHAR_DATA *victim;
	  victim = d->original ? d->original : d->character;
	  if (d->connected == CON_PLAYING && d->character != ch
	      && !IS_SET (victim->comm, COMM_NOQUESTION)
	      && !IS_SET (victim->comm, COMM_QUIET))
	    {
	      if (is_ignoring(victim, ch)) 
              continue;
	      if ((d->character->race == PC_RACE_NIDAE && !IS_IMMORTAL(victim))|| (ch->race == PC_RACE_NIDAE && IS_IMMORTAL(victim)))
	      {
 	        if (d->character->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(victim))
	          cj_channel(d->character,bufn);
		else act_new ("`a[`MAnswer`a]`l $n`a: '`M$t`a'``", ch,
		       bufn, d->character, TO_VICT, POS_SLEEPING);
	      }
	      else
	      {
		if (d->character->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(victim))
                  cj_channel(d->character,argument);
		else  act_new ("`a[`MAnswer`a]`l $n`a: '`M$t`a'``", ch,
				argument, d->character, TO_VICT, POS_SLEEPING);
	      }
		      
	    }
	}
    }
}

void do_anonymous (CHAR_DATA * ch, char *argument)
{
  if (IS_SET (ch->comm, COMM_ANONYMOUS))
    {
      REMOVE_BIT (ch->comm, COMM_ANONYMOUS);
      send_to_char ("Anonymous mode removed.\n\r", ch);
    }

  else
    {
      if (ch->race != 7 && ch->level < 30)
	{
	  send_to_char
	    ("You are not high enough level to become anonymous.\n\r", ch);
	  return;
	}
      SET_BIT (ch->comm, COMM_ANONYMOUS);
      send_to_char ("You are now anonymous.\n\r", ch);
    }
}


    // The bit toggled for spying on clan channels
    // Added by Morgan on June 24. 2000
void do_hearclan (CHAR_DATA * ch)
{
  if (IS_SET (ch->comm, COMM_HEARCLAN))
    {
      send_to_char ("Hearclan is now ON.\n\r", ch);
      REMOVE_BIT (ch->comm, COMM_HEARCLAN);
    }

  else
    {
      send_to_char ("Hearclan is now OFF.\n\r", ch);
      SET_BIT (ch->comm, COMM_HEARCLAN);
    }
}

void do_music (CHAR_DATA * ch, char *argument)
{
  char buf[MAX_STRING_LENGTH], bufn[MAX_STRING_LENGTH];
  DESCRIPTOR_DATA *d;
  if (argument[0] == '\0')
    {
      if (IS_SET (ch->comm, COMM_NOMUSIC))
	{
	  send_to_char ("Music channel is now ON.\n\r", ch);
	  REMOVE_BIT (ch->comm, COMM_NOMUSIC);
	}

      else
	{
	  send_to_char ("Music channel is now OFF.\n\r", ch);
	  SET_BIT (ch->comm, COMM_NOMUSIC);
	}
    }

  else
    /* music sent, turn music on if it isn't already */
    {
      if (IS_SET (ch->comm, COMM_QUIET))
	{
	  send_to_char ("You must turn off quiet mode first.\n\r", ch);
	  return;
	}
      if (IS_SET (ch->comm, COMM_NOCHANNELS))
	{
	  send_to_char
	    ("The gods have revoked your channel priviliges.\n\r", ch);
	  return;
	}
      if (IS_SET (ch->comm2, COMM_RANTONLY))
      {
	      send_to_char("The gods have decreed you may only use the Rant Channel.\n\r", ch);
	      return;
      }
      if (!IS_CLASS (ch, PC_CLASS_BARD) && !IS_IMMORTAL (ch) && ch->race != PC_RACE_NIDAE)
	{
	  send_to_char
	    ("Only the melodic voices of bards are dulcet enough to be projected to such a wide audience.\n\r",
	     ch);
	  return;
	}
      REMOVE_BIT (ch->comm, COMM_NOMUSIC);
      if (ch->level < 3)
	{
	  send_to_char
	    ("Sorry, you are too young to project your voice across the lands in that manner.\n\r",
	     ch);
	  return;
	}
      if (ch->race == 7 && !IS_IMMORTAL (ch))
	{
	  act
	    ("The fragile structure of your vocal system prevents you from creating anything other than a high-pitched whine.",
	     ch, NULL, NULL, TO_CHAR);
	  return;
	}
      if (ch->race == PC_RACE_LITAN && !IS_IMMORTAL (ch))
      {
        do_shout(ch,argument);
        return;
      }
	
      //IBLIS 5/31/03 - Added Drunk Talk to music
      if (!IS_NPC (ch) && ch->pcdata->condition[COND_DRUNK] > 10)
	drunkify (ch, argument);
      if (ch->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(ch))
        cj_self(ch,argument);
      else
      {
        sprintf (buf, "`a[`QMusic`a] `lYou`a: '`Q%s`a'``\n\r", argument);
        send_to_char (buf, ch);
      }

     if (ch->race == PC_RACE_NIDAE)
       nidaeify(ch,bufn,argument);
     else anti_nidaeify(ch,bufn,argument);
      
     if (!IS_SET (ch->comm2, COMM_SHUTUP))
      for (d = descriptor_list; d != NULL; d = d->next)
	{
	  CHAR_DATA *victim;
	  victim = d->original ? d->original : d->character;
	  if (d->connected == CON_PLAYING && d->character != ch
	      && !IS_SET (victim->comm, COMM_NOMUSIC)
	      && !IS_SET (victim->comm, COMM_QUIET))
	    {
	      if (is_ignoring(victim, ch)) 
              continue;
	      if ((d->character->race == PC_RACE_NIDAE && !IS_IMMORTAL(victim))
		      || (ch->race == PC_RACE_NIDAE && IS_IMMORTAL(victim)))
	      {
		if (d->character->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(victim))
		  cj_channel(d->character,bufn);
		else act_new ("`a[`QMusic`a] `l$n`a: `a'`Q$t`a'``", ch,
	                bufn, d->character, TO_VICT, POS_SLEEPING);
	      }
	      else 
	      {
	        if (d->character->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(victim))
	          cj_channel(d->character,argument);
		else act_new ("`a[`QMusic`a] `l$n`a: `a'`Q$t`a'``", ch,
	          argument, d->character, TO_VICT, POS_SLEEPING);
	      }
	    }
	}
    }
}

void do_elite (CHAR_DATA * ch, char *argument)
{
  char buf[MAX_STRING_LENGTH];
  DESCRIPTOR_DATA *d;
  if (strcmp (ch->name, "Murk") != 0 && strcmp (ch->name, "Cailet") != 0
      && strcmp (ch->name, "Ragnar") != 0
      && strcmp (ch->name, "Taerna") != 0 && strcmp (ch->name, "Nekom") != 0
      && strcmp (ch->name, "Iblis") != 0)  //Sorry to infiltrate your code guys (and gals),
  					   //but you are all gone, so I will just use
					   //this as a channel to talk to myself on
    {
      send_to_char ("Huh?\n\r", ch);
      return;
    }
  if (argument[0] == '\0')
    {
      send_to_char ("You don't want to be lame, do you?\n\r", ch);
      return;
    }
  sprintf (buf, "`a[`bEliTe`a] `lYou`a: '`b%s`a'``\n\r", argument);
  send_to_char (buf, ch);
  for (d = descriptor_list; d != NULL; d = d->next)
    {
      CHAR_DATA *victim;
      victim = d->original ? d->original : d->character;
      if (d->connected == CON_PLAYING && d->character != ch
	  && !IS_NPC (d->character)
	  && (!strcmp (d->character->name, "Cailet")
	      || !strcmp (d->character->name, "Ragnar")
	      || !strcmp (d->character->name, "Nekom")
	      || !strcmp (d->character->name, "Taerna")
	      || !strcmp (d->character->name, "Murk")
	      || !strcmp (d->character->name, "Iblis")))
	{
	  act_new ("`a[`bEliTe`a] `l$n`a: `a'`b$t`a'``", ch, argument,
		   d->character, TO_VICT, POS_SLEEPING);
	}
    }
}


/* clan channels */
void do_clantalk (CHAR_DATA * ch, char *argument)
{
  char buf[MAX_STRING_LENGTH], bufn[MAX_STRING_LENGTH];
  DESCRIPTOR_DATA *d;
  if (!is_clan (ch))
    {
      send_to_char ("You aren't in a clan.\n\r", ch);
      return;
    }
  if (!is_full_clan (ch))
    {
      send_to_char
	("Sorry, your clan has not yet reached full-clan status.\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 privileges.\n\r", ch);
      return;
    }
  REMOVE_BIT (ch->comm, COMM_NOCLAN);
  if (IS_SET (ch->comm2, COMM_RANTONLY))
  {
	  send_to_char("The gods have decreed you may only use the Rant Channel.\n\r", ch);
	  return;
  }

  //IBLIS 5/31/03 - Added Drunk Talk to clan talk
  if (!IS_NPC (ch) && ch->pcdata->condition[COND_DRUNK] > 10)
    drunkify (ch, argument);
  if (ch->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(ch))
	  cj_self(ch,argument);
  else
  {
    sprintf (buf, "%s `OYou`a: '`O%s`a'``\n\r", get_clan_symbol_ch (ch),
	   argument);
    send_to_char (buf, ch);
  }
  
  if (ch->race == PC_RACE_NIDAE)
    nidaeify(ch,bufn,argument);
  else anti_nidaeify(ch,bufn,argument);
  
  sprintf (buf, "%s `O$n`a: '`O$t`a'``", get_clan_symbol_ch (ch));

  // Changed on June 24. 2000 to support the command/channel hearclan
  if (!IS_SET (ch->comm2, COMM_SHUTUP))
  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))
	  || (d->connected == CON_PLAYING && d->character != ch
	      && !IS_SET (d->character->comm, COMM_HEARCLAN)
	      && !IS_SET (d->character->comm, COMM_QUIET)
	      && IS_IMMORTAL (d->character) && d->character->level > 94))
	{
	      if (is_ignoring(d->character, ch)) 
              continue;
          if ((d->character->race == PC_RACE_NIDAE && !IS_IMMORTAL(d->character))
		  || (ch->race == PC_RACE_NIDAE && IS_IMMORTAL(d->character)))
	  {
  	    if (d->character->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(d->character))
	      cj_channel(d->character,bufn);
	    else act_new (buf, ch, bufn, d->character, TO_VICT, POS_DEAD);
	  }
	  else 
	  {
	    if (d->character->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(d->character))
	      cj_channel(d->character,argument);
	    else act_new (buf, ch, argument, d->character, TO_VICT, POS_DEAD);
	  }
	}
    }
  return;
}


// This command is used for sending messages on clan channels
// Added by Morgan on June 26. 2000
void do_sendclan (CHAR_DATA * ch, char *argument)
{
  char buf[MAX_STRING_LENGTH];
  DESCRIPTOR_DATA *d;
  char arg1[MAX_INPUT_LENGTH];
  int clan;

  // snarf first argument and look it up in the clan table
  argument = one_argument (argument, arg1);
  clan = clan_lookup (arg1);

  /* if it doesn't find a matching clan, tell the user */
  if (clan == CLAN_BOGUS)
    {
      send_to_char ("Sorry! No such clan exists!!!\n\r", ch);
      return;
    }

  /*
   * set up the message that needs to be sent to the players in the clan
   * echo it to yourself to see yourself writing..
   */
  if (ch->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(ch))
	  cj_self(ch,argument);
  else
  {
    sprintf (buf, "%s `OYou`a: '`O%s`a'``\n\r", get_clan_symbol (clan),
	   argument);
    send_to_char (buf, ch);
  }

  // set up the message that goes to others
  sprintf (buf, "%s `O$n`a: '`O$t`a'``", get_clan_symbol (clan));

/*
 *  look around the world for targets and send it to them.
 *  sendclan is special in that way, because as an immortal
 *  we don't care about the status of the player, as long
 *  as they are members of the targeted clan
 */

  for (d = descriptor_list; d != NULL; d = d->next)
    {
      if ((d->connected == CON_PLAYING && d->character != ch
	   && is_clan_member (d->character, clan)
	   && !IS_SET (d->character->comm, COMM_NOCLAN)
	   && !IS_SET (d->character->comm, COMM_QUIET))
	  || (d->connected == CON_PLAYING && d->character != ch
	      && !IS_SET (d->character->comm, COMM_HEARCLAN)
	      && !IS_SET (d->character->comm, COMM_QUIET)
	      && IS_IMMORTAL (d->character) && d->character->level > 94))
	{
  	  if (d->character->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(d->character))
	    cj_channel(d->character,argument);
	  else act_new (buf, ch, argument, d->character, TO_VICT, POS_DEAD);
	}
    }
  return;
}



//
// Send a message on a clan war channel as a specific clan member
//
void do_sendcw (CHAR_DATA * ch, char *argument)
{
  char buf[MAX_STRING_LENGTH];
  int slot;
  char arg1[MAX_INPUT_LENGTH];
  CHAR_DATA *player;

  // snarf first argument and look it up in the clan table
  argument = one_argument (argument, arg1);
  slot = clan_lookup (arg1);

  /* if it doesn't find a matching clan, tell the user */
  if (slot == CLAN_BOGUS)
    {
      send_to_char ("Sorry! No such clan exists!!!\n\r", ch);
      return;
    }

  // their clan better be an active clan
  if (clan_table[slot].status < CLAN_ACTIVE)
    {
      send_to_char ("That clan is not a full clan.\n\r", ch);
      return;
    }
  // what is the text
  if (argument[0] == '\0')
    {
      send_to_char ("What would you like to say to the allies?\n\r", ch);
      return;
    }

  // they better have allies
  if (!clan_has_allies (slot))
    {
      send_to_char ("But, that clan has no allies.\n\r", ch);
      return;
    }

  if (ch->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(ch))
	  cj_self(ch,argument);
  else
  {
    sprintf (buf, "[CLANWAR] %s `OYou`a: '`O%s`a'``\n\r",get_clan_symbol(slot), argument);
    send_to_char (buf, ch);
  }

  sprintf (buf, "[CLANWAR] %s `O$n`a: '`O$t`a'``", get_clan_symbol(slot));
  player = char_list;
  while (player)
    {
      if ((!IS_NPC (player) &&
	   (ch != player) && ((slot == player->clan)
			      || is_ally (slot, player->clan)))
	  || (!IS_NPC (player)
	      && (IS_IMMORTAL (player)
		  && !IS_SET (player->comm, COMM_HEARCLAN))))
	{
  	  if (player->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(player))
	    cj_channel(player,argument);
	  else act_new (buf, ch, argument, player, TO_VICT, POS_DEAD);
	}
      player = player->next;
    }
}


void do_immtalk (CHAR_DATA * ch, char *argument)
{
  char buf[MAX_STRING_LENGTH];
  DESCRIPTOR_DATA *d;
  if (argument[0] == '\0')
    {
      if (IS_SET (ch->comm, COMM_NOWIZ))
	{
	  send_to_char ("Immortal channel is now ON\n\r", ch);
	  REMOVE_BIT (ch->comm, COMM_NOWIZ);
	}

      else
	{
	  send_to_char ("Immortal channel is now OFF\n\r", ch);
	  SET_BIT (ch->comm, COMM_NOWIZ);
	}
      return;
    }
  REMOVE_BIT (ch->comm, COMM_NOWIZ);
  sprintf (buf, "`l$n`a: `R%s``", argument);
  if (IS_IMMORTAL(ch))
  {
   act_new ("`a[`RImm`a] `l$n`a: `R$t``", ch, argument, NULL, TO_CHAR,
	   POS_DEAD);
  }
  for (d = descriptor_list; d != NULL; d = d->next)
    {
      if (d->connected == CON_PLAYING && IS_IMMORTAL (d->character)
	  && !IS_SET (d->character->comm, COMM_NOWIZ))
	{
	  act_new ("`a[`RImm`a] `l$n`a: `R$t``", ch, argument,
		   d->character, TO_VICT, POS_DEAD);
	}
    }
  return;
}

void do_showdamage (CHAR_DATA * ch, char *argument)
{
      if (IS_SET (ch->comm2, COMM_SHOWDAMAGE))
	{
	  send_to_char ("You no longer see damage count!\n\r", ch);
	  REMOVE_BIT (ch->comm2, COMM_SHOWDAMAGE);
	}
      else
	{
	  send_to_char ("You now see damage numbers!\n\r", ch);
	  SET_BIT (ch->comm2, COMM_SHOWDAMAGE);
	}
  return;
}




/* 
 * An imm channel for level 100's to communicate in private
 * added by Morgan on June 24. 2000
 */
void do_admin (CHAR_DATA * ch, char *argument)
{
  char buf[MAX_STRING_LENGTH];
  DESCRIPTOR_DATA *d;
  if (argument[0] == '\0')
    {
      if (IS_SET (ch->comm, COMM_NOADMIN))
	{
	  send_to_char ("Administrator channel is now ON\n\r", ch);
	  REMOVE_BIT (ch->comm, COMM_NOADMIN);
	}

      else
	{
	  send_to_char ("Administrator channel is now OFF\n\r", ch);
	  SET_BIT (ch->comm, COMM_NOADMIN);
	}
      return;
    }
  REMOVE_BIT (ch->comm, COMM_NOADMIN);
  sprintf (buf, "$n: %s", argument);
  act_new ("`a[`SAdm`a] `l$n`a: `S$t``", ch, argument, NULL, TO_CHAR,
	   POS_DEAD);
  for (d = descriptor_list; d != NULL; d = d->next)
    {
      if (d->connected == CON_PLAYING && IS_IMMORTAL (d->character)
	  && !IS_SET (d->character->comm, COMM_NOADMIN)
	  && d->character->level > 99)
	{
	  act_new ("`a[`SAdm`a] `l$n`a: `S$t``", ch, argument,
		   d->character, TO_VICT, POS_DEAD);
	}
    }
  return;
}

void do_say (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *vch;
  char talktext[MAX_STRING_LENGTH];
  char bufn[MAX_STRING_LENGTH];

//  int i=0;
  if (IS_SET (ch->in_room->room_flags, ROOM_SILENT) && !IS_IMMORTAL (ch))
    {
      send_to_char
	("This room is shielded from disturbance by powerful wards of magic.\n\r",
	 ch);
      return;
    }
  if (argument[0] == '\0')
    {
      send_to_char ("Say what?\n\r", ch);
      return;
    }
  // End of Minax Changes
  if (ch->race == 7 && !IS_IMMORTAL (ch))
    {
      if (ch->race >= 40 && ch->move >= 10 && ch->mana >= 10)
	{
	  ch->hit = ch->hit - (ch->level / 2);
	  if (ch->hit < 0)
	    {
	      send_to_char
		("Your speaking efforts have exhausted you to the point of death.\n\r",
		 ch);
	      raw_kill (ch, ch);
	    }
	}

      else
	{
	  act
	    ("The fragile structure of your vocal system prevents you from creating anything other than a high-pitched whine.",
	     ch, NULL, NULL, TO_CHAR);
	  return;
	}
    }
   if (ch->race == PC_RACE_LITAN && !IS_IMMORTAL (ch))
   {
     do_shout(ch,argument);
     return;
   }

   if (IS_SET(ch->act2,ACT_PUPPET))
   {
     do_switchtalk(ch,argument);
     return;
   }
    
  // IBLIS 5/31/03 - People wanted drunk talk (why who knows) so I deliver
  if (!IS_NPC (ch) && ch->pcdata->condition[COND_DRUNK] > 10)
    {
      drunkify (ch, argument);
    }
  // Minax 6/29/02--When Vro'aths talk, they grunt and when Canthi talk,
  // they gurgle.
  if (ch->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(ch))
    cj_self(ch,argument);
  if (ch->race == 4 && !IS_IMMORTAL (ch))
    {
      strcpy(bufn,"gurgles");
      if (!(ch->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(ch)))
        act ("You gurgle `a'`K$T`a'``", ch, NULL, argument, TO_CHAR);
    }

  else if (ch->race == 5 && !IS_IMMORTAL (ch))
    {
      strcpy(bufn,"grunt");
       if (!(ch->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(ch)))
      act ("You grunt `a'`K$T`a'``", ch, NULL, argument, TO_CHAR);
    }
  else if (ch->race == PC_RACE_NIDAE && !IS_IMMORTAL (ch))
    {
      strcpy(bufn,"sings");
       if (!(ch->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(ch)))
      act ("You sing `a'`K$T`a'``", ch, NULL, argument, TO_CHAR);
    }
  else
    {
      strcpy(bufn,"says");
       if (!(ch->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(ch)))
      act ("You say `a'`K$T`a'``", ch, NULL, argument, TO_CHAR);
    }
  sprintf (talktext,"$n %s `a'`K$t`a'``",bufn);
  if (ch->race == PC_RACE_NIDAE)
    nidaeify(ch,bufn,argument);
  else anti_nidaeify(ch,bufn,argument);
  for (vch = ch->in_room->people;vch != NULL;vch = vch->next_in_room)
    {
      if (ch == vch)
        continue;
      if ((vch->race == PC_RACE_NIDAE && !IS_IMMORTAL(vch))
	      || (ch->race == PC_RACE_NIDAE && IS_IMMORTAL(vch)))
      {
        if (vch->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(vch))
           cj_channel(vch,bufn);
	else act (talktext, ch, bufn, vch, TO_VICT);
      }
      else 
      {
	if (vch->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(vch))
           cj_channel(vch,argument);
	else act (talktext, ch, argument, vch, TO_VICT);
      }
    }
  if (!IS_NPC (ch))
    for (vch = ch->in_room->people; vch; vch = vch->next_in_room)
      {
	if (vch == ch || !IS_NPC (vch) || get_position(vch) == POS_SLEEPING)
	  continue;
	strcpy (talktext, argument);
	mob_talk (ch, vch, talktext, 1);
      }
  trip_triggers_arg(ch, OBJ_TRIG_CHAR_VOCALIZE, NULL, NULL, OT_VOC_SAY, argument);
  return;
}

void drunkify (CHAR_DATA * ch, char *argument)
{
  int i = 0;
  if (IS_NPC (ch))
    return;
  for (i = 0; i < strlen (argument); i++)
    {
      if (number_percent () <
	  (((ch->pcdata->condition[COND_DRUNK] - 10) * .5) + 5))
	{
	  if (argument[i] < 'a' || argument[i] > 'z')
	    argument[i] = 'a';
	  argument[i] = (char) ((argument[i] + number_percent ()) % 26) + 97;
	  if (number_percent () < 10)
	    argument[i] -= 32;
	}

      else if (argument[i] >= 'a' && argument[i] <= 'z'
	       && number_percent () <
	       (ch->pcdata->condition[COND_DRUNK] + 25))
	argument[i] -= 32;
    }
}

char* nidaeify (CHAR_DATA *ch, char *argument, char *bufn)
{
  int i = 0;
  strcpy(argument,bufn);
  if (IS_IMMORTAL(ch))
    return bufn;
//  static char buf[MAX_STRING_LENGTH];
  for (i = 0; i < strlen (argument); i++)
    {
      if (argument[i] != ' ')
	{
	switch(number_range(1,5))
	  {
	  case 1: bufn[i] = 'a';break;
	  case 2: bufn[i] = 'e';break;
	  case 3: bufn[i] = 'i';break;
	  case 4: bufn[i] = 'o';break;
	  case 5: bufn[i] = 'u';break;
	  }
	}
      else bufn[i] = ' ';
    }
  return bufn;
}

char* anti_nidaeify (CHAR_DATA *ch, char *argument, char *bufn)
{
  int i = 0;
  strcpy (argument,bufn);
  if (IS_IMMORTAL(ch))
    return bufn;
  for (i = 0; i < strlen (argument); i++)
    {
      if (number_percent () <
          ((100 * .5) + 5))
        {
          if (argument[i] < 'a' || argument[i] > 'z')
            argument[i] = 'a';
          argument[i] = (char) ((argument[i] + number_percent ()) % 26) + 97;
          if (number_percent () < 10)
            argument[i] -= 32;
        }

      else if (argument[i] >= 'a' && argument[i] <= 'z'
               && number_percent () <
               (80))
        argument[i] -= 32;
    }
  return bufn;
}


void do_shout (CHAR_DATA * ch, char *argument)
{
  DESCRIPTOR_DATA *d;
  char bufn[MAX_STRING_LENGTH];
  if (argument[0] == '\0')
    {
      if (IS_SET (ch->comm, COMM_SHOUTSOFF))
	{
	  send_to_char ("You can hear shouts again.\n\r", ch);
	  REMOVE_BIT (ch->comm, COMM_SHOUTSOFF);
	}

      else
	{
	  send_to_char ("You will no longer hear shouts.\n\r", ch);
	  SET_BIT (ch->comm, COMM_SHOUTSOFF);
	}
      return;
    }
  if (IS_SET (ch->comm, COMM_NOSHOUT))
    {
      send_to_char ("You can't shout.\n\r", ch);
      return;
    }
  if (IS_SET (ch->in_room->room_flags, ROOM_SILENT) && !IS_IMMORTAL (ch))
    {
      send_to_char ("Sssshhhh... Silence is a must in this room\n\r", ch);
      return;
    }
  REMOVE_BIT (ch->comm, COMM_SHOUTSOFF);
  if (ch->level < 3)
    {
      send_to_char
	("Sorry, you are too young to project your voice across the lands in that manner.\n\r",
	 ch);
      return;
    }
  if (ch->race == 7 && !IS_IMMORTAL (ch))
    {
      act
	("The fragile structure of your vocal system prevents you from creating anything other than a high-pitched whine.",
	 ch, NULL, NULL, TO_CHAR);
      return;
    }
  //IBLIS 5/31/03 - Added Drunk Talk to shouting
  if (!IS_NPC (ch) && ch->pcdata->condition[COND_DRUNK] > 10)
    drunkify (ch, argument);
  WAIT_STATE (ch, 12);
  if (ch->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(ch))
    cj_self(ch,argument);
  else if (ch->race == PC_RACE_LITAN)
    act ("You shriek '$T'", ch, NULL, argument, TO_CHAR);	  
  else act ("You shout '$T'", ch, NULL, argument, TO_CHAR);
  if (ch->race == PC_RACE_NIDAE)
    nidaeify(ch,bufn,argument);
  else anti_nidaeify(ch,bufn,argument);
  if (!IS_SET (ch->comm2, COMM_SHUTUP))
  for (d = descriptor_list; d != NULL; d = d->next)
    {
      CHAR_DATA *victim;
      victim = d->original ? d->original : d->character;
      if (d->connected == CON_PLAYING && d->character != ch
	  && !IS_SET (victim->comm, COMM_SHOUTSOFF)
	  && !IS_SET (victim->comm, COMM_QUIET))
	{
	      if (is_ignoring(victim, ch)) 
              continue;
          if (ch->race == PC_RACE_LITAN)
	  {
  	    if (d->character->race == PC_RACE_NIDAE)
	    {
 	      if (d->character->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(d->character))
	        cj_channel(d->character,bufn);
	      else act ("$n shrieks '$t'", ch, bufn, d->character, TO_VICT);
	    }
	    else 
	    {
	      if (d->character->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(d->character))
	        cj_channel(d->character,argument);
	      else act ("$n shrieks '$t'", ch, argument, d->character, TO_VICT);
	    }
	  }
	  else 
	  {
  	    if ((d->character->race == PC_RACE_NIDAE && !IS_IMMORTAL(victim))
			    || (ch->race == PC_RACE_NIDAE && IS_IMMORTAL(victim)))
	    {
 	      if (d->character->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(d->character))
	        cj_channel(d->character,bufn);
	      else act ("$n shouts '$t'", ch, bufn, d->character, TO_VICT);
	    }
	    else  
	    {
	      if (d->character->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(d->character))
   	        cj_channel(d->character,argument);
	      else act ("$n shouts '$t'", ch, argument, d->character, TO_VICT);
	    }
	  }
	}
    }
   trip_triggers_arg(ch, OBJ_TRIG_CHAR_VOCALIZE, NULL, NULL, OT_VOC_SHOUT, argument);
  return;
}

FAKE_DATA *get_fake (char *str)
{
  FAKE_DATA *fake_ch;
  for (fake_ch = fake_list; fake_ch != NULL; fake_ch = fake_ch->next)
    if (!str_cmp (str, fake_ch->name))
      return (fake_ch);
  return (NULL);
}

void do_tell (CHAR_DATA * ch, char *argument)
{
  char arg[MAX_INPUT_LENGTH], buf[MAX_STRING_LENGTH];
  char tcbuf[MAX_INPUT_LENGTH], bigbuf[MAX_STRING_LENGTH];
  char message[MAX_INPUT_LENGTH];
  char *content;
  CHAR_DATA *victim;
  bool last = FALSE;
  strcpy (tcbuf, argument);
  if (IS_SET (ch->comm, COMM_NOTELL) || IS_SET (ch->comm, COMM_DEAF))
    {
      send_to_char ("Your message didn't get through.\n\r", ch);
      return;
    }
  if (IS_SET (ch->comm, COMM_QUIET))
    {
      send_to_char ("You must turn off quiet mode first.\n\r", ch);
      return;
    }
  if (IS_SET (ch->comm, COMM_DEAF))
    {
      send_to_char ("You must turn off deaf mode first.\n\r", ch);
      return;
    }
  argument = one_argument (argument, arg);
  if (arg[0] == '\0' || argument[0] == '\0')
    {
      send_to_char ("Tell whom what?\n\r", ch);
      return;
    }
  if (arg[0] == '[')
    {
      char *cptr, *cptr2;
      if ((cptr = strchr (tcbuf, ']')) == NULL)
	{
	  send_to_char ("Didn't understand name list.\n\r", ch);
	  return;
	}
      *cptr = '\0';
      strcpy (message, cptr + 1);
      cptr = tcbuf + 1;
      while (1)
	{
	  cptr2 = strchr (cptr, ',');
	  if (cptr2 == NULL)
	    {
	      last = TRUE;
	      cptr2 = strchr (tcbuf, '\0');
	    }
	  *cptr2 = '\0';

	  //IBLIS 5/31/03 - Added Drunk Talk to tells
	  if (!IS_NPC (ch) && ch->pcdata->condition[COND_DRUNK] > 10)
	    drunkify (ch, message);
	  sprintf (bigbuf, "%s %s", cptr, message);
	  do_tell (ch, bigbuf);
	  if (last)
	    return;
	  cptr = cptr2 + 1;
	}
    }

  /*
   * Can tell to PC's anywhere, but NPC's only in same room.
   * -- Furey
   */
  if ((victim = get_char_world (ch, arg)) == NULL
      || (IS_NPC (victim) && victim->in_room != ch->in_room))
    {
      FAKE_DATA *fake_vict;
      if ((fake_vict = get_fake (arg)) != NULL)
	{
	  char fbuf[MAX_STRING_LENGTH];
	  sprintf (fbuf, "You tell %s `a'`L%s`a'``\n\r",
		   fake_vict->name, argument);
	  send_to_char (fbuf, ch);
	  return;
	}
      send_to_char ("They aren't here.\n\r", ch);
      return;
    }
  if (victim->race == PC_RACE_SIDHE && !IS_IMMORTAL (victim) && !IS_IMMORTAL (ch) && !IS_SET(ch->act2,ACT_QUESTMASTER))
    {
      act
	("The Sidhe you are trying to speak to cannot be communicated with in this manner.",
	 ch, NULL, NULL, TO_CHAR);
      return;
    }
  if (ch->race == PC_RACE_SIDHE && !IS_IMMORTAL (ch))
    {
      act
	("The fragile structure of your vocal system prevents you from creating anything other than a high-pitched whine.",
	 ch, NULL, NULL, TO_CHAR);
      return;
    }
   if (ch->race == PC_RACE_LITAN && !IS_IMMORTAL (ch) && !IS_IMMORTAL(victim))
    {
         if (ch->hit < (ch->max_hit/15))
	 {
		 send_to_char("You do not have the strength to tell anyone anything.\n\r",ch);
		 return;
	 }
	 else ch->hit -= (ch->max_hit/15);
	 send_to_char("The pain is exquisite, but you manage to send the tell.\n\r",ch);
    }
    
  if (victim->desc == NULL && !IS_NPC (victim))
    {
      act ("$N seems to have misplaced $S link...try again later.", ch,
	   NULL, victim, TO_CHAR);
      if (victim->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(victim))
        return;
      sprintf (buf, "%s tells you `a'`L%s`a'``\n\r", PERS (ch, victim),
	       argument);
      buf[0] = UPPER (buf[0]);
      add_buf (victim->pcdata->buffer, buf);
      return;
    }
  if (!(IS_IMMORTAL (ch) && ch->level > LEVEL_IMMORTAL) && !IS_AWAKE (victim))
    {
      act ("$E can't hear you.", ch, 0, victim, TO_CHAR);
      return;
    }
  if (IS_NPC (ch) && !IS_AWAKE (victim))
    {
      act ("$E can't hear you.", ch, NULL, victim, TO_CHAR);
      return;
    }
  if ((IS_SET (victim->comm, COMM_QUIET)
       || IS_SET (victim->comm, COMM_DEAF)) && !IS_IMMORTAL (ch))
    {
      act ("$E is not receiving tells.", ch, 0, victim, TO_CHAR);
      return;
    }
  if (IS_SET (victim->comm, COMM_AFK))
    {
      if (IS_NPC (victim))
	{
	  act ("$E is AFK, and not receiving tells.", ch, NULL, victim,
	       TO_CHAR);
	  return;
	}
      if (!IS_NPC(victim) && IS_IMMORTAL(victim) && !IS_NPC(ch) && gold_toll != 0)
	{
	  bool bdam = FALSE;
	  if (ch->gold >= gold_toll)
	    ch->gold -= gold_toll;
	  else if (ch->silver >= gold_toll*100)
	    ch->silver -= gold_toll*100;
	  else if (ch->pcdata->bank_gold >= gold_toll)
	    ch->pcdata->bank_gold -= gold_toll;
	  else if (ch->pcdata->bank_silver >= gold_toll*100)
	    ch->pcdata->bank_silver -= gold_toll*100;
      else
	{
	  bdam = TRUE;
	  damage (ch,ch,damage_toll,gsn_likobe,DAM_UNIQUE,FALSE);
	  sprintf(buf,"This tell cost you %ld damage.", damage_toll);
	  act (buf, ch, argument, victim, TO_CHAR);
	}
	  if (bdam == FALSE)
	    {
	      sprintf(buf,"This tell cost you %ld gold.", gold_toll);
	      act (buf, ch, argument, victim, TO_CHAR);
	    }
	}

      if (victim->afkmsg[0] == '\0')
	act ("$E is AFK, but your tell will go through when $E returns.", ch,
	     NULL, victim, TO_CHAR);

      else
	{
	  sprintf (buf, "%s is AFK: %s\n\r",
		   (is_affected (victim, gsn_mask)
		    && victim->mask !=
		    NULL) ? victim->mask : victim->name, victim->afkmsg);
	  send_to_char (buf, ch);
	}
      if (victim->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(victim))
        return;
      if (ch->race == PC_RACE_NIDAE)
        nidaeify(ch,buf,argument);
      else anti_nidaeify(ch,buf,argument);
      if ((victim->race == PC_RACE_NIDAE && !IS_IMMORTAL(victim))
	      || (ch->race == PC_RACE_NIDAE && IS_IMMORTAL(victim)))
      {
        sprintf (buf, "%s tells you `a'`L%s`a'``\n\r",
	       (is_affected (ch, gsn_mask)
		&& ch->mask != NULL) ? ch->mask : PERS (ch, victim),
	       buf);
      }
      else 
      {
        sprintf (buf, "%s tells you `a'`L%s`a'``\n\r",
               (is_affected (ch, gsn_mask)
                 && ch->mask != NULL) ? ch->mask : PERS (ch, victim),
                argument);
      }
      buf[0] = UPPER (buf[0]);
      add_buf (victim->pcdata->buffer, buf);
      return;
    }

  if (is_ignoring(victim, ch)) 
    {
       sprintf(buf, "%s is ignoring you.\n\r", victim->name);
       send_to_char(buf, ch);
       return;
     }
  if (!IS_NPC(victim) && IS_IMMORTAL(victim) && !IS_NPC(ch) && gold_toll != 0)
    {
      bool bdam = FALSE;
      if (ch->gold >= gold_toll)
        ch->gold -= gold_toll;
      else if (ch->silver >= gold_toll*100)
        ch->silver -= gold_toll*100;
      else if (ch->pcdata->bank_gold >= gold_toll)
        ch->pcdata->bank_gold -= gold_toll;
      else if (ch->pcdata->bank_silver >= gold_toll*100)
	ch->pcdata->bank_silver -= gold_toll*100;
      else
      {
	bdam = TRUE;
	damage (ch,ch,damage_toll,gsn_likobe,DAM_UNIQUE,FALSE);
	if (ch->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(ch))
  	  cj_self(ch,argument);
	else
	{
	  sprintf(buf,"You tell $N (for %ld damage) `a'`L$t`a'``", damage_toll);
          act (buf, ch, argument, victim, TO_CHAR);
	}
      }
      if (bdam == FALSE)
      {
        if (ch->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(ch))
          cj_self(ch,argument);
	else
	{
	  sprintf(buf,"You tell $N (for %ld gold) `a'`L$t`a'``", gold_toll);
          act (buf, ch, argument, victim, TO_CHAR);
	}
      }
    }

    else if (ch->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(ch))
      cj_self(ch,argument);
    else if (!IS_NPC(victim) && victim->desc && victim->desc->editor != 0 && victim->desc->connected != CON_PLAYING)
      act ("You tell $N (who is building) `a'`L$t`a'``", ch, argument, victim, TO_CHAR);
    else if (victim->fighting != NULL)
      act ("You tell $N (who's in combat) `a'`L$t`a'``", ch, argument, victim, TO_CHAR);
    else act ("You tell $N `a'`L$t`a'``", ch, argument, victim, TO_CHAR);
  if (ch->race == PC_RACE_NIDAE)
    nidaeify(ch,buf,argument);
  else anti_nidaeify(ch,buf,argument);
  if ((victim->race == PC_RACE_NIDAE  && !IS_IMMORTAL(victim))
	  || (ch->race == PC_RACE_NIDAE && IS_IMMORTAL(victim)))
    content = buf;
  else content = argument;
  {
    if (victim->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(victim))
      cj_channel(victim,content);
    else if (ch->fighting != NULL)
      act_new ("$n (who's in combat) tells you `a'`L$t`a'``", ch, content, victim, TO_VICT, POS_DEAD);
    else if (!IS_NPC(ch) && ch->desc->editor != 0)
      act_new ("$n (who is building) tells you `a'`L$t`a'``", ch, content, victim, TO_VICT, POS_DEAD);
    else act_new ("$n tells you `a'`L$t`a'``", ch, content, victim, TO_VICT, POS_DEAD);
  }
  victim->reply = ch;
  if (IS_NPC (victim) && !IS_NPC (ch))
    {
      if (get_position(victim) == POS_SLEEPING)
	{
	  act ("$N is sleeping, I don't think $E heard you.", ch, NULL,
	       victim, TO_CHAR);
	  return;
	}
      mob_talk (ch, victim, argument, 0);
    }
  return;
}

void do_telepath (CHAR_DATA * ch, char *argument)
{
  char arg[MAX_INPUT_LENGTH], buf[MAX_STRING_LENGTH];
  char tcbuf[MAX_INPUT_LENGTH], bigbuf[MAX_STRING_LENGTH];
  char message[MAX_INPUT_LENGTH];
  CHAR_DATA *victim;
  bool last = FALSE;
  if (ch->race != 7 && !IS_IMMORTAL (ch))
    {
      send_to_char ("You don't have the power to project thoughts.\n\r", ch);
      return;
    }
  strcpy (tcbuf, argument);
  if (IS_SET (ch->comm, COMM_NOTELL) || IS_SET (ch->comm, COMM_DEAF))
    {
      send_to_char ("Your telepathic message did not get through.\n\r", ch);
      return;
    }
  if (IS_SET (ch->comm, COMM_QUIET))
    {
      send_to_char ("You must turn off quiet mode first.\n\r", ch);
      return;
    }
  if (IS_SET (ch->comm, COMM_DEAF))
    {
      send_to_char ("You must turn off deaf mode first.\n\r", ch);
      return;
    }
  argument = one_argument (argument, arg);
  if (arg[0] == '\0' || argument[0] == '\0')
    {
      send_to_char ("Telepath whom what?\n\r", ch);
      return;
    }
  if (arg[0] == '[')
    {
      char *cptr, *cptr2;
      if ((cptr = strchr (tcbuf, ']')) == NULL)
	{
	  send_to_char ("Didn't understand name list.\n\r", ch);
	  return;
	}
      *cptr = '\0';
      strcpy (message, cptr + 1);
      cptr = tcbuf + 1;
      while (1)
	{
	  cptr2 = strchr (cptr, ',');
	  if (cptr2 == NULL)
	    {
	      last = TRUE;
	      cptr2 = strchr (tcbuf, '\0');
	    }
	  *cptr2 = '\0';

	  //IBLIS 5/31/03 - Added Drunk Talk to telepaths
	  if (!IS_NPC (ch) && ch->pcdata->condition[COND_DRUNK] > 10)
	    drunkify (ch, message);
	  sprintf (bigbuf, "%s %s", cptr, message);
	  do_tell (ch, bigbuf);
	  if (last)
	    return;
	  cptr = cptr2 + 1;
	}
    }
  if ((victim = get_char_world (ch, arg)) == NULL
      || (IS_NPC (victim) && victim->in_room != ch->in_room))
    {
      FAKE_DATA *fake_vict;
      if ((fake_vict = get_fake (arg)) != NULL)
	{
	  char fbuf[MAX_STRING_LENGTH];
	  sprintf (fbuf, "You telepath to %s `a'`L%s`a'``\n\r",
		   fake_vict->name, argument);
	  send_to_char (fbuf, ch);
	  return;
	}
      send_to_char ("They aren't here.\n\r", ch);
      return;
    }
  if (victim->race == PC_RACE_NIDAE && !IS_IMMORTAL(victim))
  {
    send_to_char ("You cannot send telepathic messages to that receiver.\n\r", ch);
    return;
  }
  if (victim->race != PC_RACE_SIDHE && !IS_IMMORTAL (victim) && !IS_NPC (victim))
    {
      if (get_curr_stat (ch, STAT_CHA) >= 20
	  && get_curr_stat (ch, STAT_INT) >= 21 && ch->level >= 30
	  && ch->mana >= 10 && ch->move != 10)
	{
	  ch->hit = ch->hit - (ch->level / 5);
	  if (ch->hit < 0)
	    {
	      send_to_char
		("Your telepathic efforts have exhausted you to the point of death.\n\r",
		 ch);
	      raw_kill (ch, ch);
	    }
	  ch->move = UMAX (ch->move - (ch->level / 5), 0);
	  ch->mana = UMAX (ch->mana - (ch->level / 5), 0);
	}

      else
	{
	  send_to_char
	    ("You cannot send telepathic messages to that receiver.\n\r", ch);
	  return;
	}
    }
  if (victim->desc == NULL && !IS_NPC (victim))
    {
      act ("$N seems to have misplaced $S link...try again later.", ch,
	   NULL, victim, TO_CHAR);
      if (victim->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(victim))
        return;
      sprintf (buf, "%s telepaths to you `a'`L%s`a'``\n\r",
	       PERS (ch, victim), argument);
      buf[0] = UPPER (buf[0]);
      add_buf (victim->pcdata->buffer, buf);
      return;
    }
  if (!(IS_IMMORTAL (ch) && ch->level > LEVEL_IMMORTAL) && !IS_AWAKE (victim))
    {
      act ("$E can't hear your telepathic message.", ch, 0, victim, TO_CHAR);
      return;
    }
  if (IS_NPC (ch) && !IS_AWAKE (victim))
    {
      act ("$E can't hear your telepathic message.", ch, NULL, victim,
	   TO_CHAR);
      return;
    }
  if ((IS_SET (victim->comm, COMM_QUIET)
       || IS_SET (victim->comm, COMM_DEAF)) && !IS_IMMORTAL (ch))
    {
      act ("$E is not receiving telepaths.", ch, 0, victim, TO_CHAR);
      return;
    }
  if (IS_SET (victim->comm, COMM_AFK))
    {
      if (IS_NPC (victim))
	{
	  act ("$E is AFK, and not receiving telepaths.", ch, NULL,
	       victim, TO_CHAR);
	  return;
	}
      if (!IS_NPC(victim) && IS_IMMORTAL(victim) && !IS_NPC(ch) && gold_toll != 0)
	{
	  bool bdam = FALSE;
	  if (ch->gold >= gold_toll)
	    ch->gold -= gold_toll;
	  else if (ch->silver >= gold_toll*100)
	    ch->silver -= gold_toll*100;
	  else if (ch->pcdata->bank_gold >= gold_toll)
	    ch->pcdata->bank_gold -= gold_toll;
	  else if (ch->pcdata->bank_silver >= gold_toll*100)
	    ch->pcdata->bank_silver -= gold_toll*100;
	  else
	    {
	      bdam = TRUE;
	      damage (ch,ch,damage_toll,gsn_likobe,DAM_UNIQUE,FALSE);
	      sprintf(buf,"This telepath cost you %ld damage.", damage_toll);
          act (buf, ch, argument, victim, TO_CHAR);
	    }
	  if (bdam == FALSE)
	    {
	      sprintf(buf,"This telepath cost you %ld gold.", gold_toll);
	      act (buf, ch, argument, victim, TO_CHAR);
	    }
	}
      
      if (victim->afkmsg[0] == '\0')
	act ("$E is AFK, but your telepath will go through when $E returns.",
	     ch, NULL, victim, TO_CHAR);

      else
	{
	  sprintf (buf, "%s is AFK: %s\n\r",
		   (is_affected (victim, gsn_mask)
		    && victim->mask !=
		    NULL) ? victim->mask : victim->name, victim->afkmsg);
	  send_to_char (buf, ch);
	}
      if (victim->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(victim))
        return;
      sprintf (buf, "%s telepaths to you `a'`L%s`a'``\n\r",
	       (is_affected (ch, gsn_mask)
		&& ch->mask != NULL) ? ch->mask : PERS (ch, victim),
	       argument);
      buf[0] = UPPER (buf[0]);
      if (!IS_NPC (victim))
	{
	  add_buf (victim->pcdata->buffer, buf);
	}
      return;
    }

  if (is_ignoring(victim, ch)) 
    {
       sprintf(buf, "%s is ignoring you.\n\r", victim->name);
       send_to_char(buf, ch);
       return;
     }

  if (!IS_NPC(victim) && IS_IMMORTAL(victim) && !IS_NPC(ch) && gold_toll != 0)
    {
      bool bdam = FALSE;
      if (ch->gold >= gold_toll)
        ch->gold -= gold_toll;
      else if (ch->silver >= gold_toll*100)
        ch->silver -= gold_toll*100;
      else if (ch->pcdata->bank_gold >= gold_toll)
        ch->pcdata->bank_gold -= gold_toll;
      else if (ch->pcdata->bank_silver >= gold_toll*100)
        ch->pcdata->bank_silver -= gold_toll*100;
      else
	{
	  bdam = TRUE;
	  damage (ch,ch,damage_toll,gsn_likobe,DAM_UNIQUE,FALSE);
	  if (ch->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(ch))
	    cj_self(ch,argument);
	  else
	  {
	    sprintf(buf,"You telepath to $N (for %ld damage) `a'`L$t`a'``", damage_toll);
	    act (buf, ch, argument, victim, TO_CHAR);
	  }
	}
      if (bdam == FALSE)
	{
  	  if (ch->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(ch))
	    cj_self(ch,argument);
	  else
	  {
  	    sprintf(buf,"You telepath to $N (for %ld gold) `a'`L$t`a'``", gold_toll);
	    act (buf, ch, argument, victim, TO_CHAR);
	  }
	}
    }
  else if (ch->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(ch))
	  cj_self(ch,argument);
  else if (!IS_NPC(victim) && victim->desc && victim->desc->editor != 0 && victim->desc->connected != CON_PLAYING)
    act ("You telepath to $N (who is building) `a'`L$t`a'``", ch, argument, victim, TO_CHAR);
  else if (victim->fighting != NULL)
    act ("You telepath to $N (who's in combat) `a'`L$t`a'``", ch, argument, victim, TO_CHAR);
  else act ("You telepath to $N `a'`L$t`a'``", ch, argument, victim, TO_CHAR);
  if (victim->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(victim))
    cj_channel(victim, argument);
  else if (!IS_NPC(ch) && ch->desc->editor != 0)
    act_new ("$n (who is building) telepaths to you `a'`L$t`a'``", ch, argument, victim,TO_VICT,POS_DEAD);
  else if (ch->fighting != NULL)
    act_new ("$n (who's in combat) telepaths to you `a'`L$t`a'``", ch, argument, victim,TO_VICT,POS_DEAD);
  else act_new ("$n telepaths to you `a'`L$t`a'``", ch, argument, victim,
	   TO_VICT, POS_DEAD);
  victim->reply = ch;
  if (IS_NPC (victim) && !IS_NPC (ch))
    {
      if (get_position(victim) == POS_SLEEPING)
	{
	  act
	    ("$N is sleeping, I don't think $E heard your telepathic message.",
	     ch, NULL, victim, TO_CHAR);
	  return;
	}
      mob_talk (ch, victim, argument, 0);
    }
  return;
}

void reply_tele (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  char buf[MAX_STRING_LENGTH];
  if (IS_NPC (ch))
    return;
  if (IS_SET (ch->comm, COMM_NOTELL))
    {
      send_to_char ("Your message didn't get through.\n\r", ch);
      return;
    }
  if ((victim = ch->reply) == NULL)
    {
      send_to_char ("They aren't here.\n\r", ch);
      return;
    }
  if (victim->desc == NULL && !IS_NPC (victim))
    {
      act ("$N seems to have misplaced $S link...try again later.", ch,
	   NULL, victim, TO_CHAR);
      sprintf (buf, "%s tells you `a'`L%s`a'``\n\r", PERS (ch, victim),
	       argument);
      buf[0] = UPPER (buf[0]);
      add_buf (victim->pcdata->buffer, buf);
      return;
    }
  if (!IS_IMMORTAL (ch) && !IS_AWAKE (victim))
    {
      act ("$E can't hear you.", ch, 0, victim, TO_CHAR);
      return;
    }
  if ((IS_SET (victim->comm, COMM_QUIET)
       || IS_SET (victim->comm, COMM_DEAF)) && !IS_IMMORTAL (ch)
      && !IS_IMMORTAL (victim))
    {
      act_new ("$E is not receiving tells.", ch, 0, victim, TO_CHAR,
	       POS_DEAD);
      return;
    }
  if (!IS_IMMORTAL (victim) && !IS_AWAKE (ch))
    {
      send_to_char ("In your dreams, or what?\n\r", ch);
      return;
    }
  if (IS_SET (victim->comm, COMM_AFK))
    {
      if (IS_NPC (victim))
	{
	  act_new ("$E is AFK, and not receiving tells.", ch, NULL,
		   victim, TO_CHAR, POS_DEAD);
	  return;
	}
      if (!IS_NPC(victim) && IS_IMMORTAL(victim) && !IS_NPC(ch) && gold_toll != 0)
        {
          bool bdam = FALSE;
          if (ch->gold >= gold_toll)
            ch->gold -= gold_toll;
          else if (ch->silver >= gold_toll*100)
            ch->silver -= gold_toll*100;
          else if (ch->pcdata->bank_gold >= gold_toll)
            ch->pcdata->bank_gold -= gold_toll;
          else if (ch->pcdata->bank_silver >= gold_toll*100)
            ch->pcdata->bank_silver -= gold_toll*100;
          else
            {
              bdam = TRUE;
              damage (ch,ch,damage_toll,gsn_likobe,DAM_UNIQUE,FALSE);
              sprintf(buf,"This telepath cost you %ld damage.", damage_toll);
	      act (buf, ch, argument, victim, TO_CHAR);
            }
          if (bdam == FALSE)
            {
              sprintf(buf,"This telepath cost you %ld gold.", gold_toll);
              act (buf, ch, argument, victim, TO_CHAR);
            }
        }

      if (victim->afkmsg[0] != '\0')
	act_new
	  ("$E is AFK, but your tell will go through when $E returns.",
	   ch, NULL, victim, TO_CHAR, POS_DEAD);

      else
	{
	  sprintf (buf, "%s is AFK: %s\n\r",
		   (is_affected (victim, gsn_mask)
		    && victim->mask !=
		    NULL) ? victim->mask : victim->name, victim->afkmsg);
	  send_to_char (buf, ch);
	}
      if (victim->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(victim))
	return;
      sprintf (buf, "%s tells you `a'`L%s`a'``\n\r",
	       (is_affected (ch, gsn_mask)
		&& ch->mask != NULL) ? ch->mask : PERS (ch, victim),
	       argument);
      buf[0] = UPPER (buf[0]);
      add_buf (victim->pcdata->buffer, buf);
      return;
    }


  if (is_ignoring(victim, ch)) 
    {
       sprintf(buf, "%s is ignoring you.\n\r", victim->name);
       send_to_char(buf, ch);
       return;
     }
  if (!IS_NPC(victim) && IS_IMMORTAL(victim) && !IS_NPC(ch) && gold_toll != 0)
    {
      bool bdam = FALSE;
      if (ch->gold >= gold_toll)
        ch->gold -= gold_toll;
      else if (ch->silver >= gold_toll*100)
        ch->silver -= gold_toll*100;
      else if (ch->pcdata->bank_gold >= gold_toll)
        ch->pcdata->bank_gold -= gold_toll;
      else if (ch->pcdata->bank_silver >= gold_toll*100)
        ch->pcdata->bank_silver -= gold_toll*100;
      else
        {
          bdam = TRUE;
          damage (ch,ch,damage_toll,gsn_likobe,DAM_UNIQUE,FALSE);
	  if (ch->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(ch))
		  cj_self(ch,argument);
	  else 
	  {
            sprintf(buf,"You telepath to $N (for %ld damage) `a'`L$t`a'``", damage_toll);
           act (buf, ch, argument, victim, TO_CHAR);
	  }
        }
      if (bdam == FALSE)
        {
  	  if (ch->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(ch))
	    cj_self(ch,argument);
	  else
	  {
            sprintf(buf,"You telepath to $N (for %ld gold) `a'`L$t`a'``", gold_toll);
            act (buf, ch, argument, victim, TO_CHAR);
	  }
        }
    }
  else if (ch->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(ch))
	  cj_self(ch,argument);
  else if (!IS_NPC(victim) && victim->desc && victim->desc->editor != 0)
    act_new ("You telepath to $N (who is building)`a'`L$t`a'``", ch, argument, victim, TO_CHAR, POS_DEAD);
  else if (victim->fighting != NULL)
    act_new ("You telepath to $N (who's in combat) `a'`L$t`a'``", ch, argument, victim, TO_CHAR, POS_DEAD);
  else act_new ("You telepath to $N `a'`L$t`a'``", ch, argument, victim, TO_CHAR, POS_DEAD);

  if (victim->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(victim))
    cj_channel(victim,argument);
  
  else if (!IS_NPC(ch) && ch->desc->editor != 0)
	  act_new ("$n (who is building) telepaths to you `a'`L$t`a'``", ch, argument, victim, TO_VICT, POS_DEAD);
  else if (ch->fighting != NULL)
	  act_new ("$n (who's in combat) telepaths to you `a'`L$t`a'``", ch, argument, victim, TO_VICT, POS_DEAD);
  else act_new ("$n telepaths to you `a'`L$t`a'``", ch, argument, victim, TO_VICT, POS_DEAD);
  victim->reply = ch;
  return;
}

void do_reply (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *victim;
  char buf[MAX_STRING_LENGTH];
  char bufn[MAX_STRING_LENGTH];
  char* content;
	
  if (IS_NPC (ch))
    return;
  if (IS_SET (ch->comm, COMM_NOTELL))
    {
      send_to_char ("Your message didn't get through.\n\r", ch);
      return;
    }
  if (ch->race == PC_RACE_SIDHE)
    {
      reply_tele (ch, argument);
      return;
    }

  if ((victim = ch->reply) == NULL)
    {
      send_to_char ("They aren't here.\n\r", ch);
      return;
    }

  if (!IS_IMMORTAL (victim) && !IS_AWAKE (ch))
    {
      send_to_char ("In your dreams, or what?\n\r", ch);
      return;
    }
  
  if (ch->race == PC_RACE_LITAN && !IS_IMMORTAL (ch) && !IS_IMMORTAL(victim))
    {
      if (ch->hit < (ch->max_hit/15))
      {
        send_to_char("You do not have the strength to tell anyone anything.\n\r",ch);
        return;
      }
      else ch->hit -= (ch->max_hit/15);
      send_to_char("The pain is exquisite, but you manage to send the tell.\n\r",ch);
    }
   
  
  if (victim->race == PC_RACE_SIDHE && !IS_IMMORTAL (victim) && !IS_IMMORTAL (ch))
    {
      act
	("The Sidhe you are trying to speak to cannot be communicated with in this manner.",
	 ch, NULL, NULL, TO_CHAR);
      return;
    }
  if (victim->desc == NULL && !IS_NPC (victim))
    {
      act ("$N seems to have misplaced $S link...try again later.", ch,
	   NULL, victim, TO_CHAR);
      sprintf (buf, "%s tells you `a'`L%s`a'``\n\r", PERS (ch, victim),
	       argument);
      buf[0] = UPPER (buf[0]);
      add_buf (victim->pcdata->buffer, buf);
      return;
    }
  if (!IS_IMMORTAL (ch) && !IS_AWAKE (victim))
    {
      act ("$E can't hear you.", ch, 0, victim, TO_CHAR);
      return;
    }
  if ((IS_SET (victim->comm, COMM_QUIET)
       || IS_SET (victim->comm, COMM_DEAF)) && !IS_IMMORTAL (ch)
      && !IS_IMMORTAL (victim))
    {
      act_new ("$E is not receiving tells.", ch, 0, victim, TO_CHAR,
	       POS_DEAD);
      return;
    }
  if (IS_SET (victim->comm, COMM_AFK))
    {
      if (IS_NPC (victim))
	{
	  act_new ("$E is AFK, and not receiving tells.", ch, NULL,
		   victim, TO_CHAR, POS_DEAD);
	  return;
	}

      //Code for the Immortal toll command (costing players oney or life to tell an imm)
      if (!IS_NPC(victim) && IS_IMMORTAL(victim) && !IS_NPC(ch) && gold_toll != 0)
        {
          bool bdam = FALSE;
          if (ch->gold >= gold_toll)
            ch->gold -= gold_toll;
          else if (ch->silver >= gold_toll*100)
            ch->silver -= gold_toll*100;
          else if (ch->pcdata->bank_gold >= gold_toll)
            ch->pcdata->bank_gold -= gold_toll;
          else if (ch->pcdata->bank_silver >= gold_toll*100)
            ch->pcdata->bank_silver -= gold_toll*100;
      else
        {
          bdam = TRUE;
          damage (ch,ch,damage_toll,gsn_likobe,DAM_UNIQUE,FALSE);
          sprintf(buf,"This tell cost you %ld damage.", damage_toll);
          act (buf, ch, argument, victim, TO_CHAR);
        }
          if (bdam == FALSE)
            {
              sprintf(buf,"This tell cost you %ld gold.", gold_toll);
              act (buf, ch, argument, victim, TO_CHAR);
            }
        }

      if (victim->afkmsg[0] != '\0')
	act_new
	  ("$E is AFK, but your tell will go through when $E returns.",
	   ch, NULL, victim, TO_CHAR, POS_DEAD);

      else
	{
	  sprintf (buf, "%s is AFK: %s\n\r",
		   (is_affected (victim, gsn_mask)
		    && victim->mask !=
		    NULL) ? victim->mask : victim->name, victim->afkmsg);
	  send_to_char (buf, ch);
	}
      if (victim->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(victim))
        return;
      if (ch->race == PC_RACE_NIDAE)
        nidaeify(ch,bufn,argument);
      else anti_nidaeify(ch,bufn,argument);
      if ((victim->race == PC_RACE_NIDAE && !IS_IMMORTAL(victim))
	      || (ch->race == PC_RACE_NIDAE && IS_IMMORTAL(victim)))
      {
        sprintf (buf, "%s tells you `a'`L%s`a'``\n\r",
	       (is_affected (ch, gsn_mask)
		&& ch->mask != NULL) ? ch->mask : PERS (ch, victim),
	       bufn);
      }
      else
      {
	  sprintf (buf, "%s tells you `a'`L%s`a'``\n\r",
               (is_affected (ch, gsn_mask)
                && ch->mask != NULL) ? ch->mask : PERS (ch, victim),
              argument);
      }
      buf[0] = UPPER (buf[0]);
      add_buf (victim->pcdata->buffer, buf);
      return;
    }

  if (is_ignoring(victim, ch)) 
    {
       sprintf(buf, "%s is ignoring you.\n\r", victim->name);
       send_to_char(buf, ch);
       return;
     }


  if (!IS_NPC(victim) && IS_IMMORTAL(victim) && !IS_NPC(ch) && gold_toll != 0)
    {
      bool bdam = FALSE;
      if (ch->gold >= gold_toll)
        ch->gold -= gold_toll;
      else if (ch->silver >= gold_toll*100)
        ch->silver -= gold_toll*100;
      else if (ch->pcdata->bank_gold >= gold_toll)
        ch->pcdata->bank_gold -= gold_toll;
      else if (ch->pcdata->bank_silver >= gold_toll*100)
        ch->pcdata->bank_silver -= gold_toll*100;
      else
	{
	  bdam = TRUE;
	  damage (ch,ch,damage_toll,gsn_likobe,DAM_UNIQUE,FALSE);
	  if (ch->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(ch))
		  cj_self(ch,argument);
	  else
	  {
	    sprintf(buf,"You tell $N (for %ld damage) `a'`L$t`a'``", damage_toll);
	    act (buf, ch, argument, victim, TO_CHAR);
	  }
	}
      if (bdam == FALSE)
	{
  	  if (ch->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(ch))
	    cj_self(ch,argument);
	  else
	  {
	    sprintf(buf,"You tell $N (for %ld gold) `a'`L$t`a'``", gold_toll);
	    act (buf, ch, argument, victim, TO_CHAR);
	  }
	}
    }

  else if (ch->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(ch))
    cj_self(ch,argument);
  else if (!IS_NPC(victim) && victim->desc && victim->desc->editor != 0)
    act_new ("You tell $N (who is building) `a'`L$t`a'``", ch, argument, victim, TO_CHAR, POS_DEAD);
  else if (victim->fighting != NULL)
    act_new ("You tell $N (who's in combat) `a'`L$t`a'``", ch, argument, victim, TO_CHAR, POS_DEAD);
  else act_new ("You tell $N `a'`L$t`a'``", ch, argument, victim, TO_CHAR, POS_DEAD);
 
  if (ch->race == PC_RACE_NIDAE)
    nidaeify(ch,bufn,argument);
  else anti_nidaeify(ch,bufn,argument);
  if ((victim->race == PC_RACE_NIDAE && !IS_IMMORTAL(victim))
         || (ch->race == PC_RACE_NIDAE && IS_IMMORTAL(victim)))
    content = bufn;
  else content = argument;
  
  if (victim->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(victim))
    cj_channel(victim, content);
  else if (!IS_NPC(ch) && ch->desc->editor != 0)
    act_new ("$n (who is building) tells you `a'`L$t`a'``", ch, content, victim, TO_VICT,POS_DEAD);
  else if (ch->fighting != NULL)
    act_new ("$n (who's in combat) tells you `a'`L$t`a'``", ch, content, victim, TO_VICT,POS_DEAD);
  else act_new ("$n tells you `a'`L$t`a'``", ch, content, victim, TO_VICT, POS_DEAD);
  victim->reply = ch;
  return;
}

void do_yell (CHAR_DATA * ch, char *argument)
{
  DESCRIPTOR_DATA *d;
  char bufn[MAX_STRING_LENGTH];
  if (IS_SET (ch->in_room->room_flags, ROOM_SILENT) && !IS_IMMORTAL (ch))
    {
      send_to_char ("Ssshhh... Silence is a must here.\n\r", ch);
      return;
    }
  if (IS_SET (ch->comm, COMM_NOSHOUT))
    {
      send_to_char ("You can't yell.\n\r", ch);
      return;
    }
  if (argument[0] == '\0')
    {
      send_to_char ("Yell what?\n\r", ch);
      return;
    }
  if (ch->race == PC_RACE_SIDHE && !IS_IMMORTAL (ch))
    {
      act
	("The fragile structure of your vocal system prevents you from creating anything other than a high-pitched whine.",
	 ch, NULL, NULL, TO_CHAR);
      return;
    }
   if (ch->race == PC_RACE_LITAN && !IS_IMMORTAL (ch))
    {
       do_shout(ch,argument);
       return;
    }
   
/*  if (ch->race > 11 && ch->race < 16)
    return;
  if (ch->race > 16 && ch->race < 19)
    return;
  if (ch->race > 21 && ch->race < 24)
    return;
  if (ch->race > 24 && ch->race < 30)
    return;
  if (ch->race > 30)
    return;*/

  //IBLIS 5/31/03 - Added Drunk Talk to yelling
  if (!IS_NPC (ch) && ch->pcdata->condition[COND_DRUNK] > 10)
    drunkify (ch, argument);
  if (ch->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(ch))
	  cj_self(ch,argument);
  else act ("You yell '$t'", ch, argument, NULL, TO_CHAR);

  if (ch->race == PC_RACE_NIDAE)
    nidaeify(ch,bufn,argument);
  else anti_nidaeify(ch,bufn,argument);
  
  if (!IS_SET (ch->comm2, COMM_SHUTUP))
  for (d = descriptor_list; d != NULL; d = d->next)
    {
      if (d->connected == CON_PLAYING
	  && d->character != ch
	  && d->character->in_room != NULL
	  && d->character->in_room->area == ch->in_room->area
	  && !IS_SET (d->character->comm, COMM_QUIET))
	{
	      if (is_ignoring(d->character, ch)) 
              continue;
	  if ((d->character->race == PC_RACE_NIDAE && !IS_IMMORTAL(d->character))
				|| (ch->race == PC_RACE_NIDAE && IS_IMMORTAL(d->character)))
	  {
  	    if (d->character->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(d->character))
	      cj_channel(d->character,bufn);
	    else act ("$n yells '$t'", ch, bufn, d->character, TO_VICT);
  	  }
	    
	  else 
	  {
  	    if (d->character->class == PC_CLASS_CHAOS_JESTER && !IS_IMMORTAL(d->character))
	      cj_channel(d->character,argument);
	    else act ("$n yells '$t'", ch, argument, d->character, TO_VICT);
	  }
	    
	}
    }
   trip_triggers_arg(ch, OBJ_TRIG_CHAR_VOCALIZE, NULL, NULL, OT_VOC_YELL, argument);
  return;
}

void do_emote (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *rch;
  if (!IS_NPC (ch) && IS_SET (ch->comm, COMM_NOEMOTE))
    {
      send_to_char ("You can't show your emotions.\n\r", ch);
      return;
    }
  if (IS_SET (ch->in_room->room_flags, ROOM_SILENT) && !IS_IMMORTAL (ch))
    {
      send_to_char
	("This room is shielded from disturbance by powerful wards of magic.\n\r",
	 ch);
      return;
    }
  if (argument[0] == '\0')
    {
      send_to_char ("Emote what?\n\r", ch);
      return;
    }
  if (ch->race == PC_RACE_LITAN && !IS_IMMORTAL (ch))
    {
      send_to_char("You are not smart enough to know how to emote things, you can only shriek.\n\r",ch);
      return;
    }
   
  //IBLIS 5/31/03 - Added Drunk Emoting
  if (!IS_NPC (ch) && ch->pcdata->condition[COND_DRUNK] > 10)
    drunkify (ch, argument);
  for (rch = ch->in_room->people;rch != NULL;rch = rch->next_in_room)
  {
    if (rch == ch || rch->position < POS_RESTING)
      continue;
    if (!IS_IMMORTAL(rch))
      act("$n $t",ch,argument,rch,TO_VICT);
    else 
    {
      send_to_char("`j*``",rch);
      act("$n $t",ch,argument,rch,TO_VICT);
    }
  }
  //act ("$n $T", ch, NULL, argument, TO_ROOM);
  act ("$n $T", ch, NULL, argument, TO_CHAR);
  return;
}

void do_pmote (CHAR_DATA * ch, char *argument)
{
  CHAR_DATA *vch;
  char *letter, *name;
  char last[MAX_INPUT_LENGTH], temp[MAX_STRING_LENGTH];
  int matches = 0;
  if (!IS_NPC (ch) && IS_SET (ch->comm, COMM_NOEMOTE))
    {
      send_to_char ("You can't show your emotions.\n\r", ch);
      return;
    }
  if (argument[0] == '\0')
    {
      send_to_char ("Emote what?\n\r", ch);
      return;
    }
  if (ch->race == PC_RACE_LITAN && !IS_IMMORTAL (ch))
    {
      send_to_char("You are not smart enough to know how to emote things, you can only shriek.\n\r",ch);
      return;
    }
   
  act ("`N$n $t``", ch, argument, NULL, TO_CHAR);
  for (vch = ch->in_room->people; vch != NULL; vch = vch->next_in_room)
    {
      if (vch->desc == NULL || vch == ch)
	continue;
      if ((letter = strstr (argument, vch->name)) == NULL)
	{
          strcpy(temp,argument);
	  drunkify(ch,temp);
	  act ("`N$N $t``", vch, temp, ch, TO_CHAR);
	  continue;
	}
      strcpy (temp, argument);
      temp[strlen (argument) - strlen (letter)] = '\0';
      last[0] = '\0';
      name = vch->name;
      for (; *letter != '\0'; letter++)
	{
	  if (*letter == '\'' && matches == strlen (vch->name))
	    {
	      strcat (temp, "r");
	      continue;
	    }
	  if (*letter == 's' && matches == strlen (vch->name))
	    {
	      matches = 0;
	      continue;
	    }
	  if (matches == strlen (vch->name))
	    {
	      matches = 0;
	    }
	  if (*letter == *name)
	    {
	      matches++;
	      name++;
	      if (matches == strlen (vch->name))
		{
		  strcat (temp, "you");
		  last[0] = '\0';
		  name = vch->name;
		  continue;
		}
	      strncat (last, letter, 1);
	      continue;
	    }
	  matches = 0;
	  strcat (temp, last);
	  strncat (temp, letter, 1);
	  last[0] = '\0';
	  name = vch->name;
	}
      //IBLIS 5/31/03 - Added Drunk Emoting
      if (!IS_NPC (ch) && ch->pcdata->condition[COND_DRUNK] > 10)
        drunkify (ch, temp);
      act ("$N $t", vch, temp, ch, TO_CHAR);
    }
  return;
}


/*
 * All the posing stuff.
 */
struct pose_table_type
{
  char *message[18*2];
};
const struct pose_table_type pose_table[MAX_CLASS] = {
  {
   { //Mage
    "You sizzle with energy.", 
    "$n sizzles with energy.",
    "You turn into a butterfly, then return to your normal shape.",
    "$n turns into a butterfly, then returns to $s normal shape.",
    "Blue sparks fly from your fingers.",
    "Blue sparks fly from $n's fingers.",
    "Little red lights dance in your eyes.",
    "Little red lights dance in $n's eyes.",
    "A slimy green monster appears before you and bows.",
    "A slimy green monster appears before $n and bows.",
    "You turn everybody into a little pink elephant.",
    "You are turned into a little pink elephant by $n.",
    "A small ball of light dances on your fingertips.",
    "A small ball of light dances on $n's fingertips.",
    "Smoke and fumes leak from your nostrils.",
    "Smoke and fumes leak from $n's nostrils.",
    "The light flickers as you rap in magical languages.",
    "The light flickers as $n raps in magical languages.",
    "Your head disappears.", 
    "$n's head disappears.",
    "A fire elemental singes your hair.",
    "A fire elemental singes $n's hair.",
    "The sky changes color to match your eyes.",
    "The sky changes color to match $n's eyes.",
    "The stones dance to your command.",
    "The stones dance to $n's command.",
    "The heavens and grass change colour as you smile.",
    "The heavens and grass change colour as $n smiles.",
    "Everyone's clothes are transparent, and you are laughing.",
    "Your clothes are transparent, and $n is laughing.",
    "A black hole swallows you.", 
    "A black hole swallows $n.",
    "The world shimmers in time with your whistling.",
    "The world shimmers in time with $n's whistling.",
    "A black hole swallows you.",
    "A black hole swallows $n.",
    }},
  {
   {  //Cleric
    "A cool breeze refreshes you.", 
    "A cool breeze refreshes $n.",
    "You feel very holy.",
    "$n looks very holy.",
    "You nonchalantly turn wine into water.",
    "$n nonchalantly turns wine into water."
    "A halo appears over your head.",
    "A halo appears over $n's head.",
    "You recite words of wisdom.", 
    "$n recites words of wisdom.",
    "Deep in prayer, you levitate.", 
    "Deep in prayer, $n levitates.",
    "An angel consults you.", 
    "An angel consults $n.",
    "Your body glows with an unearthly light.",
    "$n's body glows with an unearthly light.",
    "A spot light hits you.", 
    "A spot light hits $n.",
    "Everyone levitates as you pray.", 
    "You levitate as $n prays.",
    "The sun pierces through the clouds to illuminate you.",
    "The sun pierces through the clouds to illuminate $n.",
    "The ocean parts before you.", 
    "The ocean parts before $n.",
    "A thunder cloud kneels to you.",
    "A thunder cloud kneels to $n.",
    "The Burning Man speaks to you.",
    "The Burning Man speaks to $n.",
    "An eye in a pyramid winks at you.",
    "An eye in a pyramid winks at $n.",
    "Valentine Michael Smith offers you a glass of water.",
    "Valentine Michael Smith offers $n a glass of water.",
    "Some big dude in the sky gives you a staff.",
    "Some big dude in the sky gives $n a staff.", 
    "Click.",
    "Click.",
    }},
  {
   { //Thief
    "You perform a small card trick.",
    "$n performs a small card trick.",
    "You wiggle your ears alternately.",
    "$n wiggles $s ears alternately.",
    "You nimbly tie yourself into a knot.",
    "$n nimbly ties $mself into a knot.",
    "You juggle with daggers, apples, and eyeballs.",
    "$n juggles with daggers, apples, and eyeballs.",
    "You steal the underwear off every person in the room.",
    "Your underwear is gone!  $n stole it!",
    "The dice roll ... and you win again.",
    "The dice roll ... and $n wins again.",
    "You count the money in everyone's pockets.",
    "Check your money, $n is counting it.",
    "You balance a pocket knife on your tongue.",
    "$n balances a pocket knife on your tongue.",
    "You produce a coin from everyone's ear.",
    "$n produces a coin from your ear.",
    "Your eyes dance with greed.", 
    "$n's eyes dance with greed.",
    "You deftly steal everyone's weapon.",
    "$n deftly steals your weapon.",
    "The Grey Mouser buys you a beer.",
    "The Grey Mouser buys $n a beer.",
    "Everyone's pocket explodes with your fireworks.",
    "Your pocket explodes with $n's fireworks.",
    "Everyone discovers your dagger a centimeter from their eye.",
    "You discover $n's dagger a centimeter from your eye.",
    "Where did you go?", 
    "Where did $n go?",
    "Click.",
    "Click.",
    "You step behind your shadow.", 
    "$n steps behind $s shadow.",
    "Click.",
    "Click.",
    }},
  {
   { //Warrior
    "You hit your head, and your eyes roll.",
    "$n hits $s head, and $s eyes roll.",
    "You show your bulging muscles.",
    "$n shows $s bulging muscles.",
    "You crack nuts between your fingers.",
    "$n cracks nuts between $s fingers.",
    "You grizzle your teeth and look mean.",
    "$n grizzles $s teeth and looks mean.",
    "Crunch, crunch -- you munch a bottle.",
    "Crunch, crunch -- $n munches a bottle.",
    "... 98, 99, 100 ... you do pushups.",
    "... 98, 99, 100 ... $n does pushups.",
    "Arnold Schwarzenegger admires your physique.",
    "Arnold Schwarzenegger admires $n's physique.",
    "Watch your feet, you are juggling granite boulders.",
    "Watch your feet, $n is juggling granite boulders.",
    "Oomph!  You squeeze water out of a granite boulder.",
    "Oomph!  $n squeezes water out of a granite boulder.",
    "You pick your teeth with a spear.",
    "$n picks $s teeth with a spear.",
    "Everyone is swept off their foot by your hug.",
    "You are swept off your feet by $n's hug.",
    "Your karate chop splits a tree.",
    "$n's karate chop splits a tree.",
    "A strap of your armor breaks over your mighty thews.",
    "A strap of $n's armor breaks over $s mighty thews.",
    "A boulder cracks at your frown.",
    "A boulder cracks at $n's frown.",
    "Mercenaries arrive to do your bidding.",
    "Mercenaries arrive to do $n's bidding.",
    "Four matched Percherons bring in your chariot.",
    "Four matched Percherons bring in $n's chariot.",
    "Atlas asks you to relieve him.",
    "Atlas asks $n to relieve him.",
    "Click.",
    "Click.",
    }},
  {
	  
   { //Ranger
    "You show your bulging muscles.",
    "$n shows $s bulging muscles.",
    "You crack nuts between your fingers.",
    "$n cracks nuts between $s fingers.",
    "You grizzle your teeth and look mean.",
    "$n grizzles $s teeth and looks mean.",
    "You hit your head, and your eyes roll.",
    "$n hits $s head, and $s eyes roll.",
    "Crunch, crunch -- you munch a bottle.",
    "Crunch, crunch -- $n munches a bottle.",
    "... 98, 99, 100 ... you do pushups.",
    "... 98, 99, 100 ... $n does pushups.",
    "Arnold Schwarzenegger admires your physique.",
    "Arnold Schwarzenegger admires $n's physique.",
    "Watch your feet, you are juggling granite boulders.",
    "Watch your feet, $n is juggling granite boulders.",
    "Oomph!  You squeeze water out of a granite boulder.",
    "Oomph!  $n squeezes water out of a granite boulder.",
    "You pick your teeth with a spear.",
    "$n picks $s teeth with a spear.",
    "Everyone is swept off their foot by your hug.",
    "You are swept off your feet by $n's hug.",
    "Your karate chop splits a tree.",
    "$n's karate chop splits a tree.",
    "A strap of your armor breaks over your mighty thews.",
    "A strap of $n's armor breaks over $s mighty thews.",
    "A boulder cracks at your frown.",
    "A boulder cracks at $n's frown.",
    "Mercenaries arrive to do your bidding.",
    "Mercenaries arrive to do $n's bidding.",
    "Four matched Percherons bring in your chariot.",
    "Four matched Percherons bring in $n's chariot.",
    "Atlas asks you to relieve him.",
    "Atlas asks $n to relieve him.",
    "Click.",
    "Click.",
    }},
  {
   {  //Bard
    "You perform a small card trick.",
    "$n performs a small card trick.",
    "You wiggle your ears alternately.",
    "$n wiggles $s ears alternately.",
    "You nimbly tie yourself into a knot.",
    "$n nimbly ties $mself into a knot.",
    "You juggle with daggers, apples, and eyeballs.",
    "$n juggles with daggers, apples, and eyeballs.",
    "You steal the underwear off every person in the room.",
    "Your underwear is gone!  $n stole it!",
    "The dice roll ... and you win again.",
    "The dice roll ... and $n wins again.",
    "You count the money in everyone's pockets.",
    "Check your money, $n is counting it.",
    "You balance a pocket knife on your tongue.",
    "$n balances a pocket knife on your tongue.",
    "You produce a coin from everyone's ear.",
    "$n produces a coin from your ear.",
    "You step behind your shadow.", 
    "$n steps behind $s shadow.",
    "Your eyes dance with greed.", 
    "$n's eyes dance with greed.",
    "You deftly steal everyone's weapon.",
    "$n deftly steals your weapon.",
    "The Grey Mouser buys you a beer.",
    "The Grey Mouser buys $n a beer.",
    "Everyone's pocket explodes with your fireworks.",
    "Your pocket explodes with $n's fireworks.",
    "Everyone discovers your dagger a centimeter from their eye.",
    "You discover $n's dagger a centimeter from your eye.",
    "Where did you go?", 
    "Where did $n go?",
    "Click.",
    "Click.",
    }},
  {
	  
   { //Paladin
     "You hit your head, and your eyes roll.",
     "$n hits $s head, and $s eyes roll.",
     "You show your bulging muscles.",
     "$n shows $s bulging muscles.",
     "You crack nuts between your fingers.",
     "$n cracks nuts between $s fingers.",
     "You grizzle your teeth and look mean.",
     "$n grizzles $s teeth and looks mean.",
     "Crunch, crunch -- you munch a bottle.",
     "Crunch, crunch -- $n munches a bottle.",
     "... 98, 99, 100 ... you do pushups.",
     "... 98, 99, 100 ... $n does pushups.",
     "Arnold Schwarzenegger admires your physique.",
     "Arnold Schwarzenegger admires $n's physique.",
     "Watch your feet, you are juggling granite boulders.",
     "Watch your feet, $n is juggling granite boulders.",
     "Oomph!  You squeeze water out of a granite boulder.",
     "Oomph!  $n squeezes water out of a granite boulder.",
     "You pick your teeth with a spear.",
     "$n picks $s teeth with a spear.",
     "Everyone is swept off their foot by your hug.",
     "You are swept off your feet by $n's hug.",
     "Your karate chop splits a tree.",
     "$n's karate chop splits a tree.",
     "A strap of your armor breaks over your mighty thews.",
     "A strap of $n's armor breaks over $s mighty thews.",
     "A boulder cracks at your frown.",
     "A boulder cracks at $n's frown.",
     "Mercenaries arrive to do your bidding.",
     "Mercenaries arrive to do $n's bidding.",
     "Four matched Percherons bring in your chariot.",
     "Four matched Percherons bring in $n's chariot.",
     "Atlas asks you to relieve him.",
    "Atlas asks $n to relieve him.", 
    "Click.",
    "Click.",
   }},
  {
   { //Assassin
    "You perform a small card trick.",
    "$n performs a small card trick.",
    "You wiggle your ears alternately.",
    "$n wiggles $s ears alternately.",
    "You nimbly tie yourself into a knot.",
    "$n nimbly ties $mself into a knot.",
    "You juggle with daggers, apples, and eyeballs.",
    "$n juggles with daggers, apples, and eyeballs.",
    "You steal the underwear off every person in the room.",
    "Your underwear is gone!  $n stole it!",
    "The dice roll ... and you win again.",
    "The dice roll ... and $n wins again.",
    "You count the money in everyone's pockets.",
    "Check your money, $n is counting it.",
    "You balance a pocket knife on your tongue.",
    "$n balances a pocket knife on your tongue.",
    "You produce a coin from everyone's ear.",
    "$n produces a coin from your ear.",
    "You step behind your shadow.", 
    "$n steps behind $s shadow.",
    "Your eyes dance with greed.", 
    "$n's eyes dance with greed.",
    "You deftly steal everyone's weapon.",
    "$n deftly steals your weapon.",
    "The Grey Mouser buys you a beer.",
    "The Grey Mouser buys $n a beer.",
    "Everyone's pocket explodes with your fireworks.",
    "Your pocket explodes with $n's fireworks.",
    "Everyone discovers your dagger a centimeter from their eye.",
    "You discover $n's dagger a centimeter from your eye.",
    "Where did you go?", 
    "Where did $n go?",
    "Click.",
    "Click.",
    "Click.",
        "Click.",
    }},
  {
	  
   { //Reaver
    "You hit your head, and your eyes roll.",
    "$n hits $s head, and $s eyes roll.",
    "You show your bulging muscles.",
    "$n shows $s bulging muscles.",
    "You crack nuts between your fingers.",
    "$n cracks nuts between $s fingers.",
    "You grizzle your teeth and look mean.",
    "$n grizzles $s teeth and looks mean.",
    "Crunch, crunch -- you munch a bottle.",
    "Crunch, crunch -- $n munches a bottle.",
    "... 98, 99, 100 ... you do pushups.",
    "... 98, 99, 100 ... $n does pushups.",
    "Arnold Schwarzenegger admires your physique.",
    "Arnold Schwarzenegger admires $n's physique.",
    "Watch your feet, you are juggling granite boulders.",
    "Watch your feet, $n is juggling granite boulders.",
    "Oomph!  You squeeze water out of a granite boulder.",
    "Oomph!  $n squeezes water out of a granite boulder.",
    "You pick your teeth with $p.",
    "$n picks $s teeth with $p.",
    "Everyone is swept off their foot by your hug.",
    "You are swept off your feet by $n's hug.",
    "Your karate chop splits a tree.",
    "$n's karate chop splits a tree.",
    "A strap of your armor breaks over your mighty thews.",
    "A strap of $n's armor breaks over $s mighty thews.",
    "A boulder cracks at your frown.",
    "A boulder cracks at $n's frown.",
    "Mercenaries arrive to do your bidding.",
    "Mercenaries arrive to do $n's bidding.",
    "Four matched Percherons bring in your chariot.",
    "Four matched Percherons bring in $n's chariot.",
    "Atlas asks you to relieve him.",
    "Atlas asks $n to relieve him.", 
"Click.",
    "Click.",
	    
   }},
  {
   { //Monk
     "You hit your head, and your eyes roll.",
     "$n hits $s head, and $s eyes roll.",
     "You show your bulging muscles.",
     "$n shows $s bulging muscles.",
     "You crack nuts between your fingers.",
     "$n cracks nuts between $s fingers.",
     "You grizzle your teeth and look mean.",
     "$n grizzles $s teeth and looks mean.",
     "Crunch, crunch -- you munch a bottle.",
     "Crunch, crunch -- $n munches a bottle.",
     "... 98, 99, 100 ... you do pushups.",
     "... 98, 99, 100 ... $n does pushups.",
     "Arnold Schwarzenegger admires your physique.",
     "Arnold Schwarzenegger admires $n's physique.",
     "Watch your feet, you are juggling granite boulders.",
     "Watch your feet, $n is juggling granite boulders.",
     "Oomph!  You squeeze water out of a granite boulder.",
     "Oomph!  $n squeezes water out of a granite boulder.",
     "You pick your teeth with a spear.",
     "$n picks $s teeth with a spear.",
     "Everyone is swept off their foot by your hug.",
     "You are swept off your feet by $n's hug.",
     "Your karate chop splits a tree.",
     "$n's karate chop splits a tree.",
     "A strap of your armor breaks over your mighty thews.",
     "A strap of $n's armor breaks over $s mighty thews.",
     "A boulder cracks at your frown.",
     "A boulder cracks at $n's frown.",
     "Mercenaries arrive to do your bidding.",
     "Mercenaries arrive to do $n's bidding.",
     "Four matched Percherons bring in your chariot.",
     "Four matched Percherons bring in $n's chariot.",
     "Atlas asks you to relieve him.",
     "Atlas asks $n to relieve him.",
   "Click.",
       "Click.",
   }},
  {	
   { //Necromancer
    "You sizzle with energy.",
    "$n sizzles with energy.",
    "You turn into a butterfly, then return to your normal shape.",
    "$n turns into a butterfly, then returns to $s normal shape.",
    "Blue sparks fly from your fingers.",
    "Blue sparks fly from $n's fingers.",
    "Little red lights dance in your eyes.",
    "Little red lights dance in $n's eyes.",
    "A slimy green monster appears before you and bows.",
    "A slimy green monster appears before $n and bows.",
    "You turn everybody into a little pink elephant.",
    "You are turned into a little pink elephant by $n.",
    "A small ball of light dances on your fingertips.",
    "A small ball of light dances on $n's fingertips.",
    "Smoke and fumes leak from your nostrils.",
    "Smoke and fumes leak from $n's nostrils.",
    "The light flickers as you rap in magical languages.",
    "The light flickers as $n raps in magical languages.",
    "Your head disappears.",
    "$n's head disappears.",
    "A fire elemental singes your hair.",
    "A fire elemental singes $n's hair.",
    "The sky changes color to match your eyes.",

Showing the first 100 KB of 214.2 KB. Download the archive for the full file.

Site Stats

Snippets: 1791
Codebases: 571