00001 /*************************************************************************** 00002 * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * 00003 * Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. * 00004 * * 00005 * Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael * 00006 * Chastain, Michael Quan, and Mitchell Tse. * 00007 * * 00008 * In order to use any part of this Merc Diku Mud, you must comply with * 00009 * both the original Diku license in 'license.doc' as well the Merc * 00010 * license in 'license.txt'. In particular, you may not remove either of * 00011 * these copyright notices. * 00012 * * 00013 * Much time and thought has gone into this software and you are * 00014 * benefitting. We hope that you share your changes too. What goes * 00015 * around, comes around. * 00016 **************************************************************************/ 00017 00018 /*************************************************************************** 00019 * ROM 2.4 is copyright 1993-1998 Russ Taylor * 00020 * ROM has been brought to you by the ROM consortium * 00021 * Russ Taylor (rtaylor@hypercube.org) * 00022 * Gabrielle Taylor (gtaylor@hypercube.org) * 00023 * Brian Moore (zump@rom.org) * 00024 * By using this code, you have agreed to follow the terms of the * 00025 * ROM license, in the file Rom24/doc/rom.license * 00026 **************************************************************************/ 00027 00028 /* vals from db.c */ 00029 extern bool fBootDb; 00030 extern int newmobs; 00031 extern int newobjs; 00032 extern MOB_INDEX_DATA * mob_index_hash [MAX_KEY_HASH]; 00033 extern OBJ_INDEX_DATA * obj_index_hash [MAX_KEY_HASH]; 00034 extern int top_mob_index; 00035 extern int top_obj_index; 00036 extern int top_affect; 00037 extern int top_ed; 00038 extern AREA_DATA * area_first; 00039 00040 #define DATPATH "" 00041 extern unsigned strspace_size; 00042 char* strspace_alloc(); 00043 void strspace_size_increment(); 00044 extern int nAllocString; 00045 extern int sAllocString; 00046 extern int social_count; 00047 00048 /* from db2.c */ 00049 extern int social_count; 00050 00051 /* conversion from db.h */ 00052 void convert_mob(MOB_INDEX_DATA *mob); 00053 void convert_obj(OBJ_INDEX_DATA *obj); 00054 00055 #define MAX_PERM_BLOCK 131072 00056 00057 /* macro for flag swapping */ 00058 #define GET_UNSET(flag1,flag2) (~(flag1)&((flag1)|(flag2))) 00059 00060 /* Magic number for memory allocation */ 00061 #define MAGIC_NUM 52571214 00062 00063 /* func from db.c */ 00064 extern void assign_area_vnum( int vnum ); /* OLC */ 00065 00066 /* from db2.c */ 00067 00068 void convert_mobile( MOB_INDEX_DATA *pMobIndex ); /* OLC ROM */ 00069 void convert_objects( void ); /* OLC ROM */ 00070 void convert_object( OBJ_INDEX_DATA *pObjIndex ); /* OLC ROM */
1.4.0