/* Add this to your act_wiz.c file somewhere near the bottom */
/**************************************************************************************
 *  ::::::::  :::       ::: :::::::::::             ::::::::::             :::::::::: *
 * :+:    :+: :+:       :+:     :+:    :+:     :+:  :+:       :+:     :+:  :+:        *
 * +:+        +:+       +:+     +:+      +:+ +:+    +:+         +:+ +:+    +:+        *
 * +#++:++#++ +#+  +:+  +#+     +#+   +#++:++#++:++ :#::+::# +#++:++#++:++ +#++:++#   *
 *        +#+ +#+ +#+#+ +#+     +#+      +#+ +#+    +#+         +#+ +#+    +#+        *
 * #+#    #+#  #+#+# #+#+#      #+#    #+#     #+#  #+#       #+#     #+#  #+#        *
 *  ########    ###   ###       ###                 ###                    ########## *
 **************************************************************************************
 *  Additional Immortal command code                                                  *
 *  Author: Kator (webmaster@nia-inc.net)                                             *
 *  of SWT*F*E The Final Episode (mud.moocowpenguin.org 8200)                         *
 *                                                                                    *
 *  Permission to use and distribute this code is granted provided                    *
 *  this header is retained and unaltered, and the distribution                       *
 *  package contains all the original files unmodified.                               *
 *  If you modify this code and use/distribute modified versions                      *
 *  you must give credit to the original author(s).                                   *
 **************************************************************************************/
void do_wpeace(CHAR_DATA *ch, char *argument )
{
     DESCRIPTOR_DATA *d;
     AREA_DATA *area;
     CHAR_DATA *tmp;
      ROOM_INDEX_DATA *room;
     char buf[MAX_STRING_LENGTH];
     int vnum = 0;

     for ( d = first_descriptor; d; d = d->next )
      {
        if ( ch->desc == NULL || ch->desc->connected != CON_PLAYING )
           continue;

        if ( d->character->fighting )
          {
           sprintf( buf, "%s has declared World Peace.\n\r", ch->name );
           send_to_char( buf, d->character );
           stop_fighting( d->character, TRUE );
          }
      }

        for (area = first_area; area; area = area->next)
        {
                vnum = area->low_r_vnum;
                for (;;)
                {
                        if (vnum >= area->hi_r_vnum)
                                break;

                        if ((room = get_room_index(vnum)) != NULL)
                        {
                                for (tmp = room->first_person; tmp; tmp = tmp->next_in_room)
                                {
                                        if (who_fighting(tmp))
                                        {
                                                stop_hunting(tmp);
                                                stop_hating(tmp);
                                                stop_fighting(tmp, TRUE);
                                        }
                                }
                        }
                        vnum++;
                }
        }


    send_to_char( "You have declared World Peace.\n\r", ch );
    return;
}

/********** MUD.H **********/

DECLARE_DO_FUN( do_wpeace );

/********** TABLES.C **********/
/* find case 'c' */
/* Insert at the top the following */

        if ( !str_cmp( name, "do_wpeace" ))             return do_wpeace;

/* Next find the following */

char *skill_name( DO_FUN *skill )
{

/* and put underneath it */

    if ( skill == do_wpeace )           return "do_wpeace";

/* close all files and make new.  It should work without a hitch */