/******************************
 *                            *
 *  This snippet was written  *
 *  by Mikado of the RoT 1.4  *
 *  MUD, Lost Legends III...  *
 *  Which can be found at     *
 *  teno.d2g.com:5000         *
 *  If you have problems or   *
 *  suggestions, contact me   *
 *  via Email:                *
 *  mikky999@attbi.com        *
 *  ICQ:72807381              *
 *  or AIM : Mikado Rose 999  *
 *  If you have criticism...  *
 *  You can shove it up your  *
 *  well... you know... :)    *
 *                            *
 ******************************/

// Add this where ever you want in act_comm.c
// Although, I recommend you add it next to the rest of the Auto flags.

void do_autoall(CHAR_DATA *ch, char *argument)
{
    if (IS_NPC(ch))
      return;
    
    if (!IS_SET(ch->act,PLR_AUTOEXIT))
    {
      send_to_char("You will now assist when needed.\n\r",ch);
      SET_BIT(ch->act,PLR_AUTOASSIST);
      send_to_char("Exits will now be displayed.\n\r",ch);
      SET_BIT(ch->act,PLR_AUTOEXIT);
      send_to_char("Automatic gold looting set.\n\r",ch);
      SET_BIT(ch->act,PLR_AUTOGOLD);
      send_to_char("Automatic corpse looting set.\n\r",ch);
      SET_BIT(ch->act,PLR_AUTOLOOT);
      send_to_char("Automatic corpse sacrificing set.\n\r",ch);
      SET_BIT(ch->act,PLR_AUTOSAC);
      send_to_char("Automatic gold splitting set.\n\r",ch);
      SET_BIT(ch->act,PLR_AUTOSPLIT);
      send_to_char("Automatic peek set.\n\r",ch);
      SET_BIT(ch->act,PLR_AUTOPEEK);
    }
    else
    {
      send_to_char("Exits will no longer be displayed.\n\r",ch);
      REMOVE_BIT(ch->act,PLR_AUTOEXIT);
      send_to_char("Autogold removed.\n\r",ch);
      REMOVE_BIT(ch->act,PLR_AUTOGOLD);
      send_to_char("Autolooting removed.\n\r",ch);
      REMOVE_BIT(ch->act,PLR_AUTOLOOT);
      send_to_char("Autosacrificing removed.\n\r",ch);
      REMOVE_BIT(ch->act,PLR_AUTOSAC);
      send_to_char("Autosplitting removed.\n\r",ch);
      REMOVE_BIT(ch->act,PLR_AUTOSPLIT);
      send_to_char("Autopeek removed.\n\r",ch);
      REMOVE_BIT(ch->act,PLR_AUTOPEEK);
    }
}

// In interp.c, add this by the configuration commands

    { "autoall",        do_autoall,     POS_DEAD,        0,  1,  LOG_NORMAL, 1 },

// In interp.h, add this above DECLARE_DO_FUN( do_autoassist	);

DECLARE_DO_FUN( do_autoall	);