merc.h

demise/src/merc.h · 190.0 KB

From the archive dodbackup-final.tar.gz

Download the archive   « Back to the archive contents

/***************************************************************************
 *  Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer,        *
 *  Michael Seifert, Hans Henrik St{rfeldt, Tom Madsen, and Katja Nyboe.   *
 *                                                                         *
 *  Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael          *
 *  Chastain, Michael Quan, and Mitchell Tse.                              *
 *                                                                         *
 *  In order to use any part of this Merc Diku Mud, you must comply with   *
 *  both the original Diku license in 'license.doc' as well the Merc       *
 *  license in 'license.txt'.  In particular, you may not remove either of *
 *  these copyright notices.                                               *
 *                                                                         *
 *  Much time and thought has gone into this software and you are          *
 *  benefitting.  We hope that you share your changes too.  What goes      *
 *  around, comes around.                                                  *
 ***************************************************************************/

/***************************************************************************
 *  God Wars Mud improvements copyright (C) 1994, 1995, 1996 by Richard    *
 *  Woolcock.  This mud is NOT to be copied in whole or in part, or to be  *
 *  run without the permission of Richard Woolcock.  Nobody else has       *
 *  permission to authorise the use of this code.                          *
 ***************************************************************************/
#include <zlib.h>		/* MCCP */
#include <arpa/telnet.h>	/* MCCP */
#include "soundex.h"		// kavir's soundex header
#include "lander.h"
#include "nym_elf.h"
#include "arena.h"
#include "monk.h"
#include "draconian.h"
#include "cor_fight.h"
#include "clan.h"
#include "empire.h"
#include "newwolf.h"
//#include "buffer.h"
/*
 * Accommodate old non-Ansi compilers.
 */
#if defined(TRADITIONAL)
#define const
#define args( list )			( )
#define DECLARE_DO_FUN( fun )		void fun( )
#define DECLARE_SPEC_FUN( fun )		bool fun( )
#define DECLARE_SPELL_FUN( fun )	void fun( )
#else
#define args( list )			list
#define DECLARE_DO_FUN( fun )		DO_FUN    fun
#define DECLARE_SPEC_FUN( fun )		SPEC_FUN  fun
#define DECLARE_SPELL_FUN( fun )	SPELL_FUN fun
#endif



/*
 * Short scalar types.
 * Diavolo reports AIX compiler has bugs with short types.
 */
#if	!defined(FALSE)
#define FALSE	 0
#endif

#if	!defined(TRUE)
#define TRUE	 1
#endif

#if	defined(_AIX)
#if	!defined(const)
#define const
#endif
typedef int sh_int;
typedef int bool;
#define unix
#else
typedef short int sh_int;
typedef unsigned char bool;
#endif



 /*
  *Structure types.
  */
typedef struct affect_data AFFECT_DATA;
typedef struct area_data AREA_DATA;
typedef struct mudconfig_data MUDCONFIG_DATA;
typedef struct ban_data BAN_DATA;
typedef struct char_data CHAR_DATA;
typedef struct descriptor_data DESCRIPTOR_DATA;
typedef struct exit_data EXIT_DATA;
typedef struct auction_data AUCTION_DATA;
typedef struct extra_descr_data EXTRA_DESCR_DATA;
typedef struct help_data HELP_DATA;
typedef struct kill_data KILL_DATA;
typedef struct mob_index_data MOB_INDEX_DATA;
typedef struct note_data NOTE_DATA;
typedef struct obj_data OBJ_DATA;
typedef struct obj_index_data OBJ_INDEX_DATA;
typedef struct pc_data PC_DATA;
typedef struct account ACCOUNT_DATA;
typedef struct reset_data RESET_DATA;
typedef struct room_index_data ROOM_INDEX_DATA;
typedef struct shop_data SHOP_DATA;
typedef struct time_info_data TIME_INFO_DATA;
typedef struct weather_data WEATHER_DATA;
typedef struct editing_data EDITING_DATA;	/* OLC */
typedef struct disabled_data DISABLED_DATA;
typedef struct clans_data CLANS_DATA;
typedef struct arti_data ARTI_DATA;
typedef struct class_data CLASS_DATA;
typedef struct leader_data LEADER_DATA;
typedef struct alias_data ALIAS_DATA;


/*** buffer.h ****/



#define BUFFER_DEBUG
typedef struct buffer_type BUFFER;
struct buffer_type
{
 bool overflowed;
 int len;
 int size;
 char *data;
};
#ifdef BUFFER_DEBUG /* Debugged version */

#define buffer_new(size)           __buffer_new (size, __FILE__, __LINE__)
#define buffer_strcat(buffer,text) __buffer_strcat (buffer, text, __FILE__, __LINE__)

BUFFER * __buffer_new (int size, const char *file, unsigned line);
void __buffer_strcat (BUFFER *buffer, const char *text, const char *file, unsigned line);

#else  /* not debugged version */

#define buffer_new(size)           __buffer_new (size)
#define buffer_strcat(buffer,text) __buffer_strcat (buffer,text)

BUFFER * __buffer_new (int size);
void __buffer_strcat (BUFFER *buffer, const char *text);

#endif


void buffer_free (BUFFER *buffer);
void buffer_clear (BUFFER *buffer);
int find_mem_size (int min_size);
int bprintf (BUFFER *buffer, char *fmt, ...);

/*** end buffer.h ***/
/*
 * Function types.
 */
typedef void DO_FUN args ((CHAR_DATA * ch, char *argument));
typedef bool SPEC_FUN args ((CHAR_DATA * ch));
typedef void SPELL_FUN
args ((int sn, sh_int level, CHAR_DATA * ch, void *vo));



/*
 * String and memory management parameters.
 */
#define MIL			 1024
#define MSL			 (4096 * 2)
#define MKH			 1024


/*
 * Gobal Procedures
 */
void clear_stats args ((CHAR_DATA * ch));
void reset_room args ((CHAR_DATA * ch));
void room_is_total_darkness args ((ROOM_INDEX_DATA * pRoomIndex));
void improve_wpn args ((CHAR_DATA * ch, int dtype, bool right_hand));
void improve_stance args ((CHAR_DATA * ch));
void skillstance args ((CHAR_DATA * ch, CHAR_DATA * victim));
void show_spell args ((CHAR_DATA * ch, int dtype));
void fightaction args ((CHAR_DATA * ch, CHAR_DATA * victim, int actype,
			int dtype, int wpntype));
void crack_head args ((CHAR_DATA * ch, OBJ_DATA * obj, char *argument));
void critical_hit args ((CHAR_DATA * ch, CHAR_DATA * victim, int dt, int dam));
void take_item args ((CHAR_DATA * ch, OBJ_DATA * obj));
void raw_kill args ((CHAR_DATA * victim, CHAR_DATA * ch));
void trip args ((CHAR_DATA * ch, CHAR_DATA * victim));
void disarm args ((CHAR_DATA * ch, CHAR_DATA * victim));
void fumble args ((CHAR_DATA * ch, int num));
void make_corpse args ((CHAR_DATA * ch, CHAR_DATA * maker));
void gen_piece args ((CHAR_DATA * ch, OBJ_DATA * corpse));
void one_hit args ((CHAR_DATA * ch, CHAR_DATA * victim, int dt,
		    int handtype, int damkind, bool agg_dam));
void make_part args ((CHAR_DATA * ch, char *argument));
void mobgate args ((CHAR_DATA * ch, char *argument));
void home_write args (());
int vampgainwhat args (());
void vampritmessage args ((CHAR_DATA *ch));
void vampritfinish args ((CHAR_DATA *ch, int ritual));
void behead args ((CHAR_DATA * victim, CHAR_DATA * ch));
void paradox args ((CHAR_DATA * ch));
void    hunt_victim     args( ( CHAR_DATA *ch ) );
void copyover_read_obj args (());
void copyover_write_obj args (());
void load_all_guards args (());
int has_wonder args ((CHAR_DATA *ch));
void    alias_remove    args( ( CHAR_DATA *ch, ALIAS_DATA *ali ) );
bool update_guard args ((CHAR_DATA *ch, int vnum));
int calc_newwwdam args ((CHAR_DATA *ch, int dam));
int calc_newwwhrdr args ((CHAR_DATA *ch, int hrdr));
CHAR_DATA *pick_victim args ((CHAR_DATA *ch));
void qreq_assassin args ((CHAR_DATA *ch, CHAR_DATA *assassin));
/* 
 * Godwars Game Parameters
 * By Rotain 
 */

#define SKILL_ADEPT               100
#define SKILL_THAC0_32             18
#define SKILL_THAC0_00              6
#define VERSION_NUMBER             .5
#define DONATION_ROOM_WEAPON     6641
#define DONATION_ROOM_ARMOR      6643
#define DONATION_ROOM_REST       6644
#define MAX_VAMPIRE_POWER           3
#define MAX_ART			   22
#define MAX_CLAN                   11
#define OPTIMISED_PFILES            1	/* Set to 0 for full length pfiles */
#include "board.h"
#include "mxp.h"
#define is_full_name is_name
#define MAX_ALIAS 30



#ifndef MSL
#define MSL	MSL
#endif

/* For arti all */
void artifact_table_read args (());
void artifact_table_write args (());
void updatearti args ((CHAR_DATA * ch));

#define ARTI_1			29500
#define ARTI_2			29501
#define ARTI_3			29502
#define ARTI_4			29503
#define ARTI_5			29504
#define ARTI_6			29505
#define ARTI_7			29506
#define ARTI_8			29507
#define ARTI_9			29508
#define ARTI_10			29509
#define ARTI_11			29510
#define ARTI_12			29511
#define ARTI_13			29512
#define ARTI_14			29513
#define ARTI_15			29514
#define ARTI_16			29515
#define ARTI_17			29516
#define ARTI_18			29517
#define ARTI_19			29518
#define ARTI_20			29519
#define ARTI_21			29520
#define ARTI_22			29521

struct arti_data
{
  char *player_name;
  int object_vnum;
};

ARTI_DATA artifact_table[MAX_ART];

//vamp ritual bits
//Level 1
#define VAMPRIT_DEFENCE        1 //Defence of the sacred haven: Makes it so theres no sunlight in the area the vampire is in
#define VAMPRIT_DEVIL          2 //Devils touch: use on a victim, will make all mobs  attacks this person, no matter what
#define VAMPRIT_RUSH           4 //Blood Rush: makes it so the vamp doesnt need blood for 1 hour
#define VAMPRIT_WISP           8 //Will o'the wisp: create a firimilar
#define VAMPRIT_APORT         16 //aport object: summon object
#define VAMPRIT_CORD          32 //the knotted cord: silence victim (no chant/cast/say)
//Level 2
#define VAMPRIT_GHOUL         64 //Ward vs ghouls
#define VAMPRIT_INVISF       128 //power of the invisible flame: casts an invisiable flame in the room, which will inflame anyone who walks in the room save the caster
#define VAMPRIT_STEPS        256 //steps of the terrified: cast on a victim, it will slow them down if they flee
#define VAMPRIT_BEAST        512 //bring forth the hell beast: makes target npc aggro
#define VAMPRIT_DEMON       1024 //warding circle: ward vs demon
//Level 3
#define VAMPRIT_WOLF        2048 //Ward vs Lupines
#define VAMPRIT_BLOOD       4096 //fire in the blood: aggy monks deathtouch
#define VAMPRIT_TREES       8192 //friends of the trees: slows down anyone who walks in the area this was cast in, except the caster
#define VAMPRIT_MISCH      16384 //summon mischevious spirit: will call a spirit that will follow the victim around and annoy him/her
#define VAMPRIT_TOAD       32768 //turn to toad: turns a victim into a toad for 15 min
//Level 4
#define VAMPRIT_VAMP       65536 //ward vs vampire
#define VAMPRIT_UTTER     131072 //Utter destruction of bonds: removes tounge (victim will be able to cast/chant),but will remove wards
#define VAMPRIT_SGATE     262144 //Shadowgate: paint X over each eye, then step into a dark shadow, taking the caster to umbra
#define VAMPRIT_VOICE     524288 //bottled voice: cast on victim, will make the vicitim unable to speak/chant/cast
#define VAMPRIT_BINDI    1048576 //invisiable chains of binding: makes the vic unable to flee
//Level 5
#define VAMPRIT_SLUMB    2097152 //Stone slumber: turns victim into stone
#define VAMPRIT_PAPER    4194304 //paper flesh: removes victim fort
#define VAMPRIT_THIRST   8388608 //thirst unquenchable: do on another vamp, will make there blood 0 and unable to be raised for an hour
#define VAMPRIT_FURNACE 16777216 //the inner furnace: inflames victim, and causes them to die if not smothered in time (15 min)

//Evenmore bits.
#define EM_SOUND				1
#define EM_MUSIC				2
#define EM_JAWLOCK				4
#define EM_MASTERY				8
#define EM_CREATED				16
#define EM_AFK					32
#define EM_AUTOCONSUME				64
#define EM_WIPED				128
#define EM_HIDDEN				256
#define EM_DARKNESS				512
#define EM_ARMOR	 			1024
#define	EM_DRAGONFIX 				2048
#define EM_JAILED				4096
#define EM_SOULEATER				8192
#define EM_REDEEMER			      	16384
#define EM_QUESTOR		      		32768
#define EM_WEBSPINNER				65536
#define EM_GUARDIAN				131072



//Xbits   Corim, heh forgot about the evenmore bits... oh well can never have to many bits right :P

#define X_LAMP					1
#define X_ILLUSIONIST				2
#define X_CONJURER				4
#define X_ARCHMAGE				8
#define X_ILLUSIONIST_TWO			16
#define X_CONJURER_TWO				32
#define X_ARCHMAGE_TWO				64
#define X_SLEEP					128
#define X_DARKPATH				256
#define X_LIGHTPATH				512
#define X_YANG_AURA				1024
#define X_YING_AURA				2048
#define X_YING_SPEED				4096
#define X_YANG_MIGHT				8192
#define X_DEATH_SHIELD				16384
#define X_RIGHT_POISON				32768
#define X_LEFT_POISON				65536
#define X_RIGHT_FLAMING				131072
#define X_LEFT_FLAMING				262144
#define X_RIGHT_FROST				524288
#define X_LEFT_FROST				1048576
#define X_RIGHT_SHOCK				2097152
#define X_LEFT_SHOCK				4194304
#define X_RIGHT_ACID				8388608
#define X_LEFT_ACID				16777216
#define X_NINJA_HIDE				33554432
#define X_SHIELD_FLAMES				67108864
#define X_FAE_FORCEWALL				134217728
#define X_RIGHT_HOLY				268435456
#define X_LEFT_HOLY				536870912
#define X_SEEDED				1073741824

// corbits, ch->corbits

#define COR_RUNES_ADDED				1
#define COR_ALLOWED				2
#define COR_HYBRID				4
#define COR_DARKNESS				8
#define COR_COUNTED				16
#define COR_CLASSCOUNTED			32
#define COR_COUNTED_TOO				64
#define COR_CLASSCOUNTED_TOO			128
#define COR_CHALLENGED				256
#define COR_INARENA				512
#define COR_CHALLENGER				1024
#define COR_TRAINMODE				2048
#define COR_BONDFIX				4096
#define COR_FOUNDER				8192
#define COR_CREDIT				16384
#define COR_NEW_POWER				32768
#define COR_NATURAL				65536
#define COR_COLORCARD				131072
#define COR_PRAYER				262144
#define COR_GOLCONDA				524288
#define COR_CREDITCARD				1048576
#define COR_EVOLVED				2097152
#define COR_FIRSTQUEST				4194304
#define COR_HELLFIRE				8388608
#define COR_TOUGHNESS				16777216
#define COR_DISCIPLINE				33554432
#define COR_FOCUS				67108864
#define COR_RIBBONS				134217728
#define COR_FORCE				268435456
#define COR_SEEALL				536870912
#define COR_STONEJAIL				1073741824


// nymbits, ch->nymbits
#define NYM_SKINDANCER				1
#define NYM_ICY					2
#define NYM_HASARTI				4
#define NYM_DEAD				8
#define NYM_FIRSTDEATH				16
#define NYM_SCANNING				32
#define NYM_DEATHPLANE				64
#define NYM_DEATHSIGHT				128
#define NYM_SHOULDERCANNON			256
#define NYM_LASERCANNON				512
#define NYM_PLASMACANNON			1024
#define NYM_BOLAS				2048
#define NYM_GENFIX				4096
#define NYM_BLOODSPIRIT				8192
#define NYM_TOKENHOLDER				16384
#define NYM_PLANESIGHT				32768
#define NYM_PARADOX				65536
#define NYM_MORTALINVIS				131072
#define NYM_SOULJAR				262144
#define NYM_CUSTOM_LOGOUT                       524288
#define NYM_CUSTOM_LOGIN                        1048576
#define NYM_CUSTOM_DECAP                        2097152
#define NYM_CUSTOM_TOAFK			4194304
#define NYM_FIRSTVALHALLA			8388608
#define NYM_CUSTOM_FROMAFK			16777216
#define NYM_SERPENT				33554432
#define NYM_NEWLOG				67108864
#define NYM_SOULBIND				134217728
#define NYM_NEPHFURY				268435456
#define NYM_CHARGING				536870912
#define NYM_NOTSAFE				1073741824



#define PK_DOUBLEXP				1
#define PK_DOUBLECREDZ				2
#define PK_DOUBLECRYS				4
#define PK_DOUBLESTATUS				8
#define PK_DOUBLEDAMCAP				16
#define PK_SPEED				32
#define PK_BONUS				64
#define PK_RESISTANCE				128
#define PK_QTIME				256


// xxbits, ch->xxbits
#define XX_ANGEL				1
#define XX_ELFBOW				2
#define XX_ARCHER				4
#define XX_EQFIX				8
#define XX_SHADOWBLAZE				16
#define XX_ROYALRUMBLE				32
#define XX_BOUND				64
#define XX_EARTHSHIELD			        128
#define XX_BROKENSHIELD				256
#define XX_FSTAND				512
#define XX_BLOODHUNT                           	1024
#define XX_NOLOGOUT                            	2048
#define XX_CAPPROVE                            	4096
#define XX_NONOTES                             	8192
#define XX_RAKBURROW                          	16384
#define XX_RAKVAMP                            	32768
#define XX_RAKWEREWOLF                        	65536
#define XX_RAKMAGE                           	131072
#define XX_RAKDJINN                          	262144
#define XX_RAKMONK                           	524288
#define XX_RAKNONE                          	1048576
#define XX_RAKKAHN                          	2097152
#define XX_DREAMWORLD                       	4194304
#define XX_ABOMBEAR                         	8388608
#define XX_ABOMPANTHER                     	16777216
#define XX_ABOMLIZARD                      	33554432
#define XX_ADVPOISON                       	67108864
#define XX_PLANEARTI                      	134217728
#define XX_ELFLISTEN                      	268435456
#define XX_ELFEARTH                       	536870912
#define XX_BLOODSHIELD                   	1073741824


#define XXX_RETAL				1
#define XXX_LICHCIRCLE                          2
#define XXX_SKINRODE                            4
#define XXX_WRAITHQUEST                         8
#define XXX_WRAITHFIX                           16
#define XXX_FLAMESHIELD                    	32
#define XXX_CALLALLFIX                         	64
#define XXX_CALTROPS                           	128
#define XXX_BARRIER				256
#define XXX_CAMOUFLAGE                          512
#define XXX_MINDBLOCK				1024
#define XXX_PIECE                               2048
#define XXX_DEVILTOUCH                          4096
#define XXX_SFOCUS                              8192
#define XXX_BRIEFFIVE                          16384
#define XXX_HASSTAFF                           32768
#define XXX_PLAYERSCLUB                        65536
#define XXX_TIMESHIELD                        131072
#define XXX_THIRST                            262144
#define XXX_LORDLY                            524288
#define XXX_WRATH                            1048576
#define XXX_META                             2097152
#define XXX_SE                               4194304
#define XXX_COUGHTBOTTING                    8388608
#define XXX_DEATHSHIELD                     16777216
#define XXX_SLUR                            33554432
#define XXX_CANPICK                         67108864
#define XXX_HASPICKED                      134217728
#define XXX_ASSASSIN                       268435456
/*
 * Quest Code.
 */
#define IS_QUESTOR(ch)     (IS_SET((ch)->evenmore, EM_QUESTOR))
DECLARE_DO_FUN (do_autoquest);

/*
 * Game parameters.
 * Increase the max'es if you add more of something.
 * Adjust the pulse numbers to suit yourself.
 */

#define AGE_NEWBIE		   50	/* This age = no longer a newbie */

#define PARADOX_TICK               30
#define MAX_SKILL		  500	/*upped it from 201 to be able to add more skills */
#define MAX_SPELL		  500
#define MAX_LEVEL		   13
#define NO_WATCH		   11
#define LEVEL_HERO		   (MAX_LEVEL - 10)
#define LEVEL_IMMORTAL		   (MAX_LEVEL - 6)

#define LEVEL_MORTAL		   (MAX_LEVEL - 11)
#define LEVEL_AVATAR		   (MAX_LEVEL - 10)
#define LEVEL_APPRENTICE	   (MAX_LEVEL - 9)
#define LEVEL_MAGE		   (MAX_LEVEL - 8)
#define LEVEL_ARCHMAGE		   (MAX_LEVEL - 7)

#define LEVEL_BUILDER		   (MAX_LEVEL - 6)
#define LEVEL_QUESTMAKER	   (MAX_LEVEL - 5)
#define LEVEL_ENFORCER		   (MAX_LEVEL - 4)
#define LEVEL_JUDGE		   (MAX_LEVEL - 3)
#define LEVEL_HIGHJUDGE		   (MAX_LEVEL - 2)
#define LEVEL_IMPLEMENTOR	   (MAX_LEVEL - 1)
#define LEVEL_OWNER		   (MAX_LEVEL)

#define PULSE_PER_SECOND	    4
#define PULSE_GAIN_EXP		  ( 1 * PULSE_PER_SECOND)
#define PULSE_VIOLENCE		  ( 2 * PULSE_PER_SECOND)
#define PULSE_MOBILE		  (4 * PULSE_PER_SECOND)
#define PULSE_TICK		  (60 * PULSE_PER_SECOND)
#define PULSE_AREA		  (120 * PULSE_PER_SECOND)
#define PULSE_MINUTE              (60 * PULSE_PER_SECOND)
#define PULSE_AUCTION             (20 * PULSE_PER_SECOND)
#define PULSE_EMPIRE              (240 * PULSE_PER_SECOND)
#define PULSE_SAVE                (360 * PULSE_PER_SECOND)
#define PULSE_MISC                (420 * PULSE_PER_SECOND)

#define stc			  send_to_char

/*
 * Ninjas from LoW. Adapted to GW Deluxe by Hagrid. and edited even more by Corim
 */

#define NINJAKI			0
#define NPOWER_SORA		1
#define NPOWER_CHIKYU		2
#define NPOWER_NINGENNO		3
#define HARA_KIRI		4
#define NINJA_RAGE		5
#define NPATH_LIGHT		6
#define NPATH_DARK		7
#define NPOWER_NINBUKI		8
#define NPOWER_BUSHIDO		9

/* Argonath */
DECLARE_DO_FUN (do_punish);
DECLARE_DO_FUN (do_prefix);
DECLARE_DO_FUN (do_pkready);
DECLARE_DO_FUN (do_tattoo);
DECLARE_DO_FUN (do_planetouch);
DECLARE_DO_FUN (do_stride);
DECLARE_DO_FUN (do_souleater);
DECLARE_DO_FUN (do_seed);
DECLARE_DO_FUN (do_planarwrath);
DECLARE_DO_FUN (do_heavenbless);
DECLARE_DO_FUN (do_yingspeed);
DECLARE_DO_FUN (do_ninforge);
DECLARE_DO_FUN (do_ashigiri);
DECLARE_DO_FUN (do_ninjaform);
DECLARE_DO_FUN (do_ying_force);
DECLARE_DO_FUN (do_yangmight);
DECLARE_DO_FUN (do_poison);
DECLARE_DO_FUN (do_glaive);
DECLARE_DO_FUN (do_ying_heal);
DECLARE_DO_FUN (do_yheal);
DECLARE_DO_FUN (do_sword);
DECLARE_DO_FUN (do_helmet);
DECLARE_DO_FUN (do_dagger);
DECLARE_DO_FUN (do_yang_dagger);
DECLARE_DO_FUN (do_yang_sword);
DECLARE_DO_FUN (do_ying_dagger);
DECLARE_DO_FUN (do_ying_sword);
DECLARE_DO_FUN (do_yang_aura);
DECLARE_DO_FUN (do_ying_aura);
DECLARE_DO_FUN (do_aura);
DECLARE_DO_FUN (do_circle);
DECLARE_DO_FUN (do_principles);
DECLARE_DO_FUN (do_michi);
DECLARE_DO_FUN (do_kakusu);
DECLARE_DO_FUN (do_orimasu);
DECLARE_DO_FUN (do_kanzuite);
DECLARE_DO_FUN (do_gunaya);
DECLARE_DO_FUN (do_mienaku);
DECLARE_DO_FUN (do_bomuzite);
DECLARE_DO_FUN (do_tsume);
DECLARE_DO_FUN (do_tokenquest);
DECLARE_DO_FUN (do_harakiri);
DECLARE_DO_FUN (do_ntrip);
DECLARE_DO_FUN (do_mitsukeru);
DECLARE_DO_FUN (do_mizotamoyo);
DECLARE_DO_FUN (do_koryou);
DECLARE_DO_FUN (do_miktalk);
DECLARE_DO_FUN (do_kukitobi);
DECLARE_DO_FUN (do_tetsubishi);
DECLARE_DO_FUN (do_gisojutsu);

/*
 * Gypsy Commands.
 */
DECLARE_DO_FUN (do_slow);
DECLARE_DO_FUN (do_haste);

/*
 * Angels. Yae
 */
DECLARE_DO_FUN (do_swordform);
DECLARE_DO_FUN (do_warp);
DECLARE_DO_FUN (do_angelpowers);
DECLARE_DO_FUN (do_righteous);
DECLARE_DO_FUN (do_justice);
DECLARE_DO_FUN (do_prayer);
DECLARE_DO_FUN (do_angelgate);
DECLARE_DO_FUN (do_angelform);
DECLARE_DO_FUN (do_saintform);
DECLARE_DO_FUN (do_saintlymight);
DECLARE_DO_FUN (do_confront);
DECLARE_DO_FUN (do_houseofgod);
DECLARE_DO_FUN (do_defenders);
DECLARE_DO_FUN (do_ascend);
DECLARE_DO_FUN (do_smite);
DECLARE_DO_FUN (do_apurify);
DECLARE_DO_FUN (do_holyflame);
DECLARE_DO_FUN (do_bring);
DECLARE_DO_FUN (do_retaliation);
DECLARE_DO_FUN (do_purity);


#define APOWER_VISION		1
#define APOWER_CRUSADER		2
#define APOWER_GODLYSPEED	4
#define APOWER_SWORDFORM	8
#define APOWER_HALOBLESS	16
#define APOWER_CHERUB		32
#define APOWER_OBEAH		64
#define APOWER_ANGELGATE	128
#define APOWER_ANGELFORM	256
#define APOWER_HOUSE		512
#define APOWER_PRAYER		1024
#define APOWER_RIGHTEOUS	2048
#define APOWER_JUSTICE		4096
#define APOWER_CONFRONT		8192
#define APOWER_OBEAH2		16384
#define APOWER_OBEAH3		32768
#define APOWER_OBEAH4		65536
#define APOWER_OBEAH5		131072

#define APOWER_CHAOSSHROUD      262144
#define APOWER_CHAOSCLAWS	524288
#define APOWER_CHAOSSTRIKE	1048576
#define APOWER_FINALSTAND	2097152
#define APOWER_TATTOO           4194304
#define APOWER_CONSCIENCE       8388608

#define APOWER_PURE1		16777216
#define APOWER_PURE2		33554432
#define APOWER_PURE3		67108864
#define APOWER_PURE4		134217728
#define APOWER_PURE5		268435456


DECLARE_DO_FUN (do_promote);

/*
 *Monk powers
 */
DECLARE_DO_FUN (do_dokuyaku);
DECLARE_DO_FUN (do_mpowers);
DECLARE_DO_FUN (do_handform);
DECLARE_DO_FUN (do_guide);
DECLARE_DO_FUN (do_ribbon);
DECLARE_DO_FUN (do_adamantium);
DECLARE_DO_FUN (do_celestial);
DECLARE_DO_FUN (do_deathtouch);
DECLARE_DO_FUN (do_healingtouch);
DECLARE_DO_FUN (do_relax);
DECLARE_DO_FUN (do_spiritpower);
DECLARE_DO_FUN (do_chi);
DECLARE_DO_FUN (do_shinkick);
DECLARE_DO_FUN (do_spinkick);
DECLARE_DO_FUN (do_thrustkick);
DECLARE_DO_FUN (do_swear);
DECLARE_DO_FUN (do_sweep);
DECLARE_DO_FUN (do_knee);
DECLARE_DO_FUN (do_elbow);
DECLARE_DO_FUN (do_palmstrike);
DECLARE_DO_FUN (do_backfist);
DECLARE_DO_FUN (do_learn);
DECLARE_DO_FUN (do_blinding);
DECLARE_DO_FUN (do_godsheal);
DECLARE_DO_FUN (do_flaminghands);


/*
 *Elf powers
 */
DECLARE_DO_FUN (do_wisdoms);
DECLARE_DO_FUN (do_elfsight);
DECLARE_DO_FUN (do_pass);
DECLARE_DO_FUN (do_pass);
DECLARE_DO_FUN (do_elvenshield);
DECLARE_DO_FUN (do_eagle);
DECLARE_DO_FUN (do_elfform);
DECLARE_DO_FUN (do_bowcraft);
DECLARE_DO_FUN (do_fletch);
DECLARE_DO_FUN (do_quickness);
DECLARE_DO_FUN (do_bullstrength);
DECLARE_DO_FUN (do_spiritsense);

/*
 *Fae bits, yes im useing npower, didnt feel like makeing any new discipline strings 
 */
#define FAE_CHIC			10
#define FAE_LEGE			11
#define FAE_SOVE			12
#define FAE_SOOT			13
#define FAE_WAYF			14
#define FAE_PRIM			15


/*
 * Kahn class. First coded by Mia
 * 
 */

#define KAHN_TIGER	15	//needed another disc for kahns, and 16 is taken by djinn powers.... would be alot simpler if ppl started at 1 and counted up...  Corim
#define KAHN_FORMS	17
#define KAHN_RANKS	18
#define KAHN_COMBAT	19

DECLARE_DO_FUN (do_gaiatalk);
DECLARE_DO_FUN (do_kahnmastery);
DECLARE_DO_FUN (do_kahnform);
DECLARE_DO_FUN (do_rakshasaform);
DECLARE_DO_FUN (do_trueform);
DECLARE_DO_FUN (do_gaiasight);
DECLARE_DO_FUN (do_stalk);
DECLARE_DO_FUN (do_warmth);
DECLARE_DO_FUN (do_clawhold);
DECLARE_DO_FUN (do_blitz);
DECLARE_DO_FUN (do_icetouch);
DECLARE_DO_FUN (do_clawslash);
DECLARE_DO_FUN (do_fire);
DECLARE_DO_FUN (do_bola);
DECLARE_DO_FUN (do_cannon);
DECLARE_DO_FUN (do_target);
DECLARE_DO_FUN (do_primalsense);
DECLARE_DO_FUN (do_gaiatouch);
DECLARE_DO_FUN (do_darkroar);
DECLARE_DO_FUN (do_savageshred);
DECLARE_DO_FUN (do_kahns);
DECLARE_DO_FUN (do_gaiabless);

#define DJINNPOWERS		16

#define DJINN_SIGHT			1
#define DJINN_DJINNFORM			2
#define DJINN_ILLUSIONMIST		4
#define DJINN_HIDDEN			8
#define DJINN_READAURA			16
#define DJINN_DARKSOUL			32
#define DJINN_CLAWS			64
#define DJINN_SNEAK			128
#define DJINN_FIRE			256
#define DJINN_PARALYZE			512
#define DJINN_ILLUSIONOBJECT		1024
#define DJINN_DREAMWALK			2048
#define DJINN_DREAMSTAIN		4096
#define DJINN_CRADLING			8192
#define DJINN_SPEED			16384
#define DJINN_TOUGHNESS			32768
#define DJINN_REGEN			65536
#define DJINN_WEAPON			131072
#define DJINN_CURSE			262144
#define DJINN_MIGHT			524288
#define DJINN_HURRICANE			1048576
#define DJINN_LAMP			2097152
#define DJINN_WIND			4194304
#define DJINN_SONIC			8388608

DECLARE_DO_FUN (do_dreamtalk);
DECLARE_DO_FUN (do_djinnpowers);
DECLARE_DO_FUN (do_djinngrant);
DECLARE_DO_FUN (do_djinnform);
DECLARE_DO_FUN (do_illusionmist);
DECLARE_DO_FUN (do_hidden);
DECLARE_DO_FUN (do_senseaura);
DECLARE_DO_FUN (do_darksoul);
DECLARE_DO_FUN (do_djinnclaws);
DECLARE_DO_FUN (do_djinnsneak);
DECLARE_DO_FUN (do_djinnfire);
DECLARE_DO_FUN (do_cradling);
DECLARE_DO_FUN (do_paralyze);
DECLARE_DO_FUN (do_illusionate);
DECLARE_DO_FUN (do_dreamwalk);
DECLARE_DO_FUN (do_dcurse);
DECLARE_DO_FUN (do_lampform);
DECLARE_DO_FUN (do_weaponforge);
DECLARE_DO_FUN (do_hurricane);
DECLARE_DO_FUN (do_firestorm);
DECLARE_DO_FUN (do_windgust);
DECLARE_DO_FUN (do_sonicblast);


void increase_total_output args ((int clenght));
extern const char compress_will[];	/* MCCP support                       */
extern const char compress_will2[];	/* MCCP support                       */
/*
 * Site ban structure.
 */
struct ban_data
{
  BAN_DATA *next;
  char *name;
  char *by_who;
  sh_int level;
  bool newbie_banned;
};

/*
 * Mudconfig structure
 */
struct mudconfig_data
{
  sh_int armtimer;
  int world_affects;
  int mobhitdam;
  int mobattacks;
  int catchmode;
  int doubletimer;
  int cdtimer;
  sh_int bounty;
  sh_int pkcounter;
  int hcrtimer;
  int hexptimer;
  int hdctimer;
  int htrtimer;
  int dtrtimer;
  sh_int dtrpayd;
  int dcrtimer;
  sh_int dcrpayd;
  int ddctimer;
  sh_int ddcpayd;
  int dexptimer;
  sh_int dexppayd;
  int hellstorm;
  int helltimer;
  sh_int maxemp;
  sh_int rprice;
  sh_int rpot;
  sh_int rtimer;
  sh_int wonder;
  sh_int victimsleft;
};

/*
 * J.O.P.E - Jobo Online Playerfile Editor
 */
bool jope_load_char args ((CHAR_DATA * ch, char *arg));
void jope_free_char args ((CHAR_DATA * ch));
void jope_interp args ((CHAR_DATA * ch, char *argument));

extern const struct jope_type jope_table[];
extern          ALIAS_DATA        *     alias_free;
struct jope_type
{
  char *const name;
  DO_FUN *do_fun;
  sh_int level;
};

/* msp.c */
void send_bluespell args ((CHAR_DATA * ch));
void send_yellowspell args ((CHAR_DATA * ch));
void send_redspell args ((CHAR_DATA * ch));
void send_greenspell args ((CHAR_DATA * ch));
void send_purplespell args ((CHAR_DATA * ch));
void send_howl args ((CHAR_DATA * ch));
void send_portal args ((CHAR_DATA * ch));
void send_detonate args ((CHAR_DATA * ch));
void send_losthead args ((CHAR_DATA * ch));
void send_teleport args ((CHAR_DATA * ch));
void send_decap args ((CHAR_DATA * ch));
void send_thunder args ((CHAR_DATA * ch));
void send_eagle args ((CHAR_DATA * ch));
void update_music args ((CHAR_DATA * ch));
void update_msp args ((CHAR_DATA * ch));
DECLARE_DO_FUN (do_msp);

struct bit_type
{
  char *const name;
  int bit_value;
};


/*
 * Store types of char logged in.
 */
/*
#define LOGIN_NONE		    0
#define LOGIN_NEWBIE		    1
#define LOGIN_MORTAL		    2
#define LOGIN_GOD		    4
#define LOGIN_VAMPIRE		    8
#define LOGIN_WEREWOLF		   16
#define LOGIN_MAGE		   32
#define LOGIN_DEMON		   64
#define LOGIN_HIGHLANDER	  128
*/


/*
 * Time and weather stuff.
 */
#define SUN_DARK		    0
#define SUN_RISE		    1
#define SUN_LIGHT		    2
#define SUN_SET			    3

#define SKY_CLOUDLESS		    0
#define SKY_CLOUDY		    1
#define SKY_RAINING		    2
#define SKY_LIGHTNING		    3

struct time_info_data
{
  int hour;
  int day;
  int month;
  int year;
};

struct weather_data
{
  int mmhg;
  int change;
  int sky;
  int sunlight;
};



/*
 * Connected state for a channel.
 */
#define CON_PLAYING			 0	/* IN: MOTD, OUT: BEGIN PLAY */
#define CON_GET_NAME			 1	/* IN: NONE, OUT: Enter name */
#define CON_GET_OLD_PASSWORD		 2	/* IN: Name, OUT: Show MOTD */
#define CON_CONFIRM_NEW_NAME		 3	/* IN: Sure, OUT: Password */
#define CON_GET_NEW_PASSWORD		 4	/* IN: Pass, OUT: Confirm */
#define CON_CONFIRM_NEW_PASSWORD	 5	/* IN: Pass, OUT: What sex */
#define CON_GET_NEW_SEX			 6	/* IN: Sex,  OUT: Start as vamp */
#define CON_READ_MOTD			 7	/* IN: NONE, OUT: Play */
#define CON_COPYOVER_RECOVER		 8
#define CON_GET_NEW_ANSI		 9
#define CON_NOTE_TO                     10
#define CON_NOTE_SUBJECT                11
#define CON_NOTE_EXPIRE                 12
#define CON_NOTE_TEXT                   13
#define CON_NOTE_FINISH                 14
#define CON_ACCOUNT			15
#define CON_EXISTING			16
#define CON_ACCOUNT_PASSWORD		17
#define CON_CONFIRM_ACCOUNT_PASSWORD	18
#define CON_LOGIN_WIZINVIS		19
#define CON_PFILE 			20

/*
 * Wonder bits
 */
#define WONDER_NONE                      0
#define WONDER_EXP                       1
#define WONDER_REGEN                     2
#define WONDER_REPOPED                   4
/*
 * Connected states for OLC.
 */
#define CON_AEDITOR                     -1
#define CON_REDITOR                     -2
#define CON_MEDITOR                     -3
#define CON_OEDITOR                     -4


/*
 * Online editing structure.
 */
struct editing_data		/* OLC */
{
  void *pIndex;
  int vnum;
  int type;
  int command;
  char *text;
  char **destination;
};

/*
 * Area flags. OLC
 */
#define         AREA_NONE       0
#define         AREA_CHANGED    1	/* Area has been modified. */
#define         AREA_ADDED      2	/* Area has been added to. */
#define         AREA_LOADING    4	/* Used for counting in db.c */
#define         AREA_NOSAVE     8

/*
 * Descriptor (channel) structure.
 */
struct descriptor_data
{
  DESCRIPTOR_DATA *next;
  DESCRIPTOR_DATA *snoop_by;
  CHAR_DATA *character;
  CHAR_DATA *original;
  bool mxp;
  char *host;
  char *showstr_head;		/* From ENVY code to compile */
  char *showstr_point;		/* From ENVY code to compile */
  int descriptor;
  int connected;
  bool fcommand;
  char inbuf[4 * MIL];
  char incomm[MIL];
  char inlast[MIL];
  int repeat;
  char *outbuf;
  int outsize;
  int outtop;
  EDITING_DATA editing;		/* OLC */
  void *pEdit;			/* OLC */
  char **pString;		/* OLC */
  z_stream *out_compress;	/* MCCP */
  unsigned char *out_compress_buf;	/* MCCP */
  unsigned char compressing;	/* MCCP */
};



/*
 * Attribute bonus structures.
 */
struct str_app_type
{
  int tohit;
  int todam;
  int carry;
  int wield;
};

struct int_app_type
{
  int learn;
};

struct wis_app_type
{
  int practice;
};

struct dex_app_type
{
  int defensive;
};

struct con_app_type
{
  int hitp;
  int shock;
};



/*
 * TO types for act.
 */
#define TO_ROOM		    0
#define TO_NOTVICT	    1
#define TO_VICT		    2
#define TO_CHAR		    3
#define TO_WORLD	    4


/*
 * Help table types.
 */
struct help_data
{
  HELP_DATA *next;
  sh_int level;
  char *keyword;
  char *text;
};



/*
 * Shop types.
 */
#define MAX_TRADE	 5

struct shop_data
{
  SHOP_DATA *next;		/* Next shop in list            */
  int keeper;			/* Vnum of shop keeper mob      */
  int buy_type[MAX_TRADE];	/* Item types shop will buy     */
  int profit_buy;		/* Cost multiplier for buying   */
  int profit_sell;		/* Cost multiplier for selling  */
  int open_hour;		/* First opening hour           */
  int close_hour;		/* First closing hour           */
};



/*
 * Data structure for notes.
 */
struct note_data
{
  NOTE_DATA *next;
  char *sender;
  char *date;
  char *to_list;
  char *subject;
  char *text;
  time_t date_stamp;
  time_t expire;
};



/*
 * An affect.
 */
struct affect_data
{
  AFFECT_DATA *next;
  int type;
  int duration;
  int location;
  int modifier;
  int bitvector;
};



/*
 * A kill structure (indexed by level).
 */
struct kill_data
{
  int number;
  int killed;
};

/*
 * Arti piece code.
 */
#define	FILL_STRING2( string, text )					\
				if ( text != NULL )			\
				{					\
				    smash_tilde( text );		\
				    free_string( string );		\
				    string = str_dup( text );		\
				}					\
				else					\
				{					\
				    bug(				\
			"FILL_STRING: trying to write a null string", 0 );	\
				    free_string( string );		\
				    string = str_dup( "(NULL-BUGGED)" );\
				}
DECLARE_DO_FUN (do_takeapart);
DECLARE_DO_FUN (do_puttogether);
DECLARE_DO_FUN (do_hideaway);

/***************************************************************************
 *                                                                         *
 *                   VALUES OF INTEREST TO AREA BUILDERS                   *
 *                   (Start of section ... start here)                     *
 *                                                                         *
 ***************************************************************************/

/*
 * Well known mob virtual numbers.
 * Defined in #MOBILES.
 */
#define MOB_VNUM_CITYGUARD	   3060
#define MOB_VNUM_VAMPIRE	   3404


/*
 * Classes.  KaVir.
 */
#define CLASS_NONE	      	      0
#define CLASS_VAMPIRE	      	      1
#define CLASS_WEREWOLF	      	      2
#define CLASS_ABOMINATION      	      3	/* CLASS_VAMPIRE  + CLASS_WEREWOLF */
#define CLASS_MAGE	      	      4
#define CLASS_LICH	      	      5	/* CLASS_VAMPIRE  + CLASS_MAGE */
#define CLASS_SKINDANCER      	      6	/* CLASS_WEREWOLF + CLASS_MAGE */
#define CLASS_DEMON	      	      8
#define CLASS_BLACK_SPIRAL_DANCER    10	/* CLASS_WEREWOLF + CLASS_DEMON */
#define CLASS_NEPHANDI	             12	/* CLASS_MAGE     + CLASS_DEMON */
#define CLASS_HIGHLANDER             16
#define CLASS_GHOUL	             32
#define CLASS_ANGEL	             64
#define CLASS_NINJA	            128
#define CLASS_IKIRYU	            129	/* CLASS_NINJA    + CLASS_VAMPIRE */
#define CLASS_GYPSY		    132	/* CLASS_NINJA    + CLASS_MAGE */
#define CLASS_SHIDOSHI		    136	/* CLASS_NINJA    + CLASS_DEMON */
#define CLASS_DRACONIAN		    256
#define CLASS_KAHN		    512
#define CLASS_KRENSHAR		    513	/* CLASS_VAMPIRE  + CLASS_KAHN */
#define CLASS_RAKSHASA		    520	/* CLASS_DEMON    + CLASS_KAHN */
#define CLASS_DJINN		   1024
#define CLASS_NIGHTMARE		   1152 /* CLASS_DJINN    + CLASS_NINJA */
#define CLASS_DEFYLER		   1026	/* CLASS_DJINN    + CLASS_WEREWOLF */
#define CLASS_EFRETI		   1032	/* CLASS_DJINN    + CLASS_DEMON */
#define CLASS_NECRONOM		   1025	/* CLASS_DJINN    + CLASS_VAMPIRE */
#define CLASS_WISHENCHANT	   1028	/* CLASS_DJINN    + CLASS_MAGE */
#define CLASS_ABERRATION	   1536	/* CLASS_DJINN    + CLASS_KAHN */
#define CLASS_FAE                  2048
#define CLASS_WRAITH               4096
#define CLASS_GRIMALKIN            4608 /* CLASS_KAHN     + CLASS_WRAITH */
#define CLASS_REVENANT             4097 /* CLASS_VAMPIRE  + CLASS_WRAITH */
#define CLASS_BALEHOUND            4098 /* CLASS_WEREWOLF + CLASS_WRAITH */ 
#define CLASS_PARAGON              36864 /* CLASS_ANGEL    + CLASS_WRAITH */ 
#define CLASS_NECROMANCER          4100 /* CLASS_MAGE     + CLASS_WRAITH */       
#define CLASS_WEAPONMASTER	   8208	/* CLASS_HIGHLANDER EVOLOUTION */
#define CLASS_MONK		  16384
#define CLASS_CEVOYIA		  16385	/* CLASS_VAMPIRE  + CLASS_MONK */
#define CLASS_SHINOBI		  16512	/* CLASS_NINJA    + CLASS_MONK */
#define CLASS_SHAAHOUL		  16896	/* CLASS_KAHN     + CLASS_MONK */
#define CLASS_TAKARRA		  17408	/* CLASS_DJINN    + CLASS_MONK */
#define CLASS_SHADE		  20480 /* CLASS_WRAITH   + CLASS_MONK */ 
#define CLASS_ANGELW		  32768
#define CLASS_GAIAINQ		  32770	/* CLASS_WEREWOLF + CLASS_ANGELW */
#define CLASS_BETRAYER		  32776	/* CLASS_ANGELW   + CLASS_DEMON */
#define CLASS_PLANARSOHEI	  32896	/* CLASS_ANGELW   + CLASS_NINJA */
#define CLASS_TIGRASHA		  33280	/* CLASS_ANGELW   + CLASS_KAHN */
#define CLASS_SAINT		  49152	/* CLASS_ANGELW   + CLASS_MONK */
#define CLASS_ELF		  65536
#define CLASS_DRAGON		 131328	/* CLASS_DRACONIAN EVOLOUTION */
#define CLASS_NEWWW              262144
//next class 524288

/*
 * Lstatus declarations.
 */
#define L_UNK	0
#define L_CIT	1
#define L_LEG	2
#define L_MYT	3
#define L_TIT	4
#define L_ORA	5
#define L_IMM	6
#define L_DEM	7
#define L_DEI	8
#define L_ALM	9

/*
 * Immunities, for players.  KaVir.
 */
#define IMM_SLASH	      1	/* Resistance to slash, slice.          */
#define IMM_STAB	      2	/* Resistance to stab, pierce.          */
#define IMM_SMASH	      4	/* Resistance to blast, pound, crush.   */
#define IMM_ANIMAL	      8	/* Resistance to bite, claw.            */
#define IMM_MISC	     16	/* Resistance to grep, suck, whip.      */
#define IMM_CHARM	     32	/* Immune to charm spell.               */
#define IMM_HEAT	     64	/* Immune to fire/heat spells.          */
#define IMM_COLD	    128	/* Immune to frost/cold spells.         */
#define IMM_LIGHTNING	    256	/* Immune to lightning spells.          */
#define IMM_ACID	    512	/* Immune to acid spells.               */
#define IMM_SUMMON	   1024	/* Immune to being summoned.            */
#define IMM_VOODOO	   2048	/* Immune to voodoo magic.              */
#define IMM_VAMPIRE	   4096	/* Allow yourself to become a vampire.  */
#define IMM_STAKE	   8192	/* Immune to being staked (vamps only). */
#define IMM_SUNLIGHT	  16384	/* Immune to sunlight (vamps only).     */
#define IMM_SHIELDED	  32768	/* For Obfuscate. Block scry, etc.      */
#define IMM_HURL	  65536	/* Cannot be hurled.                    */
#define IMM_BACKSTAB	 131072	/* Cannot be backstabbed.               */
#define IMM_KICK	 262144	/* Cannot be kicked.                    */
#define IMM_DISARM	 524288	/* Cannot be disarmed.                  */
#define IMM_STEAL	1048576	/* Cannot have stuff stolen.            */
#define IMM_SLEEP	2097152	/* Immune to sleep spell.               */
#define IMM_DRAIN	4194304	/* Immune to energy drain.              */
#define IMM_DEMON	8388608	/* Allow yourself to become a demon.    */
#define IMM_TRANSPORT  16777216	/* Objects can't be transported to you. */


/*
 * ACT bits for mobs.
 * Used in #MOBILES.
 */
#define ACT_IS_NPC		      1	/* Auto set for mobs    */
#define ACT_SENTINEL		      2	/* Stays in one room    */
#define ACT_SCAVENGER		      4	/* Picks up objects     */
#define ACT_AGGRESSIVE		     32	/* Attacks PC's         */
#define ACT_STAY_AREA		     64	/* Won't leave area     */
#define ACT_WIMPY		    128	/* Flees when hurt      */
#define ACT_PET			    256	/* Auto set for pets    */
#define ACT_TRAIN		    512	/* Can train PC's       */
#define ACT_PRACTICE		   1024	/* Can practice PC's    */
#define ACT_MOUNT		   2048	/* Can be mounted       */
#define ACT_NOPARTS		   4096	/* Dead = no body parts */
#define ACT_NOEXP		   8192	/* No exp for killing   */
#define ACT_DOG			  16384	/* Khang and Reina's dog :) */
#define ACT_SKILLED		  32768	/* Stances */
#define ACT_COMMANDED		  65536	/* Can't attack newbies */
#define ACT_TINY		 131072	/* Can't attack newbies */
#define ACT_SAFE		 262144 /* Safe			*/
#define ACT_WANDERER		 524288 /* Wanders around	*/
#define ACT_PANDDEMON           1048576 /* Pandemonium demon mwahahaha */
#define ACT_WONDER              2097152 /* empire wonder */  
/*
 * Fae stuff...
 */
#define KITH_BOGGAN		1
#define KITH_SIDHE		2
#define KITH_NOCKER		4
#define KITH_POOKA		32
#define KITH_REDCAP		64
#define KITH_SLUAGH		128
#define KITH_ESHU		256
#define KITH_SATYR		512
#define KITH_TROLL		1024

/*
#define FAE_CHIC	0
#define FAE_LEGE	1
#define FAE_PRIM	2
#define FAE_SOOT	3
#define FAE_SOVE	4
#define FAE_WAYF	5
*/

/*
 * Bits for 'affected_by'.
 * Used in #MOBILES.
 */
#define AFF_BLIND		      1
#define AFF_INVISIBLE		      2
#define AFF_DETECT_EVIL		      4
#define AFF_DETECT_INVIS	      8
#define AFF_DETECT_MAGIC	     16
#define AFF_DETECT_HIDDEN	     32
#define AFF_SHADOWPLANE		     64	/* Creatures in shadow plane - KaVir */
#define AFF_SANCTUARY		    128
#define AFF_FAERIE_FIRE		    256
#define AFF_INFRARED		    512
#define AFF_CURSE		   1024
#define AFF_FLAMING		   2048	/* For burning creatures - KaVir */
#define AFF_POISON		   4096
#define AFF_PROTECT		   8192
#define AFF_ETHEREAL		  16384	/* For ethereal creatures - KaVir */
#define AFF_SNEAK		  32768
#define AFF_HIDE		  65536
#define AFF_SLEEP		 131072
#define AFF_CHARM		 262144
#define AFF_FLYING		 524288
#define AFF_PASS_DOOR		1048576
#define AFF_POLYMORPH		2097152	/* For polymorphed creatures - KaVir */
#define AFF_SHADOWSIGHT		4194304	/* Can see between planes - KaVir */
#define AFF_WEBBED		8388608	/* Cannot move - KaVir */
#define AFF_CONTRACEPTION      16777216	/* Cannot get pregnant - KaVir */
#define AFF_SHADOW             33554432	/* For Arms of the Abyss - KaVir */
#define AFF_ROT                67108864	/* For Putrefaction - KaVir */
#define AFF_FEAR	      134217728	/* Fear affects - KaVir */
#define AFF_JAIL	      268435456	/* For Jail of Water - KaVir */
#define AFF_TOTALBLIND	      536870912
#define AFF_TRACER	     1073741824


/*
 * Bits for 'itemaffect'.
 * Used in #MOBILES.
 */
#define ITEMA_SHOCKSHIELD	       	1
#define ITEMA_FIRESHIELD	       	2
#define ITEMA_ICESHIELD		       	4
#define ITEMA_ACIDSHIELD	       	8
#define ITEMA_BLADESHIELD              	16
#define ITEMA_CHAOSSHIELD              	32
#define ITEMA_ARTIFACT                 	64
#define ITEMA_REGENERATE               	128
#define ITEMA_SPEED                    	256
#define ITEMA_VORPAL                   	512
#define ITEMA_PEACE                 	1024
#define ITEMA_RIGHT_SILVER          	2048
#define ITEMA_LEFT_SILVER           	4096
#define ITEMA_REFLECT               	8192
#define ITEMA_RESISTANCE           	16384
#define ITEMA_VISION               	32768
#define ITEMA_STALKER              	65536
#define ITEMA_VANISH              	131072
#define ITEMA_RAGER               	262144
#define ITEMA_HIGHLANDER          	524288
#define ITEMA_SHADES             	1048576
#define ITEMA_SUNSHIELD          	2097152
#define ITEMA_RIGHT_AGG		 	4194304
#define ITEMA_LEFT_AGG		 	8388608
#define ITEMA_MASTERY			16777216
#define ITEMA_NOSUMMON			33554432
#define ITEMA_SUPERSPEED		67108864
#define ITEMA_MASTERMAGE		134217728

/*
 * Rune, Glyph and Sigil bits.
 */
#define RUNE_FIRE	      1
#define RUNE_AIR	      2
#define RUNE_EARTH	      4
#define RUNE_WATER	      8
#define RUNE_DARK	      16
#define RUNE_LIGHT	      32
#define RUNE_LIFE	      64
#define RUNE_DEATH	      128
#define RUNE_MIND	      256
#define RUNE_SPIRIT	      512
#define RUNE_MASTER	      1024
#define GLYPH_CREATION	      1
#define GLYPH_DESTRUCTION     2
#define GLYPH_SUMMONING	      4
#define GLYPH_TRANSFORMATION  8
#define GLYPH_TRANSPORTATION  16
#define GLYPH_ENHANCEMENT     32
#define GLYPH_REDUCTION	      64
#define GLYPH_CONTROL	      128
#define GLYPH_PROTECTION      256
#define GLYPH_INFORMATION     512
#define SIGIL_SELF	      1
#define SIGIL_TARGETING       2
#define SIGIL_AREA	      4
#define SIGIL_OBJECT	      8

/*
 * Weapflags, extra shit for objects.
 */

#define WEAPON_FLAMING			1
#define WEAPON_FROST			2
#define WEAPON_POISON			4
#define WEAPON_SHOCKING			8
#define WEAPON_ACID			16
#define WEAPON_HOLY			32
#define WEAPON_CRUMBLE			64
#define WEAPON_SKINDANCER		128
#define WEAPON_SUPERSPEED		256
#define WEAPON_MASTERMAGE		512
#define WEAPON_SOULJAR			1024
#define WEAPON_WEBBING			2048
#define WEAPON_ARMOR			4096
#define WEAPON_REDEEMER			8192
#define WEAPON_SPELLORB			16384
#define WEAPON_GAIAINQ			32768
#define WEAPON_BETRAYER                 65536
#define WEAPON_TATTOOED			131072
#define WEAPON_IKIRYU                   262144
#define WEAPON_GREMLIN                  524288
#define WEAPON_WRAITH                  1048576
#define WEAPON_EXPSPECIAL              2097152
#define WEAPON_WRAITHQUEST             4194304
#define WEAPON_BONDED		       8388608
#define WEAPON_NEPHED                 16777216
#define WEAPON_LORDLY                 33554432


/*
 * Spelltypes for mages.
 */
#define ST_MOB_MOB	      1
#define ST_OBJ_MOB	      2
#define ST_OBJ_OBJ	      3

/*
 * Advanced spells.
 */
#define ADV_DAMAGE	      1
#define ADV_AFFECT	      2
#define ADV_ACTION	      4
#define ADV_AREA_AFFECT       8
#define ADV_VICTIM_TARGET    16
#define ADV_OBJECT_TARGET    32
#define ADV_GLOBAL_TARGET    64
#define ADV_NEXT_PAGE       128
#define ADV_PARAMETER       256
#define ADV_SPELL_FIRST     512
#define ADV_NOT_CASTER     1024
#define ADV_NO_PLAYERS     2048
#define ADV_SECOND_VICTIM  4096
#define ADV_SECOND_OBJECT  8192
#define ADV_REVERSED      16384
#define ADV_STARTED	  32768
#define ADV_FINISHED	  65536
#define ADV_FAILED	 131072
#define ADV_MESSAGE_1	 262144
#define ADV_MESSAGE_2	 524288
#define ADV_MESSAGE_3	1048576
#define ADV_NOT_GROUP   2097152
#define ADV_AGGRAVATED	4194304

/*
 * Advanced spell actions.
 */
#define ACTION_NONE	      0
#define ACTION_MOVE	      1
#define ACTION_MOB	      2
#define ACTION_OBJECT	      3

/*
 * Advanced spell affects.
 */
#define ADV_STR			      1
#define ADV_DEX			      2
#define ADV_INT			      4
#define ADV_WIS			      8
#define ADV_CON			     16
#define ADV_SEX			     32
#define ADV_MANA		     64
#define ADV_HIT			    128
#define ADV_MOVE		    256
#define ADV_AC			    512
#define ADV_HITROLL		   1024
#define ADV_DAMROLL		   2048
#define ADV_SAVING_SPELL	   4096
#define ADV_DAMCAP		   8192


/* Colour scale macros - added 12th Aug 1995 by Calamar */

#define NO_COLOUR	""	/* Blank */
#define GREY		"[0;1;30m"	/* Dark Grey */
#define D_RED		"[0;0;31m"	/* Dark Red */
#define L_RED		"[0;1;31m"	/* Light Red */
#define D_GREEN		"[0;0;32m"	/* Dark Green */
#define L_GREEN		"[0;1;32m"	/* Light Green */
#define BROWN		"[0;0;33m"	/* Brown */
#define YELLOW		"[0;1;33m"	/* Yellow */
#define D_BLUE		"[0;0;34m"	/* Dark Blue */
#define L_BLUE		"[0;1;34m"	/* Light Blue */
#define MAGENTA		"[0;0;35m"	/* Magenta */
#define PINK		"[0;1;35m"	/* Pink */
#define D_CYAN		"[0;0;36m"	/* Dark Cyan */
#define L_CYAN		"[0;1;36m"	/* Light Cyan */
#define NORMAL		"[0;0;37m"	/* Light Grey */
#define WHITE		"[0;0;38m"	/* White */

#define ADD_COLOUR(_player,_str,_col) { int swh_len = strlen(_str) + 20; \
					char swh_temp[swh_len]; \
if (!IS_NPC(_player) && IS_SET(_player->act, PLR_ANSI)) {swh_temp[0] = '\0'; \
strcpy(swh_temp, _col); strcat(swh_temp, _str); strcat(swh_temp, NORMAL); \
strcpy(_str, swh_temp);}}

#define SCALE_COLS 4

#define COL_SCALE(_swh_str,_swh_ch,_swh_curr,_swh_max) \
	ADD_COLOUR(_swh_ch, _swh_str, \
	(_swh_curr < 1) ? L_RED : \
	(_swh_curr < _swh_max) ? \
	scale[(SCALE_COLS * _swh_curr) / ((_swh_max > 0) \
	? _swh_max : 1)] : L_CYAN)

extern char *scale[SCALE_COLS];

extern CHAR_DATA Score_ch;	/* Score_ch */

/*
 * File bits.
 */
#define FILE_PLAYER		      0
#define FILE_BACKUP1		      1
#define FILE_BACKUP2		      2
#define FILE_BACKUP3		      3
#define FILE_BACKUP4		      4
#define FILE_BACKUP5		      5

/*
 * Bits for 'vampire'.
 * Used for player vampires.
 */
#define VAM_FANGS		      1	/* Fangs currently extended */
#define VAM_CLAWS		      2	/* Protean level 2, claws extended */
#define VAM_NIGHTSIGHT		      4	/* Protean level 1, nightsight on */
#define VAM_FLYING		      8	/* Protean bat form */
#define VAM_SONIC		     16	/* Protean bat form */
#define VAM_CHANGED		     32	/* Protean powers level 4 and 5 */
#define VAM_SPIRITEYES		     64	/* Path of Spirit level 2 */
#define VAM_OBFUSCATE		    128	/* Concealed from sight */

#define VAM_DISGUISED		  16384	/* For the Obfuscate disguise ability */

#define VAM_EVILEYE		 131072	/* Path of Spirit level 1 */

#define VAM_EARTHMELDED		 524288	/* Protean level 3, in the ground */




/*
 * Absorbed things
 */
#define ABS_MOB_VNUM		      0	/* Vnum of Flesh Bonded mob */
#define ABS_MOB_HP		      1	/* Hp of Flesh Bonded mob */
#define ABS_MOB_MAX_HP		      2	/* Vnum of Object 1 */
#define ABS_CORPSE_HP		      3	/* Hp of Consumed corpse */
#define ABS_OBJ_1		      4	/* Vnum of Object 2 */
#define ABS_OBJ_2		      5	/* Vnum of Object 3 */


/*
 * Exercising
 */
#define EXE_TYPE		      0	/* Type of exercise */
#define EXE_POSITION		      1	/* Position - eg raised, lowered */
#define EXE_COUNT		      2	/* Counter until improvement */
#define EXE_RECOVER		      3	/* Duration until you recover */

#define EXE_NONE		      0	/* No exercise */
#define EXE_PUSHUPS		      1	/* +1 STR */
#define EXE_SKIPPING		      2	/* +1 DEX */
#define EXE_LEGRAISES		      3	/* +1 STA */

#define EXE_RAISED		      0	/* UP */
#define EXE_LOWERED		      1	/* DOWN */


/*
 * Bits for vicissitude body modifications.
 * Used for player vampires.
 */

#define MOD_TUSKS		      1	/* Large tusks */
#define MOD_HORNS		      2	/* Horns on head */
#define MOD_WINGS		      4	/* Wings */
#define MOD_UNFOLDED		      8	/* Wings are unfolded */
#define MOD_FINS		     16	/* Fins for swimming */
#define MOD_TAIL		     32	/* Tail, does nothing */
#define MOD_EXOSKELETON		     64	/* +10 STA, -10 DEX */
#define MOD_THIRD_ARM		    128
#define MOD_FOURTH_ARM		    256

/*
 * Bits for disciplines.
 * Used for player vampires.
 */

#define RES_ANIMALISM		      1
#define RES_AUSPEX		      2
#define RES_DOMINATE		      4
#define RES_PRESENCE		      8
#define RES_TOGGLE		     16
#define RES_CELERITY		     32

#define WILL_ANIMALISM		      1
#define WILL_AUSPEX		      2
#define WILL_DOMINATE		      3
#define WILL_PRESENCE		      4

#define CLAN_FIRST		      0
#define CLAN_SECOND		      1
#define CLAN_THIRD		      2

#define DISC_ANIMALISM		      0
#define DISC_AUSPEX		      1
#define DISC_CELERITY		      2
#define DISC_CHIMERSTRY		      3
#define DISC_DAIMOINON		      4
#define DISC_DOMINATE		      5
#define DISC_FORTITUDE		      6
#define DISC_MELPOMINEE		      7
#define DISC_NECROMANCY		      8
#define DISC_OBEAH		      9
#define DISC_OBFUSCATE		     10
#define DISC_OBTENEBRATION	     11
#define DISC_POTENCE		     12
#define DISC_PRESENCE		     13
#define DISC_PROTEAN		     14
#define DISC_QUIETUS		     15
#define DISC_SERPENTIS		     16
#define DISC_THANATOSIS		     17
#define DISC_THAUMATURGY	     18
#define DISC_VICISSITUDE	     19
#define DISC_MAX		     19

#define POW_NONE		      0
#define POW_ANIMALISM		      1
#define POW_AUSPEX		      2
#define POW_CELERITY		      4
#define POW_CHIMERSTRY		      8
#define POW_DAIMOINON		     16
#define POW_DOMINATE		     32
#define POW_FORTITUDE		     64
#define POW_MELPOMINEE		    128
#define POW_NECROMANCY		    256
#define POW_OBEAH		    512
#define POW_OBFUSCATE		   1024
#define POW_OBTENEBRATION	   2048
#define POW_POTENCE		   4096
#define POW_PRESENCE		   8192
#define POW_PROTEAN		  16384
#define POW_QUIETUS		  32768
#define POW_SERPENTIS		  65536
#define POW_THANATOSIS		 131072
#define POW_THAUMATURGY		 262144
#define POW_VICISSITUDE		 524288

#define COT_BANNED		      0	/* Min hp required */
#define COT_BASIC		      1	/* Disciplines at level 1+ */
#define COT_INTERMEDIATE	      2	/* Disciplines at level 3+ */
#define COT_ADVANCED		      3	/* Disciplines at level 5+ */
#define COT_EXPERT		      4	/* Disciplines at level 6+ */
#define COT_HP			      5	/* Min hp required */
#define COT_GENERATION		      6	/* Highest generation allowed */
#define COT_SKILL		      7	/* Min skill required */
#define COT_STANCE		      8	/* Min stance required */
#define COT_EXTRA		      9	/* Extra requirements */

#define COT_MAX			     11	/* Variable limit */

#define COT_ADV_STANCE		      1	/* Min stance must be advanced */
#define COT_GOLCONDA		      2	/* Must have attained Golconda */
#define COT_NO_DIABLERIE	      4	/* Must not commit diablerie */
#define COT_NO_KILL_SECT	      8	/* Must not kill member of same sect */
#define COT_NO_KILL_COTERIE	     16	/* Must not kill member of coterie */

#define BREED_HOMID		      0
#define BREED_LUPUS		      1
#define BREED_METIS		      2
#define BREED_MAX		      2

#define AUSPICE_RAGABASH	      0
#define AUSPICE_THEURGE		      1
#define AUSPICE_PHILODOX	      2
#define AUSPICE_GALLIARD	      3
#define AUSPICE_AHROUN		      4
#define AUSPICE_MAX		      4

#define TRIBE_BLACK_FURIES	      0
#define TRIBE_BONE_GNAWERS	      1
#define TRIBE_CHILDREN_OF_GAIA	      2
#define TRIBE_FIANNA		      3
#define TRIBE_GET_OF_FENRIS	      4
#define TRIBE_GLASS_WALKERS	      5
#define TRIBE_RED_TALONS	      6
#define TRIBE_SHADOW_LORDS	      7
#define TRIBE_SILENT_STRIDERS	      8
#define TRIBE_SILVER_FANGS	      9
#define TRIBE_STARGAZERS	      10
#define TRIBE_UKTENA		      11
#define TRIBE_WENDIGOS		      12
#define TRIBE_MAX		      12
//new tribes
#define TRIBE_CELERITY               0
#define TRIBE_POWER                  1
#define TRIBE_NATURE                 2
#define TRIBE_BEAST                  3
#define QUAL_QPOINTS                 4
#define QUAL_CELERITY                5
#define QUAL_POWER                   6
#define QUAL_NATURE                  7
#define QUAL_BEAST                   8
/*
 * Vampiric Rituals.
 */
#define R1			      	0	/* Rituals level 1 */
#define R2			      	1	/* Rituals level 2 */
#define R3			      	2	/* Rituals level 3 */
#define R4			   	3	/* Rituals level 4 */
#define R5			      	4	/* Rituals level 5 */
#define R6			      	5	/* Rituals level 6 */

#define R7			      	6	/* Rituals level 7 */	//Ritual Being Performed
#define R8			      	7	/* Rituals level 8 */	//Ritual Timer
#define R9			      	8	/* Rituals level 9 */	//Ritual Casting Time
#define R10			      	9 /* Rituals level 10 */	//Nephandi Rituals

#define R1_DEFENCE_HAVEN	      	1	/* Defence of Sacred Haven */
#define R1_WAKE_FRESHNESS	      	2	/* Wake with Morning's Freshness */
#define R1_DEFLECTION_DOOM	      	4	/* Deflection of Wooden Doom */
#define R1_DEVILS_TOUCH		     	8	/* Devil's Touch */
#define R1_ENGAGING_VESSEL	     	16	/* Engaging Vessel of Transferance */
#define R1_BLOOD_RUSH		     	32	/* Blood Rush */

#define R2_WARD_GHOULS		      	1	/* Ward vs Ghouls */

#define R3_WARD_LUPINES		      	1	/* Ward vs Lupines */

#define R4_WARD_KINDRED		      	1	/* Ward vs Kindred */

#define R5_WARD_SPIRITS		      	1	/* Ward vs Spirits */

#define R6_RAISE_DEAD		      	1	/* Raise the Dead */

#define R7_CURSE		      	1
#define R7_SOULBIND		      	2
#define R7_PLAGUE		      	3
#define R7_FURY 		      	4
#define R7_STORM		      	5
#define R7_XAPHAN                       6

#define ANY_SOUL		      	0
#define GOOD_SOUL		      	1
#define NEUTRAL_SOUL		      	2
#define EVIL_SOUL		      	3

/*
 * World affect bits.
 */
#define WORLD_FOG		      	1
#define WORLD_RAIN		      	2
#define WORLD_ECLIPSE		      	4
#define WORLD_NICE		      	8	/* No swearing while frenzied */
#define WORLD_DOUBLEXP		      	16
#define WORLD_DOUBLEDAMCAP	      	32
#define WORLD_DOUBLECREDITS	      	64
#define WORLD_ARMAGEDDON	     	128
#define WORLD_AUTOCOPY		      	256
#define WORLD_HALFEXP		      	512
#define WORLD_HALFDAMCAP	      	1024
#define WORLD_HALFCREDITS	      	2048
#define WORLD_DOUBLETRAIN	      	4096
#define WORLD_HALFTRAIN		      	8192
#define WORLD_WIZLOCK		      	16384
#define WORLD_HELLSTORM		      	32768
#define WORLD_ROYALRUMBLE		65536
#define WORLD_NOSAFESTATUS              131072
#define WORLD_PANDDEMON                 262144
#define WORLD_DAMAGEEQUALIZER           524288
/*
 * Bits for blood.
 * Used for player vampires.
 */
#define BLOOD_CURRENT		      	0
#define BLOOD_POOL		      	1
#define BLOOD_POTENCY		      	2



/*
 * Bits for werewolf forms.
 */
#define FORM_HOMID		      	1
#define FORM_GLABRO		      	2
#define FORM_CRINOS		      	3
#define FORM_HISPO		      	4
#define FORM_LUPUS		      	5



/*
 * Bits for 'polymorph'.
 * Used for players.
 */
#define POLY_BAT		      	1
#define POLY_WOLF		      	2
#define POLY_MIST		      	4
#define POLY_SERPENT		      	8
#define POLY_RAVEN		     	16
#define POLY_FISH		     	32
#define POLY_FROG		     	64
#define POLY_ZULO		    	128
#define POLY_SHADOW		    	256
#define POLY_SPIRIT		    	512
#define POLY_MASK		   	1024	/* Vicissitude 3 */
#define POLY_TRUE		   	2048	/* Chimerstry 6 */
#define POLY_HAGS		   	4096	/* Thanatosis 1 */
#define POLY_CHANGELING		   	8192	/* Vicissitude 1 */
#define POLY_FLESHCRAFT		  	16384	/* Vicissitude 2 */
#define POLY_BONECRAFT		  	32768	/* Vicissitude 3 */
#define POLY_DRAGONFORM		  	65536
#define POLY_DEMONFORM		 	131072
#define POLY_DJINNFORM		 	262144
#define POLY_KAHNFORM		 	524288
#define POLY_NINJAFORM			1048576
#define POLY_WRAITHFORM			2097152
#define POLY_WWZULO			4194304
#define POLY_ANGELFORM			8388608
#define POLY_BSDFORM	       		16777216
#define POLY_RAKSHASA	       		33554432
#define POLY_DRACOFORM	       		67108864
#define POLY_ELFFORM			134217728
#define POLY_SAINTFORM			268435456
#define POLY_TIGERFORM			536870912
#define POLY_MASTERFORM			1073741824


/*
 * Languages.
 */
#define LANG_COMMON		      	0
#define DIA_OLDE		      	1
#define DIA_BAD			      	2
#define LANG_DARK		      	4



/*
 * Score.
 */
#define SCORE_TOTAL_XP		      	0
#define SCORE_HIGH_XP		      	1
#define SCORE_TOTAL_LEVEL	      	2
#define SCORE_HIGH_LEVEL	      	3
#define SCORE_QUEST		      	4
#define SCORE_NUM_QUEST		      	5



/*
 * Zombie Lord.
 */
#define ZOMBIE_NOTHING		      	0
#define ZOMBIE_TRACKING		      	1
#define ZOMBIE_ANIMATE		      	2
#define ZOMBIE_CAST		      	3
#define ZOMBIE_REST		      	4



/*
 * Damcap values.
 */
#define DAM_CAP		      		0
#define DAM_CHANGE	      		1

/*
 * Bits for Demonic Champions.
 */
#define POWER_CURRENT		      	0
#define POWER_TOTAL		      	1

#define C_POWERS		      	1
#define C_CURRENT		      	2
#define C_HEAD			      	3
#define C_TAIL			     	4
#define O_POWERS		      	5

#define DEM_UNFOLDED		      	1

#define DEM_FANGS		      	1
#define DEM_CLAWS		      	2
#define DEM_DEMONFORM		      	4
#define DEM_HOOVES		      	8
#define DEM_EYES		     	16
#define DEM_WINGS		     	32
#define DEM_MIGHT		     	64
#define DEM_TOUGH		    	128
#define DEM_SPEED		    	256
#define DEM_TRAVEL		    	512
#define DEM_SCRY		   	1024
#define DEM_SHADOWSIGHT		   	2048
#define DEM_INFERNO		   	4096
#define DEM_EYESPY		   	8192
#define DEM_FIREWALL		  	16384
#define DEM_IMP			  	32768
#define DEM_TENTACLE			65536
#define DEM_LIGHTBALLS			131072
#define DEM_FLAMEBLADE			262144
#define DEM_PYRO			534388
#define DEM_EXPLODEBOLT			1068776
#define DEM_FIREBOLT			2137552


#define HEAD_NORMAL		      	0
#define HEAD_WOLF		      	1
#define HEAD_EAGLE		      	2
#define HEAD_LION		      	4
#define HEAD_SNAKE		      	8

#define TAIL_NONE		      	0
#define TAIL_POISONOUS		      	1
#define TAIL_SCORPION		      	2

#define DEM_MOVE		      	1	/* Can roll as an object */
#define DEM_LEAP		      	2	/* Can leap out of someone's hands */
#define DEM_MAGIC		      	4	/* Can cast spells as an object */
#define DEM_LIFESPAN		      	8	/* Can change lifespan */
#define DEM_HELLFIRE		     	16
#define DEM_GHOSTSIGHT		     	32

#define HFIRE_DEF			0
#define HFIRE_PC			1
#define HFIRE_NPC			2


/*
 * Bits for Demonic Armour.
 */
#define ARM_BLACK		      	0
#define ARM_GREY		      	1
#define ARM_PURPLE		      	2
#define ARM_RED			      	3
#define ARM_BRASS		      	4
#define ARM_BONE		      	5


/*
 * Bits for Angelic Armour.
 */
#define ARM_WHITE		      	0
#define ARM_YELLOW		      	1
#define ARM_BLUE		      	2
#define ARM_SILVER		      	3
#define ARM_GOLD		      	4



/*
 * Mounts
 */
#define IS_ON_FOOT		      	0
#define IS_MOUNT		      	1
#define IS_RIDING		      	2
#define IS_CARRIED		      	4
#define IS_CARRYING		      	8



/*
 * Embrace positions.
 */
#define ARE_NONE		      	0
#define ARE_EMBRACING		      	1
#define ARE_EMBRACED		      	2



/*
 * Sex.
 * Used in #MOBILES.
 */
#define SEX_NEUTRAL		      	0
#define SEX_MALE		      	1
#define SEX_FEMALE		      	2



/*
 * Well known object virtual numbers.
 * Defined in #OBJECTS.
 */
#define OBJ_VNUM_MONEY_ONE	      	2
#define OBJ_VNUM_MONEY_SOME	      	3
#define OBJ_VNUM_ANGELICSWORD	      	6401
#define OBJ_VNUM_CORPSE_NPC	     	10
#define OBJ_VNUM_CORPSE_PC	     	11
#define OBJ_VNUM_SEVERED_HEAD	     	12
#define OBJ_VNUM_TORN_HEART	     	13
#define OBJ_VNUM_SLICED_ARM	     	14
#define OBJ_VNUM_SLICED_LEG	     	15
#define OBJ_VNUM_FINAL_TURD	     	16

#define OBJ_VNUM_MUSHROOM	     	20
#define OBJ_VNUM_LIGHT_BALL	     	21
#define OBJ_VNUM_SPRING		     	22
#define OBJ_VNUM_BLOOD_SPRING	     	23

#define OBJ_VNUM_SCHOOL_MACE	   	3700
#define OBJ_VNUM_SCHOOL_DAGGER	   	3701
#define OBJ_VNUM_SCHOOL_SWORD	   	3702
#define OBJ_VNUM_SCHOOL_VEST	   	3703
#define OBJ_VNUM_SCHOOL_SHIELD	   	3704
#define OBJ_VNUM_SCHOOL_BANNER     	3716

/* For KaVir's stuff */
#define OBJ_VNUM_SOULBLADE	  	30000
#define OBJ_VNUM_PORTAL		  	30001
#define OBJ_VNUM_EGG		  	30002
#define OBJ_VNUM_EMPTY_EGG	  	30003
#define OBJ_VNUM_SPILLED_ENTRAILS 	30004
#define OBJ_VNUM_QUIVERING_BRAIN  	30005
#define OBJ_VNUM_SQUIDGY_EYEBALL  	30006
#define OBJ_VNUM_SPILT_BLOOD      	30007
#define OBJ_VNUM_VOODOO_DOLL      	30010
#define OBJ_VNUM_RIPPED_FACE      	30012
#define OBJ_VNUM_TORN_WINDPIPE    	30013
#define OBJ_VNUM_CRACKED_HEAD     	30014
#define OBJ_VNUM_SLICED_EAR	  	30025
#define OBJ_VNUM_SLICED_NOSE	  	30026
#define OBJ_VNUM_KNOCKED_TOOTH	  	30027
#define OBJ_VNUM_TORN_TONGUE	  	30028
#define OBJ_VNUM_SEVERED_HAND	  	30029
#define OBJ_VNUM_SEVERED_FOOT	  	30030
#define OBJ_VNUM_SEVERED_THUMB	  	30031
#define OBJ_VNUM_SEVERED_INDEX	  	30032
#define OBJ_VNUM_SEVERED_MIDDLE	  	30033
#define OBJ_VNUM_SEVERED_RING	  	30034
#define OBJ_VNUM_SEVERED_LITTLE	  	30035
#define OBJ_VNUM_SEVERED_TOE	  	30036
#define OBJ_VNUM_PROTOPLASM	  	30037
#define OBJ_VNUM_QUESTCARD	  	30039
#define OBJ_VNUM_QUESTMACHINE	  	30040
#define OBJ_VNUM_ASHES            	30042
#define MOB_VNUM_HOUND		  	30000
#define MOB_VNUM_GUARDIAN	  	30001
#define MOB_VNUM_MOUNT		  	30006
#define MOB_VNUM_FROG		  	30007
#define MOB_VNUM_RAVEN		  	30008
#define MOB_VNUM_CAT		  	30009
#define MOB_VNUM_DOG		  	30010
#define MOB_VNUM_EYE		  	30012
#define MOB_VNUM_MOLERAT	  	30013
#define MOB_VNUM_YAK		  	30014
#define MOB_VNUM_ASTRAL		  	30015
#define MOB_VNUM_CLONE		  	30016
#define OBJ_VNUM_QUEST_MIN	   	9425
#define OBJ_VNUM_QUEST_MAX	   	9435
#define OBJ_VNUM_LAMP		  	30043
#define OBJ_ODIN_RUNE		     	24

/*
 * Highlanders.
 */
#define HPOWERS				0
#define HCOMBO_1                        1
#define HCOMBO_2                        2
#define HCOMBO_3                        3
#define HCOMBO_4                        4
#define HCOMBO_5                        5
#define HCOMBO_6                        6

#define HLP_ORB                         1
#define HLP_TRUESIGHT                   2
#define HLP_SCRY                        4

DECLARE_DO_FUN (do_timewalk);
DECLARE_DO_FUN (do_techniques);
DECLARE_DO_FUN (do_upgrade);
DECLARE_DO_FUN (do_chaosshield);
DECLARE_DO_FUN (do_counter);
DECLARE_DO_FUN (do_hlpowers);
DECLARE_DO_FUN (do_illusion);
DECLARE_DO_FUN (do_katana);



DECLARE_DO_FUN (do_talent);
DECLARE_DO_FUN (do_hymn);
DECLARE_DO_FUN (do_wbond);
DECLARE_DO_FUN (do_mbarrier);
DECLARE_DO_FUN (do_hlsharpen);
DECLARE_DO_FUN (do_feelaura);
DECLARE_DO_FUN (do_awareness);
DECLARE_DO_FUN (do_hightalk);
DECLARE_DO_FUN (do_hlgain);
DECLARE_DO_FUN (do_axekick);
DECLARE_DO_FUN (do_lowslice);
DECLARE_DO_FUN (do_facestab);
DECLARE_DO_FUN (do_highslash);
DECLARE_DO_FUN (do_whipslash);
DECLARE_DO_FUN (do_crosscut);
DECLARE_DO_FUN (do_swordthrust);
DECLARE_DO_FUN (do_sideswipe);
DECLARE_DO_FUN (do_hiltsmash);
DECLARE_DO_FUN (do_cleave);
DECLARE_DO_FUN (do_backslash);
DECLARE_DO_FUN (do_downstab);
DECLARE_DO_FUN (do_neckslice);
DECLARE_DO_FUN (do_focus);
DECLARE_DO_FUN (do_sanctify);
DECLARE_DO_FUN (do_checkfocus);
DECLARE_DO_FUN (do_mform);



/*
 * Item types.
 * Used in #OBJECTS.
 */

#define ITEM_LIGHT		      	1
#define ITEM_SCROLL		      	2
#define ITEM_WAND		      	3
#define ITEM_STAFF		      	4
#define ITEM_WEAPON		      	5
#define ITEM_TREASURE		      	8
#define ITEM_ARMOR		      	9
#define ITEM_POTION		     	10
#define ITEM_FURNITURE		     	12
#define ITEM_TRASH		     	13
#define ITEM_CONTAINER		     	15
#define ITEM_DRINK_CON		     	17
#define ITEM_KEY		     	18
#define ITEM_FOOD		     	19
#define ITEM_MONEY		     	20
#define ITEM_BOAT		     	22
#define ITEM_CORPSE_NPC		     	23
#define ITEM_CORPSE_PC		     	24
#define ITEM_FOUNTAIN		     	25
#define ITEM_PILL		     	26
#define ITEM_PORTAL		     	27
#define ITEM_EGG		     	28
#define ITEM_VOODOO		     	29
#define ITEM_STAKE		     	30
#define ITEM_MISSILE		     	31	/* Ammo vnum, cur, max, type */
#define ITEM_AMMO		     	32	/* ???, dam min, dam max, type */
#define ITEM_QUEST		     	33
#define ITEM_QUESTCARD		     	34
#define ITEM_QUESTMACHINE	     	35
#define ITEM_SYMBOL		     	36
#define ITEM_BOOK		     	37
#define ITEM_PAGE		     	38
#define ITEM_TOOL		     	39
#define ITEM_WALL		     	40	/* For wall of water */
#define ITEM_WARD		     	41	/* For ritual wards */
#define ITEM_WGATE	     	     	42
#define ITEM_DPTOKEN	     	     	43
#define ITEM_EQUEST		     	44
#define ITEM_DRAGONGEM		     	45
#define ITEM_MASTERY		     	46
#define ITEM_RESOURCE		     	47
#define ITEM_CREATURE		     	48
#define ITEM_TRIFORCE		     	49
#define ITEM_PIECE		     	50
#define ITEM_EXP		     	51
#define ITEM_CRYSTAL		     	52
#define ITEM_SPECIAL		     	53
#define ITEM_QUIVER			54
#define ITEM_BOW			55
#define ITEM_ARROW			56
#define ITEM_SCRYBOWL			57
#define ITEM_TICKET                     58
#define ITEM_BOMB                       59

/*
 * Extra flags.
 * Used in #OBJECTS.
 */

#define ITEM_GLOW		      	1
#define ITEM_HUM		      	2
#define ITEM_THROWN		      	4
#define ITEM_KEEP		      	8
#define ITEM_VANISH		     	16	/* Illusion created by Chimerstry */
#define ITEM_INVIS		     	32
#define ITEM_MAGIC		     	64
#define ITEM_NODROP		    	128
#define ITEM_BLESS		    	256
#define ITEM_ANTI_GOOD		    	512
#define ITEM_ANTI_EVIL		   	1024
#define ITEM_ANTI_NEUTRAL	   	2048
#define ITEM_NOREMOVE		   	4096
#define ITEM_INVENTORY		   	8192
#define ITEM_LOYAL		  	16384
#define ITEM_SHADOWPLANE	  	32768
#define ITEM_TWOHAND              	65536
#define ITEM_TRIFORCE_ONE         	131072
#define ITEM_TRIFORCE_TWO         	262144
#define ITEM_TRIFORCE_THREE       	524288
#define ITEM_TRIFORCE_ORIG	  	1048576
#define ITEM_QUESTITEM		  	2097152
#define ITEM_DEATHPLANE		  	4194304
#define ITEM_NOSUMMON			8388608
#define ITEM_NOLOCATE			16777216
#define ITEM_BROKEN			33554432


/*
 * Wear flags.
 * Used in #OBJECTS.
 */
#define ITEM_TAKE		      	1
#define ITEM_WEAR_FINGER	      	2
#define ITEM_WEAR_NECK		      	4
#define ITEM_WEAR_BODY		      	8
#define ITEM_WEAR_HEAD		      	16
#define ITEM_WEAR_LEGS		      	32
#define ITEM_WEAR_FEET		      	64
#define ITEM_WEAR_HANDS		   	128
#define ITEM_WEAR_ARMS		   	256
#define ITEM_WEAR_SHIELD	    	512
#define ITEM_WEAR_ABOUT		   	1024
#define ITEM_WEAR_WAIST		   	2048
#define ITEM_WEAR_WRIST		   	4096
#define ITEM_WIELD		   	8192
#define ITEM_HOLD		  	16384
#define ITEM_WEAR_FACE		  	32768
#define ITEM_WEAR_SPECIAL	  	65536
#define ITEM_WEAR_QUIVER	 	131072
#define ITEM_WEAR_EAR		 	262144
#define ITEM_WEAR_SHIN		 	524288
#define ITEM_WEAR_KNEE		 	1048576	
#define ITEM_WEAR_ELBOW			2097152
#define ITEM_WEAR_SHOULDER		4194304
#define ITEM_WEAR_CROWN			8388608
#define ITEM_WEAR_TATTOO		16777216



/*
 * Special types.
 * Used in #OBJECTS for special items - KaVir.
 */
#define SITEM_ACTIVATE		        1
#define SITEM_TWIST		        2
#define SITEM_PRESS		        4
#define SITEM_PULL		        8
#define SITEM_TARGET		       16
#define SITEM_SPELL		       32
#define SITEM_TRANSPORTER	       64
#define SITEM_TELEPORTER	      128
#define SITEM_DELAY1		      256
#define SITEM_DELAY2		      512
#define SITEM_OBJECT		     1024
#define SITEM_MOBILE		     2048
#define SITEM_ACTION		     4096
#define SITEM_MORPH		     8192
#define SITEM_SILVER		    16384
#define SITEM_WOLFWEAPON	    32768
#define SITEM_FREE		    65536
#define SITEM_CHAMPWEAPON	   131072
#define SITEM_DEMONIC		   262144
#define SITEM_HIGHLANDER	   524288
#define SITEM_MESSAGE		  1048576
#define SITEM_DRAGON		  2097152
#define SITEM_MASTERY		  4194304
#define SITEM_GAIATOUCHED	  8388608
#define SITEM_LEGEND		 16777216
#define SITEM_MAGE		 33554432
#define SITEM_DJINN		 67108864
#define SITEM_NINJA		134217728
#define SITEM_PLANARTOUCHED     268435456
#define SITEM_WISHENCHANT       536870912
#define SITEM_ELF              1073741824
/*
 * Apply types (for quest affects).
 * Used in #OBJECTS.
 */
#define QUEST_STR		      1
#define QUEST_DEX		      2
#define QUEST_INT		      4
#define QUEST_WIS		      8
#define QUEST_CON		     16
#define QUEST_HITROLL		     32
#define QUEST_DAMROLL		     64
#define QUEST_HIT		    128
#define QUEST_MANA		    256
#define QUEST_MOVE		    512
#define QUEST_AC		   1024
#define QUEST_NAME		   2048
#define QUEST_SHORT		   4096
#define QUEST_LONG		   8192
#define QUEST_FREENAME		  16384
#define QUEST_ENCHANTED		  32768
#define QUEST_SPELLPROOF	  65536
#define QUEST_ARTIFACT		 131072
#define QUEST_IMPROVED		 262144
#define QUEST_MASTER_RUNE	 524288
#define QUEST_RELIC		1048576
#define QUEST_VANISH		2097152	/* Object that doesn't save */
#define QUEST_BLOODAGONY	4194304	/* Quietus level 4 */
#define QUEST_SONG		8388608	/* Object contains a song */
#define QUEST_CONJURED	       16777216	/* Object was conjured */
#define QUEST_FOLLOWING	       33554432	/* Object follows owner */
#define QUEST_MAGEENCHANT      67108864
#define QUEST_HL              134217728
#define QUEST_DAMCAP	      268435456
#define QUEST_SHARPEN	      536870912
#define QUEST_TEMPERED	     1073741824

/*
 * Qstats.
 */
#define QS_TOTAL		      0
#define QS_HIT			      1
#define QS_DAM			      2
#define QS_AC			      3

#define QS_11			      0
#define QS_12			      1
#define QS_13			      2
#define QS_14			      3
#define QS_15			      4

#define QS_DONE			      1	/* Stance is usable */
#define QS_HIT_LESSER		      2
#define QS_HIT_GREATER		      4
#define QS_HIT_SUPREME		      8
#define QS_DAM_LESSER		     16
#define QS_DAM_GREATER		     32
#define QS_DAM_SUPREME		     64
#define QS_ARM_LESSER		    128
#define QS_ARM_GREATER		    256
#define QS_ARM_SUPREME		    512
#define QS_POW_LESSER		   1024
#define QS_POW_GREATER		   2048
#define QS_POW_SUPREME		   4096
#define QS_RES_LESSER		   8192
#define QS_RES_GREATER		  16384
#define QS_RES_SUPREME		  32768
#define QS_SUPER_PARRY		  65536
#define QS_SUPER_DODGE		 131072
#define QS_SUPER_SPEED		 262144
#define QS_SUPER_BYPASS		 524288


/*
 * Tool types.
 */
#define TOOL_PEN		      1
#define TOOL_PLIERS		      2
#define TOOL_SCALPEL		      4



/*
 * Apply types (for affects).
 * Used in #OBJECTS.
 */
#define APPLY_NONE		      0
#define APPLY_STR		      1
#define APPLY_DEX		      2
#define APPLY_INT		      3
#define APPLY_WIS		      4
#define APPLY_CON		      5
#define APPLY_SEX		      6
#define APPLY_CLASS		      7
#define APPLY_LEVEL		      8
#define APPLY_AGE		      9
#define APPLY_HEIGHT		     10
#define APPLY_WEIGHT		     11
#define APPLY_MANA		     12
#define APPLY_HIT		     13
#define APPLY_MOVE		     14
#define APPLY_GOLD		     15
#define APPLY_EXP		     16
#define APPLY_AC		     17
#define APPLY_HITROLL		     18
#define APPLY_DAMROLL		     19
#define APPLY_SAVING_PARA	     20
#define APPLY_SAVING_ROD	     21
#define APPLY_SAVING_PETRI	     22
#define APPLY_SAVING_BREATH	     23
#define APPLY_SAVING_SPELL	     24
#define APPLY_POLY		     25
#define APPLY_GENERATION	     26
#define APPLY_POTENCE		     27
#define APPLY_CELERITY		     28
#define APPLY_FORTITUDE		     29
#define APPLY_BLOOD_MAX		     30
#define APPLY_BLOOD_POT		     31
#define APPLY_ANIMALISM		     32
#define APPLY_AUSPEX		     33
#define APPLY_CHIMERSTRY	     34
#define APPLY_DAIMOINON		     35
#define APPLY_DOMINATE		     36
#define APPLY_MELPOMINEE	     37
#define APPLY_NECROMANCY	     38
#define APPLY_OBEAH		     39
#define APPLY_OBFUSCATE		     40
#define APPLY_OBTENEBRATION	     41
#define APPLY_PRESENCE		     42
#define APPLY_PROTEAN		     43
#define APPLY_QUIETUS		     44
#define APPLY_SERPENTIS		     45
#define APPLY_THANATOSIS	     46
#define APPLY_THAUMATURGY	     47
#define APPLY_VICISSITUDE	     48
#define APPLY_SET_ANIMALISM	     49	/* SET_ are set rather than added */
#define APPLY_SET_AUSPEX	     50
#define APPLY_SET_CELERITY	     51
#define APPLY_SET_CHIMERSTRY	     52
#define APPLY_SET_DAIMOINON	     53
#define APPLY_SET_DOMINATE	     54
#define APPLY_SET_FORTITUDE	     55
#define APPLY_SET_MELPOMINEE	     56
#define APPLY_SET_NECROMANCY	     57
#define APPLY_SET_OBEAH		     58
#define APPLY_SET_OBFUSCATE	     59
#define APPLY_SET_OBTENEBRATION      60
#define APPLY_SET_POTENCE	     61
#define APPLY_SET_PRESENCE	     62
#define APPLY_SET_PROTEAN	     63
#define APPLY_SET_QUIETUS	     64
#define APPLY_SET_SERPENTIS	     65
#define APPLY_SET_THANATOSIS	     66
#define APPLY_SET_THAUMATURGY	     67
#define APPLY_SET_VICISSITUDE	     68
#define APPLY_DAMCAP		     69
#define APPLY_MAGIC_RESISTANCE	     70


/*
 * Values for containers (value[1]).
 * Used in #OBJECTS.
 */
#define CONT_CLOSEABLE		      1
#define CONT_PICKPROOF		      2
#define CONT_CLOSED		      4
#define CONT_LOCKED		      8



/*
 * Well known room virtual numbers.
 * Defined in #ROOMS.
 */
#define ROOM_VNUM_LIMBO		      2
#define ROOM_VNUM_COPYOVER	      3
#define ROOM_VNUM_LIMBO2	      4
#define ROOM_VNUM_CHAT		   1200
#define ROOM_VNUM_TEMPLE	   3001
#define ROOM_VNUM_ALTAR		   3054
#define ROOM_VNUM_SCHOOL	   3700
#define ROOM_VNUM_HELL		  45501
#define ROOM_VNUM_CRYPT		  30001
#define ROOM_VNUM_DISCONNECTION	  30002
#define ROOM_VNUM_IN_OBJECT	  30008
#define ROOM_VNUM_HEAVEN	  45601


/*
 * Room flags.
 * Used in #ROOMS.
 */
#define ROOM_DARK		      1
#define ROOM_NO_MOB		      4
#define ROOM_INDOORS		      8
#define ROOM_PRIVATE		    512
#define ROOM_SAFE		   1024
#define ROOM_SOLITARY		   2048
#define ROOM_PET_SHOP		   4096
#define ROOM_NO_RECALL		   8192
#define ROOM_NO_TELEPORT	  16384
#define ROOM_TOTAL_DARKNESS	  32768
#define ROOM_DJINN_DARKNESS	  65536
#define ROOM_SILENCE		 131072
#define ROOM_NO_TRAVEL		 262144


#define ROOM2_SILENCE		      1
#define ROOM2_TIMESLOW		      2	/* Temporis */
#define ROOM2_CALTROPS		      4
#define ROOM2_WARDVSVAMP              8 /*Reverett - wards vs vamps*/
#define ROOM2_WARDVSWOLF             16 /*Reverett - wards vs werewolfs*/
#define ROOM2_WARDVSDEMON            32 /*Reverett - wards vs demons */
#define ROOM2_WARDVSMAGIC            64 /*Reverett - wards vs magic */
#define ROOM2_WARDVSANGEL           128 /*Reverett - wards vs angels */
#define ROOM2_WARDVSDRAC            256 /*Reverett - wards vs draconians/dragons*/
#define ROOM2_LICHCIRCLE            512 /*Reverett - lichs blood circle */
#define ROOM2_LICHCIRCLE2          1024 /*Reverett - lich circle upgrade */
#define ROOM2_LICHCIRCLE3          2048 /*Reverett - lich circle upgrade */
#define ROOM2_LICHCIRCLE4          4096 /*Reverett - lich circle upgrade */
#define ROOM2_TEMPEST              8192 /*Reverett - Wraith room slow */
#define ROOM2_EXPSPECIAL          16384 
#define ROOM2_BLOODRUSH           32768
#define ROOM2_CMIST               65536 /*celestial mist*/
#define ROOM2_WARDVSGHOSTS       131072 /*Reverett - Ward versus ghosts*/
/*
 * Room text flags (KaVir).
 * Used in #ROOMS.
 */
#define RT_LIGHTS		      1	/* Toggles lights on/off */
#define RT_SAY			      2	/* Use this if no others powers */
#define RT_ENTER		      4
#define RT_CAST			      8
#define RT_THROWOUT		     16	/* Erm...can't remember ;) */
#define RT_OBJECT		     32	/* Creates an object */
#define RT_MOBILE		     64	/* Creates a mobile */
#define RT_LIGHT		    128	/* Lights on ONLY */
#define RT_DARK			    256	/* Lights off ONLY */
#define RT_OPEN_LIFT		    512	/* Open lift */
#define RT_CLOSE_LIFT		   1024	/* Close lift */
#define RT_MOVE_LIFT		   2048	/* Move lift */
#define RT_SPELL		   4096	/* Cast a spell */
#define RT_PORTAL		   8192	/* Creates a one-way portal */
#define RT_TELEPORT		  16384	/* Teleport player to room */

#define RT_ACTION		  32768
#define RT_BLANK_1		  65536
#define RT_BLANK_2		 131072
#define RT_ASSASSIN              262144
#define RT_RETURN		1048576	/* Perform once */
#define RT_PERSONAL		2097152	/* Only shows message to char */
#define RT_TIMER		4194304	/* Sets object timer to 1 tick */
//#define RT_ASSASSIN             8388608


/*
 * Directions.
 * Used in #ROOMS.
 */
#define DIR_NORTH		      0
#define DIR_EAST		      1
#define DIR_SOUTH		      2
#define DIR_WEST		      3
#define DIR_UP			      4
#define DIR_DOWN		      5
#define MAX_DIR			      6	/* OLC */



/*
 * Exit flags.
 * Used in #ROOMS.
 */
#define EX_ISDOOR		      1
#define EX_CLOSED		      2
#define EX_LOCKED		      4
#define EX_BASHPROOF		      8	/* KaVir */
#define EX_BASHED		     16	/* KaVir */
#define EX_PICKPROOF		     32
#define EX_PASSPROOF		     64	/* KaVir */
#define EX_WALL_WATER		    128	/* KaVir - Path of Water power 4 */
#define EX_WARD_GHOULS		    256	/* KaVir - Ward vs Ghouls */
#define EX_WARD_LUPINES		    512	/* KaVir - Ward vs Lupines */
#define EX_WARD_KINDRED		   1024	/* KaVir - Ward vs Kindred */
#define EX_WARD_SPIRITS		   2048	/* KaVir - Ward vs Spirits */
#define EX_WALL_FLAME		   4096	/* KaVir - Path of Flame power 4 */
#define EX_WALL_GRANITE		   8192	/* KaVir - Philodox power 5 */
#define EX_DRAWBRIDGE             16384 /* reverett */
#define EX_BRIDPROTECT            32768 /*reverett*/
#define EX_TOWN_RANDOM            65536 // reverett
#define EX_PLAYERSCLUB           131072 // reverett
#define EX_STATUSBLOCK           262144 // reverett

/*
 * Sector types.
 * Used in #ROOMS.
 */
#define SECT_INSIDE		      0
#define SECT_CITY		      1
#define SECT_FIELD		      2
#define SECT_FOREST		      3
#define SECT_HILLS		      4
#define SECT_MOUNTAIN		      5
#define SECT_WATER_SWIM		      6
#define SECT_WATER_NOSWIM	      7
#define SECT_UNDERWATER		      8
#define SECT_AIR		      9
#define SECT_DESERT		     10
#define SECT_VALHALLA		     11
#define SECT_CLANHQ		     12
#define SECT_MAX		     13



/*
 * Equipment wear locations.
 * Used in #RESETS.
 */
#define WEAR_NONE		     -1
#define WEAR_LIGHT		      0
#define WEAR_FINGER_L		      1
#define WEAR_FINGER_R		      2
#define WEAR_FINGER_L_TWO	      3
#define WEAR_FINGER_R_TWO	      4
#define WEAR_NECK_1		      5
#define WEAR_NECK_2		      6
#define WEAR_BODY		      7
#define WEAR_HEAD		      8
#define WEAR_CROWN		      9
#define WEAR_LEGS		     10
#define WEAR_LEG_L		     11
#define WEAR_LEG_R		     12
#define WEAR_KNEE_L		     13
#define WEAR_KNEE_R		     14
#define WEAR_SHIN_L		     15
#define WEAR_SHIN_R		     16
#define WEAR_FEET		     17
#define WEAR_FOOT_L		     18
#define WEAR_FOOT_R		     19
#define WEAR_HANDS		     20
#define WEAR_HAND_L		     21
#define WEAR_HAND_R		     22
#define WEAR_HAND_L_TWO		     23
#define WEAR_HAND_R_TWO		     24
#define WEAR_ARMS		     25
#define WEAR_SHOULDER_L		     26
#define WEAR_SHOULDER_R		     27
#define WEAR_ARM_L		     28
#define WEAR_ARM_R		     29
#define WEAR_ELBOW_L		     30
#define WEAR_ELBOW_R		     31
#define WEAR_WRIST_L		     32
#define WEAR_WRIST_R		     33
#define WEAR_ARM_L_TWO		     34
#define WEAR_ARM_R_TWO		     35
#define WEAR_ELBOW_L_TWO	     36
#define WEAR_ELBOW_R_TWO	     37
#define WEAR_WRIST_L_TWO	     38
#define WEAR_WRIST_R_TWO	     39
#define WEAR_SHIELD		     40
#define WEAR_ABOUT		     41
#define WEAR_WAIST		     42
#define WEAR_WIELD		     43
#define WEAR_HOLD		     44
#define WEAR_THIRD_HAND		     45
#define WEAR_FOURTH_HAND	     46
#define WEAR_FACE		     47
#define WEAR_EAR_L		     48
#define WEAR_EAR_R		     49
#define WEAR_SCABBARD_L		     50
#define WEAR_SCABBARD_R		     51
#define WEAR_STAKE		     52
#define WEAR_MASTERY		     53
#define WEAR_SPECIAL		     54
#define WEAR_QUIVER		     55
#define WEAR_SCABBARD_BACK	     56
#define MAX_WEAR		     57




/*
 * Locations for damage.
 */
#define LOC_HEAD		      0
#define LOC_BODY		      1
#define LOC_ARM_L		      2
#define LOC_ARM_R		      3
#define LOC_LEG_L		      4
#define LOC_LEG_R		      5

/*
 * For Head
 */
#define LOST_EYE_L		       1
#define LOST_EYE_R		       2
#define LOST_EAR_L		       4
#define LOST_EAR_R		       8
#define LOST_NOSE		      16
#define BROKEN_NOSE		      32
#define BROKEN_JAW		      64
#define BROKEN_SKULL		     128
#define LOST_HEAD		     256
#define LOST_TOOTH_1		     512	/* These should be added..... */
#define LOST_TOOTH_2		    1024	/* ...together to caculate... */
#define LOST_TOOTH_4		    2048	/* ...the total number of.... */
#define LOST_TOOTH_8		    4096	/* ...teeth lost.  Total..... */
#define LOST_TOOTH_16		    8192	/* ...possible is 31 teeth.   */
#define LOST_TONGUE		   16384

/*
 * For Body
 */
#define BROKEN_RIBS_1		       1	/* Remember there are a total */
#define BROKEN_RIBS_2		       2	/* of 12 pairs of ribs in the */
#define BROKEN_RIBS_4		       4	/* human body, so not all of  */
#define BROKEN_RIBS_8		       8	/* these bits should be set   */
#define BROKEN_RIBS_16		      16	/* at the same time.          */
#define BROKEN_SPINE		      32
#define BROKEN_NECK		      64
#define CUT_THROAT		     128
#define CUT_STOMACH		     256
#define CUT_CHEST		     512
#define LOST_ENTRAILS		    1024

/*
 * For Arms
 */
#define BROKEN_ARM		       1
#define LOST_ARM		       2
#define LOST_HAND		       4
#define LOST_FINGER_I		       8	/* Index finger */
#define LOST_FINGER_M		      16	/* Middle finger */
#define LOST_FINGER_R		      32	/* Ring finger */
#define LOST_FINGER_L		      64	/* Little finger */
#define LOST_THUMB		     128
#define BROKEN_FINGER_I		     256	/* Index finger */
#define BROKEN_FINGER_M		     512	/* Middle finger */
#define BROKEN_FINGER_R		    1024	/* Ring finger */
#define BROKEN_FINGER_L		    2048	/* Little finger */
#define BROKEN_THUMB		    4096
#define SLIT_WRIST		    8192

/*
 * For Legs
 */
#define BROKEN_LEG		       1
#define LOST_LEG		       2
#define LOST_FOOT		       4
#define LOST_TOE_A		       8
#define LOST_TOE_B		      16
#define LOST_TOE_C		      32
#define LOST_TOE_D		      64	/* Smallest toe */
#define LOST_TOE_BIG		     128
#define BROKEN_TOE_A		     256
#define BROKEN_TOE_B		     512
#define BROKEN_TOE_C		    1024
#define BROKEN_TOE_D		    2048	/* Smallest toe */
#define BROKEN_TOE_BIG		    4096

/*
 * For Bleeding
 */
#define BLEEDING_HEAD		       1
#define BLEEDING_THROAT		       2
#define BLEEDING_ARM_L		       4
#define BLEEDING_ARM_R		       8
#define BLEEDING_HAND_L		      16
#define BLEEDING_HAND_R		      32
#define BLEEDING_LEG_L		      64
#define BLEEDING_LEG_R		     128
#define BLEEDING_FOOT_L		     256
#define BLEEDING_FOOT_R		     512
#define BLEEDING_WRIST_L	    1024
#define BLEEDING_WRIST_R	    2048
#define BLEEDING_STOMACH	    4096
#define BLEEDING_CHEST		    8192


/*
 * For Spec powers on players
 */
#define EYE_SPELL		       1	/* Spell when they look at you */
#define EYE_SELFACTION		       2	/* You do action when they look */
#define EYE_ACTION		       4	/* Others do action when they look */




/***************************************************************************
 *                                                                         *
 *                   VALUES OF INTEREST TO AREA BUILDERS                   *
 *                   (End of this section ... stop here)                   *
 *                                                                         *
 ***************************************************************************/

/*
 * Conditions.
 */
#define COND_DRUNK		      0
#define COND_FULL		      1
#define COND_THIRST		      2



/*
 * Stats - KaVir.
 */
#define STAT_STR		      0	/* Strength */
#define STAT_INT		      1	/* Intelligence */
#define STAT_WIS		      2	/* Wisdom */
#define STAT_DEX		      3	/* Dexterity */
#define STAT_CON		      4	/* Constitution */



/*
 * Positions.
 */
#define POS_DEAD		      0
#define POS_MORTAL		      1
#define POS_INCAP		      2
#define POS_STUNNED		      3
#define POS_SLEEPING		      4
#define POS_MEDITATING		      5
#define POS_SITTING		      6
#define POS_RESTING		      7
#define POS_FIGHTING		      8
#define POS_AGITATED		      9
#define POS_STANDING		      10



/*
 * ACT bits for players.
 */
#define PLR_IS_NPC		      1	/* Don't EVER set.      */
#define PLR_DEMON		      2
#define PLR_CHAMPION		      4
#define PLR_AUTOEXIT		      8
#define PLR_AUTOLOOT		     16
#define PLR_AUTOSAC                  32
#define PLR_BLANK		     64
#define PLR_BRIEF		    128
//#define 		    	    512 /* Not defined yet */
#define PLR_PROMPT		   1024
#define PLR_TELNET_GA		   2048
#define PLR_HOLYLIGHT		   4096
#define PLR_WIZINVIS		   8192
#define PLR_ANSI		  16384
#define	PLR_SILENCE		  32768
#define PLR_NO_EMOTE		  65536
#define PLR_NO_TELL		 262144
#define PLR_LOG			 524288
#define PLR_SHIELDS		1048576
#define PLR_FREEZE		2097152
#define PLR_WOLFMAN		4194304
#define PLR_WEREWOLF		8388608
#define PLR_WATCHER	       16777216
#define PLR_LAST_AGG	       33554432
#define PLR_MXP		       67108864
#define PLR_BRIEF2	      134217728
#define PLR_BRIEF3	      268435456
#define PLR_BRIEF4	      536870912
#define PLR_THIEF	     1073741824


/*
 * EXTRA bits for players. (KaVir)
 */
#define EXTRA_SIRE		      1
#define EXTRA_PRINCE		      2
#define EXTRA_TRUSTED		      4
#define EXTRA_NEWPASS		      8
#define EXTRA_OSWITCH		     16
#define EXTRA_SWITCH		     32
#define EXTRA_FAKE_CON		     64
#define TIED_UP			    128
#define GAGGED			    256
#define BLINDFOLDED		    512
#define EXTRA_PSAY		   1024
#define EXTRA_DONE		   2048
#define EXTRA_EXP		   4096
#define EXTRA_PREGNANT		   8192
#define EXTRA_LABOUR		  16384
#define EXTRA_BORN		  32768
#define EXTRA_PROMPT		  65536
#define EXTRA_MARRIED		 131072
#define EXTRA_DYING		 262144	/* You are about to die! */
#define EXTRA_NON_NEWBIE	 524288
#define EXTRA_CALL_ALL		1048576
#define EXTRA_CAN_SEE		2097152	/* You can't see, but familiar can */
#define EXTRA_CLEARED_EQ	4194304	/* Eq has been removed from player */
#define EXTRA_AWE		8388608	/* Everyone is in awe of you */
#define EXTRA_NO_ACTION	       16777216	/* You can't do anything */
#define EXTRA_ILLUSION	       33554432	/* Mob is really just an illusion */
#define EXTRA_VICISSITUDE      67108864	/* Cannot see through disguise */
#define EXTRA_INVIS_EMAIL     134217728	/* Cannot see email via finger */
#define EXTRA_INCOG           268435456
#define EXTRA_EXPLODE         536870912	/* Mob will explode on death */

/*
 * MORE bits for players. (KaVir)
 */
#define MORE_NPC		      1	/* NPC - ie cannot improve */
#define MORE_ANTITRIBU		      2	/* Antitribu vampire */
#define MORE_MUMMIFIED		      4	/* Serpentis 3 */
#define MORE_DARKNESS		      8	/* Obtenebration 1 */
#define MORE_SILENCE		     16	/* Quietus 1 */
#define MORE_PLASMA		     32	/* Vicissitude 5 */
#define MORE_ASHES		     64	/* Thanatosis 3 */
#define MORE_GUARDIAN		    128	/* Necromancy 4 */
#define MORE_LOYAL		    256	/* Dominate 6 */
#define MORE_SINGING		    512	/* Singing atm */
#define MORE_LEADER		   1024	/* Coterie leader */
#define MORE_HAND_FLAME		   2048	/* Hand of Flame */
#define MORE_SPIRIT		   4096	/* You become a true spirit */
#define MORE_STAKED		   8192	/* You have been staked */
#define MORE_DEFLECTION		  16384	/* Deflection ritual in effect */
#define MORE_PROJECTION		  32768	/* Using astral projection */
#define MORE_CHAMPION		  65536	/* Coterie champion */
#define MORE_REINA		 131072	/* Song of Reina - Melpominee 2 */
#define MORE_EVILEYE		 262144	/* Evil Eye ON */
#define MORE_FLAMES		 524288	/* Flames of the nether world */
#define MORE_COURAGE		1048576	/* Courage - Presence 7 */
#define MORE_ANGER		2097152	/* Anger - Presence 8 */
#define MORE_ANIMAL_MASTER	4194304	/* Animals obey and dont attack you */
#define MORE_INFORM		8388608	/* Inform when say */
#define MORE_CALM	       16777216	/* Cancel's Anger, cannot attack */
#define MORE_BRISTLES	       33554432	/* Metis power level 5 */
#define MORE_OBEAH	       67108864	/* Obeah third eye is open */
#define MORE_NOPAIN	      134217728	/* Obeah 2, no pain penalties */
#define MORE_NEUTRAL	      268435456	/* Obeah 3, makes room safe room */
#define MORE_CONFUSED         536870912 /* Betrayer confused */
#define MORE_IDIOT           1073741824 /* Metatron flag *WEG* */
#define CRIME_C_OUTLAW		      1	/* Camarilla Outlaw */
#define CRIME_A_OUTLAW		      2	/* Anarch Outlaw */
#define CRIME_S_OUTLAW		      4	/* Sabbat Outlaw */
#define CRIME_I_OUTLAW		      8	/* Inconnu Outlaw */
#define CRIME_BLOODHUNT		     16	/* Camarilla Bloodhunted */
#define CRIME_DIABLERIE		     32	/* Committed Diablerie */
#define CRIME_MASQUERADE	     64	/* Breached the Masquerade */
#define CRIME_DOMAIN		    128	/* Disobeyed Prince */
#define CRIME_PROGENY		    256	/* Sired childe without permission */
#define CRIME_ACCOUNTING	    512	/* Childe broke tradition */
#define CRIME_HOSPITALITY	   1024	/* Not yet presented self to prince */
#define CRIME_DESTRUCTION	   2048	/* Killed a vampire in same sect */

#define DIAB_TIME		      0	/* Duration of diablerie aura */
#define DIAB_EVER		      1	/* Number of diableries committed */

#define LIE_TRUE		      0
#define LIE_FALSE		      1


/*
 * AGE Bits.
 */
#define AGE_CHILDE		      0
#define AGE_NEONATE		      1
#define AGE_ANCILLA		      2
#define AGE_ELDER		      3
#define AGE_METHUSELAH		      4
#define AGE_ANTEDILUVIAN	      5

#define AGE_PUP			      0
#define AGE_YOUTH		      1
#define AGE_ADULT		      2
#define AGE_ELDER		      3
#define AGE_ANCIENT		      4
#define AGE_SUPERANCIENT	      5

/*
 * Status.
 */
#define STATUS_FEAR		      0
#define STATUS_PRESTIGE		      1
#define STATUS_NATURAL		      2


/*
 * Stances for combat
 */
#define STANCE_NONE		        -1
#define STANCE_NORMAL		         0
#define STANCE_VIPER		         1
#define STANCE_CRANE		         2
#define STANCE_CRAB		         3
#define STANCE_MONGOOSE		         4
#define STANCE_BULL		         5
#define STANCE_MANTIS		         6
#define STANCE_DRAGON		         7
#define STANCE_TIGER		         8
#define STANCE_MONKEY		         9
#define STANCE_SWALLOW		        10
#define STANCE_SUPER1		        11
#define STANCE_SUPER2		        12
#define STANCE_SUPER3		        13
#define STANCE_SUPER4		        14
#define STANCE_SUPER5		        15
#define STANCE_SS1		        11
#define STANCE_SS2		        12
#define STANCE_SS3		        13
#define STANCE_SS4		        14
#define STANCE_SS5		        15

#define TRAIN_VIPER		    	13
#define TRAIN_CRANE		    	14
#define TRAIN_CRAB		    	15
#define TRAIN_MONGOOSE		    	16
#define TRAIN_BULL		    	17
#define TRAIN_MANTIS		    	18
#define TRAIN_DRAGON		    	19
#define TRAIN_TIGER		    	20
#define TRAIN_MONKEY		    	21
#define TRAIN_SWALLOW		    	22
#define TRAIN_SS1		    	23
#define TRAIN_SS2		    	24
#define TRAIN_SS3		    	25
#define TRAIN_SS4		    	26
#define TRAIN_SS5		    	27


/*
 *  Totems for werewolves.
 */
#define TOTEM_MANTIS	      0
#define TOTEM_BEAR	      1
#define TOTEM_LYNX	      2
#define TOTEM_BOAR	      3
#define TOTEM_OWL	      4
#define TOTEM_SPIDER	      5
#define TOTEM_WOLF	      6
#define TOTEM_HAWK	      7
#define TOTEM_SILVER	     10



/*
 * Obsolete bits.
 */
#if 0
#define PLR_AUCTION		      4	/* Obsolete     */
#define PLR_CHAT		    256	/* Obsolete     */
#define PLR_NO_SHOUT		 131072	/* Obsolete     */
#endif



/*
 * Channel bits.
 */
#define	CHANNEL_MAGETALK	      1
#define	CHANNEL_MAGE	              1
#define	CHANNEL_CHAT		      2
#define	CHANNEL_IMPLEMENTOR	      4
#define	CHANNEL_IMMTALK		      8
#define	CHANNEL_MUSIC		     16
#define	CHANNEL_QUESTION	     32
#define	CHANNEL_SHOUT		     64
#define	CHANNEL_YELL		    128
#define	CHANNEL_VAMPTALK	    256
#define	CHANNEL_HOWL		    512
#define	CHANNEL_LOG		   1024
#define	CHANNEL_PRAY		   2048
#define	CHANNEL_INFO		   4096
#define	CHANNEL_NEWBIE		   8192
#define	CHANNEL_TELL		  16384
#define	CHANNEL_BUILD		  32768
#define	CHANNEL_WAIL		  65536
#define	CHANNEL_ROAR		 131072
#define	CHANNEL_BOTCHECK         262144
#define	CHANNEL_MIKTALK		 524288
#define	CHANNEL_GAIATALK	1048576
#define	CHANNEL_DREAMTALK       2097152
#define	CHANNEL_GHOST		4194304
#define CHANNEL_HIGHTALK	8388608
#define CHANNEL_FOUNDERTALK    16777216
#define CHANNEL_MONK	       33554432
#define CHANNEL_GSOCIAL	       67108864
#define CHANNEL_SWEAR	      134217728
#define CHANNEL_HARDCORE      268435456
#define CHANNEL_COTTALK       536870912
#define CHANNEL_ELVEN        1073741824
/*
 * Prototype for a mob.
 * This is the in-memory version of #MOBILES.
 */
struct mob_index_data
{//reverett
  MOB_INDEX_DATA *next;
  SPEC_FUN *spec_fun;
//  CHAR_DATA *next_wilderness;
//  CHAR_DATA *prev_wilderness;
  CHAR_DATA *assassin;
  char *spec_name;		/* OLC */
  SHOP_DATA *pShop;
  AREA_DATA *area;		/* OLC */
  CHAR_DATA *mount;
  CHAR_DATA *wizard;
  CHAR_DATA *embrace;
  CHAR_DATA *next_fight;
  CHAR_DATA *prev_fight;
  CHAR_DATA *challenged;
  OBJ_DATA *sat;
  PC_DATA *pcdata;//reverett - adding pcdata to mobs
  char *hunting;
  char *player_name;
  char *short_descr;
  char *long_descr;
  char *description;
  char *lord;
  char *sponsor;
  char *clan;
  char *beenset;
  char *del_log;
  char *logoutmsg;
  char *loginmsg;
  char *decapmsg;
  char *slaymsg;
  char *afkmsg;
  char *secafkmsg;
  sh_int del_log_count;
  sh_int clearclass_count;
  char *prev_classes;
  char *side;
  char *morph;
  char *createtime;
  char *lasttime;
  char *lasthost;
  char *powertype;
  char *poweraction;
  char *pload;
  char *prompt;
  char *cprompt;
  int spectype;
  int specpower;
  int loc_hp[7];
  int vnum;
  int count;
  int killed;
  sh_int sex;
  int mounted;
  int embraced;
  int home;
  int emphome;
  sh_int init;
  sh_int level;
  int immune;
  int polyaff;
  int vampaff;
  int itemaffect;
  int vamppass;
  int form;
  int body;
  int act;
  int extra;
  int more;
  int xbits;
  int corbits;
  sh_int blindtimer;
  sh_int monkblinder;
  sh_int monkblock;
  sh_int deathtimer;
  int handform;
  int monkcrap;
  int vampritual;
  int monkstuff;
  int xxbits;
  int xxxbits;
  int nymbits;
  int quickening;
  sh_int serpent;
  sh_int quickcount;
  int combocrap;
  sh_int battlefury;
  int wpnmaster;
  sh_int sleeptimer;
  sh_int arena_timer;
  sh_int triviatimer;
  sh_int tietimer;
  sh_int kukitobi;
  char   *kukivict;
  sh_int bolatimer;
  sh_int darkdjinn;
  sh_int icytimer;
  sh_int mercytimer;
  sh_int pitytimer;
  sh_int nopktimer;
  sh_int safetimer;
  sh_int demontimer;
  int affected_by;
  int affected_by2;
  int temp;
  sh_int alignment;
  int glory;             
  int tranquilitytimer;
  int hitroll;			/* Unused */
  int ac;			/* Unused */
  int hitnodice;		/* Unused */
  int hitsizedice;		/* Unused */
  int hitplus;			/* Unused */
  int damnodice;		/* Unused */
  int damsizedice;		/* Unused */
  int damplus;			/* Unused */
  int gold;			/* Unused */
  int revbits;
};

struct dform_type
{
  char *desc;
  char *name;
  bool claws;
  bool fangs;
  bool tail;
  bool wings;
  int hitplus;
  int damplus;
  int acmin;
};

/*
 * One character (PC or NPC).
 */
struct char_data
{
  CHAR_DATA *next;
  CHAR_DATA *next_in_room;
  CHAR_DATA *next_fight;
  CHAR_DATA *prev_fight;
  CHAR_DATA *master;
  CHAR_DATA *leader;
  CHAR_DATA *fighting;
  CHAR_DATA *reply;
  CHAR_DATA *mount;
  CHAR_DATA *wizard;
  CHAR_DATA *embrace;
  CHAR_DATA *challenged;
  CHAR_DATA *assassin;
  OBJ_DATA *sat;
  SPEC_FUN *spec_fun;
  MOB_INDEX_DATA *pIndexData;
  DESCRIPTOR_DATA *desc;
  AFFECT_DATA *affected;
  OBJ_DATA *carrying;
  ROOM_INDEX_DATA *in_room;
  ROOM_INDEX_DATA *was_in_room;
  PC_DATA *pcdata;
  CHAR_DATA *questgiver;	/* Vassago */
  int questpoints;		/* Vassago */
  int nextquest;		/* Vassago */
  int countdown;		/* Vassago */
  int questobj;			/* Vassago */
  int questmob;			/* Vassago */
  int amount_attacks_dealt;
  int amount_attacks_recieved;
  int amount_damage_recieved;
  int amount_damage_dealt;
  int apowers;
  int bpowers;
  sh_int arank;
  sh_int apwrcnt;
  CHAR_DATA *hunting;
  char *name;
  sh_int saintly;
  sh_int obfuscate;
  sh_int tritimer;
  char *short_descr;
  char *long_descr;
  char *description;
  char *lord;
  char *sponsor;
  char *beenset;
  char *del_log;
  char *logoutmsg;
  char *loginmsg;
  char *decapmsg;
  char *slaymsg;
  char *afkmsg;
  char *secafkmsg;
  sh_int del_log_count;
  sh_int clearclass_count;
  char *prev_classes;
  char *clan;
  char *side;
  char *morph;
  char *createtime;
  char *lasttime;
  char *lasthost;
  char *poweraction;
  char *powertype;
  char *pload;
  char *prompt;
  char *cprompt;
  char *scryperp;
  char *harp_by;
  char *harped;
  sh_int harptime;
  sh_int gangtime;
  sh_int sex;
  int race;
  int class;
  int spheres[9];		/* Mage sphere accommodation - Coded by Sage */
  int quint[3];			/* Quintessence Mage Sphere - Coded by Sage */
  int mflags;			/* Mageflags - Coded by Sage */
  int imms[3];
  int immune;
  int dpwrs;
  int legendeq;
  int evenmore;
  int polyaff;
  int vampaff;
  int itemaffect;
  int vamppass;
  int form;
  int body;
  sh_int fight_timer;
  sh_int agitated;
  sh_int blood_timer;
  sh_int bomb_timer;
  int dps;
  int bounty;
  int temp;
  sh_int vampgen;
  int spectype;
  int specpower;
  int loc_hp[7];
  sh_int wpn[13];
  sh_int spl[5];
  int cmbt[8];
  sh_int stance[16];
  sh_int training[35];
  int blood[3];
  sh_int beast;
  sh_int truebeast;
  sh_int abombeast;
  int harmony;
  int mounted;
  int embraced;
  int home;
  int emphome;
  sh_int init;
  sh_int pre_level;
  sh_int pre_trust;
  sh_int level;
  sh_int trust;
  int played;
  int msptimer;
  time_t logon;
  time_t save_time;
  int timer;
  int wait;
  sh_int focus[2];
  int monkab[6];
  sh_int chi[2];
  int pkill;
  int pdeath;
  int awins;
  int alosses;
  int mercy;
  int pityed;
  sh_int soulkills;
  int deadplane;
  int mkill;
  int mdeath;
  sh_int agg;
  int hit;
  int max_hit;
  int mana;
  int max_mana;
  int move;
  int max_move;
  int gold;
  long exp;
  int act;
  int extra;
  int more;
  sh_int serpent;
  sh_int sleeptimer;
  sh_int arena_timer;
  sh_int triviatimer;
  sh_int tietimer;
  sh_int kukitobi;
  char   *kukivict;
  sh_int bolatimer;
  sh_int darkdjinn;
  sh_int icytimer;
  sh_int mercytimer;
  sh_int pitytimer;
  sh_int nopktimer;
  sh_int safetimer;
  sh_int demontimer;
  int xbits;
  int corbits;
  sh_int blindtimer;
  sh_int monkblinder;
  sh_int monkblock;
  sh_int deathtimer;
  int handform;
  int monkcrap;
  int monkstuff;
  int vampritual;
  int xxbits;
  int xxxbits;
  int nymbits;
  int quickening;
  sh_int quickcount;
  int combocrap;
  sh_int battlefury;
  int wpnmaster;
  int affected_by;
  int affected_by2;
  sh_int lstatus;
  int position;
  int practice;
  int carry_weight;
  int carry_number;
  int saving_throw;
  sh_int alignment;
  int hitroll;
  int damroll;
  int damcapbonus;
  sh_int gaiasprison;
  int armor;
  int wimpy;
  int deaf;
  int paradox[3];
  int damcap[2];
  int glory;
  int tranquilitytimer;
  int x;
  int y;
  int home_x;
  int home_y;
  int room;
  int state;
  int action;
  int quality;
  int kith;			// begin fae attempt crap
  int special;
  int newbits;
  int garou1;
  int flag2;			// end fae crap
  int pagelen;
  sh_int bindlevel;
  int revbits;
};


struct auction_data
{
  OBJ_DATA *item;
  CHAR_DATA *owner;
  CHAR_DATA *high_bidder;
  int status;
  long current_bid;
  long qps_held;
};

struct account
{
  ACCOUNT_DATA *next;
  char *aname;
  char *apwd;
  char *char1;
  char *char2;
  char *char3;
  char *char4;
  char *char5;
  char *char6;
  char *char7;
  char *char8;
  char *char9;
  char *char10;
  char *aemail;
  time_t alogon;
  time_t asave_time;
  sh_int ch_num;
  int acredits;
  int acrystal;
};

/*
 * Data which only PC's have.
 */
struct pc_data
{
  PC_DATA *next;
  CHAR_DATA *familiar;
  CHAR_DATA *skinriding;
  CHAR_DATA *partner;
  CHAR_DATA *propose;
  OBJ_DATA *chobj;
  OBJ_DATA *memorised;
  BOARD_DATA *board;		/* The current board */
  time_t last_note[MAX_BOARD];	/* last note for the boards */
  NOTE_DATA *in_progress;
  char *pwd;
  CHAR_DATA *pfile;
  char *bamfin;
  char *bamfout;
  char *title;
  char *conception;
  char *parents;
  char *cparents;
  char *marriage;
  char *email;
  char *conding;
  char *love;
  char *coterie;
  char *cot_time;
  char *cot_clans;
  char *cot_sides;
  char *leader;
  char *prefix;			/* Argonath */
  char *stancename;
  char *stancelist;
  char *stancework;
  char *targeted;
  char *ritualvictim;
  OBJ_DATA *ritualobject;
  char *glaivethrower;
  int empire[3];
  int empire2[5];
  sh_int shockballs;
  sh_int glaive;
  sh_int glaivethrow;
  sh_int backnum;
  sh_int nephplague;
  sh_int kensaihymn;
  sh_int kensaifocus;
  sh_int kensaidisc;
  sh_int kensaitough;
  sh_int kensaitrain;
  sh_int escape;
  sh_int tokenclip;
  sh_int wpntrain;
  sh_int recharge;
  sh_int seedbombs;
  sh_int seedfuse;
  sh_int seedtimer;
  sh_int customtimer;
  sh_int bloodhunt;
  sh_int soulblast;
  sh_int shadow;
  sh_int ticket;
  sh_int deathticker;
  sh_int beensafetime;
  sh_int advpoison;
  sh_int nosafetime;
  sh_int dreamtime;
  int stancemove[5];
  sh_int perm_str;
  sh_int perm_int;
  sh_int perm_wis;
  sh_int perm_dex;
  sh_int perm_con;
  sh_int mod_str;
  sh_int mod_int;
  sh_int mod_wis;
  sh_int mod_dex;
  sh_int mod_con;
  int

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

Site Stats

Snippets: 1791
Codebases: 571