/* **************************************************************
  September 2nd, 2000
  Designed for ROM2.4 and/or Merc 2.2
  Menlar's out of character say(osay)
  2000 Copyright <* FREEWARE *>
  If you use this code:
     1.Keep all the credits in the code.
     2.Put me in your credits...put Menlar or Joe Bartasis.
     3.Send a bug report,any comments or ideas
       Joe Bartasis (aka Menlar)
       LegendMenlar@hotmail.com

Here is a listing of what the code does/helps:
     1.Lets players communicate out of character.
     2.If you have languages in your mud it will be very useful.
     3. 
Here are the very simple Directions:
	1. Take the "Main Part" and put it in act_comm.c.
	2. In Interp.c add the part that says "Interp.c" below
	3. In interp.h add the part that says "Interp.h below
	4. Compile and enjoy :) Thanks.
NOTE: Please give me some credit one way or another. Thanks and enjoy.
************************************************************** */
/*Main part*/
void do_osay (CHAR_DATA * ch, char *argument)
{
    if (argument[0] == '\0')
    {
        send_to_char ("Say what?\n\r", ch);
        return;
    }

    act ("{6$n says (ooc) '{7$T{6'{x", ch, NULL, argument, TO_ROOM);
    act ("{6You say (ooc) '{7$T{6'{x", ch, NULL, argument, TO_CHAR);

    if (!IS_NPC (ch))
    {
        CHAR_DATA *mob, *mob_next;
        for (mob = ch->in_room->people; mob != NULL; mob = mob_next)
        {
            mob_next = mob->next_in_room;
            if (IS_NPC (mob) && HAS_TRIGGER (mob, TRIG_SPEECH)
                && mob->position == mob->pIndexData->default_pos)
                mp_act_trigger (argument, mob, ch, NULL, NULL, TRIG_SPEECH);
        }
    }
    return;
}
/*End*/
/*Interp.c*/
DECLARE_DO_FUN( do_osay    );
/*End*/
/*Interp.h*/
{"osay", do_osay, POS_RESTING, 0, LOG_NORMAL, 1},
/*End*/


                Legends of Lore
    __________))               ((__________
   /.-------./\\    \    /    //\.--------.\
 //{#######{//##\\   ))  ((   //##\\########\\
 //#######//###((  ((    ))  ))###\\########\\
((#######((#####\\  \\  //  //#####))########))
((#######((#####\\  \\  //  //#####))########)) 
  )'    ``#)'  `##\`->oo<-'/##'  `(#''     `(
          (       ``\`..'/''       )
                     \-"-"(
                      `- )
                      / /
                     ( /\      
                    (  \
                        )
                       /
                      (
                       `
	 host: LoL.2mud.net port: 9284