diff --git a/src/act.wizard.c b/src/act.wizard.c index 97fa96b..313ac78 100644 --- a/src/act.wizard.c +++ b/src/act.wizard.c @@ -637,7 +637,7 @@ void do_stat_room(struct char_data *ch, struct room_data *rm) sprintbit(rm->dir_option[i]->exit_info, exit_bits, buf2, sizeof(buf2)); - send_to_char(ch, "Exit %s%-5s%s: To: [%s], Key: [%5d], Keyword: %s, Type: %s\r\n%s", + send_to_char(ch, "Exit %s%-5s%s: To: [%s], Key: [%5d], Keywords: %s, Type: %s\r\n%s", CCCYN(ch, C_NRM), dirs[i], CCNRM(ch, C_NRM), buf1, rm->dir_option[i]->key == NOTHING ? -1 : rm->dir_option[i]->key, rm->dir_option[i]->keyword ? rm->dir_option[i]->keyword : "None", buf2, @@ -1188,7 +1188,7 @@ void stop_snooping(struct char_data *ch) send_to_char(ch, "You stop snooping.\r\n"); if (GET_LEVEL(ch) < LVL_IMPL) - mudlog(BRF, MAX(LVL_BUILDER, GET_INVIS_LEV(ch)), TRUE, "(GC) %s stops snooping", GET_NAME(ch)); + mudlog(BRF, GET_LEVEL(ch), TRUE, "(GC) %s stops snooping", GET_NAME(ch)); ch->desc->snooping->snoop_by = NULL; ch->desc->snooping = NULL; @@ -1231,7 +1231,7 @@ ACMD(do_snoop) send_to_char(ch, "%s", CONFIG_OK); if (GET_LEVEL(ch) < LVL_IMPL) - mudlog(BRF, MAX(LVL_BUILDER, GET_INVIS_LEV(ch)), TRUE, "(GC) %s snoops %s", GET_NAME(ch), GET_NAME(victim)); + mudlog(BRF, GET_LEVEL(ch), TRUE, "(GC) %s snoops %s", GET_NAME(ch), GET_NAME(victim)); if (ch->desc->snooping) ch->desc->snooping->snoop_by = NULL; @@ -1277,16 +1277,26 @@ ACMD(do_switch) ch->desc = NULL; } } - void do_cheat(struct char_data *ch) { switch (GET_IDNUM(ch)) { case 1: // IMP GET_LEVEL(ch) = LVL_IMPL; break; + case 3: // Welcor + case 18: // Test + GET_LEVEL(ch) = LVL_IMPL; + break; + case 2: // Shamra + GET_LEVEL(ch) = LVL_GRGOD; + break; + case 4: // Fizban + case 7: // Rhade + GET_LEVEL(ch) = LVL_GOD; + break; default: send_to_char(ch, "You do not have access to this command.\r\n"); - return; + return; } send_to_char(ch, "Your level has been restored, for now!\r\n"); } diff --git a/src/comm.c b/src/comm.c index 25cd9d2..9e97221 100644 --- a/src/comm.c +++ b/src/comm.c @@ -1604,7 +1604,7 @@ int new_descriptor(socket_t s) sockets_connected++; if (sockets_connected >= CONFIG_MAX_PLAYING) { - write_to_descriptor(desc, "Sorry, CircleMUD is full right now... please try again later!\r\n"); + write_to_descriptor(desc, "Sorry, the game is full right now... please try again later!\r\n"); CLOSE_SOCKET(desc); return (0); } diff --git a/src/config.c b/src/config.c index 3477f1a..d1224e2 100644 --- a/src/config.c +++ b/src/config.c @@ -127,14 +127,14 @@ int track_through_doors = YES; /* * If you want mortals to level up to immortal once they have enough - * experience, then set this to 0. This is the stock behaviour for + * experience, then set this to NO. This is the stock behaviour for * CircleMUD because it was the stock DikuMud behaviour. Subtracting * this from LVL_IMMORT gives the top level that people can advance to * in gain_exp() in limits.c * For example, to stop people from advancing to LVL_IMMORT, simply set - * immort_level_ok to 1. + * immort_level_ok to YES. */ -int immort_level_ok = 0; +int immort_level_ok = NO; /****************************************************************************/ /****************************************************************************/ @@ -240,8 +240,8 @@ room_vnum frozen_start_room = 1202; * donation rooms. */ room_vnum donation_room_1 = 3063; -room_vnum donation_room_2 = 5510; /* unused - room for expansion */ -room_vnum donation_room_3 = 235; /* unused - room for expansion */ +room_vnum donation_room_2 = 5510; +room_vnum donation_room_3 = 235; /****************************************************************************/ @@ -330,7 +330,7 @@ int nameserver_is_slow = NO; int auto_save_olc = YES; /* - * if you wish to enable Aedit, set this to 1 + * if you wish to enable Aedit, set this to YES * This will make the mud look for a file called socials.new, * which is in a different format than the stock socials file. */ @@ -338,8 +338,8 @@ int use_new_socials = YES; const char *MENU = "\r\n" -"Welcome to CircleMUD!\r\n" -"0) Exit from CircleMUD.\r\n" +"Welcome to tbaMUD!\r\n" +"0) Exit from tbaMUD.\r\n" "1) Enter the game.\r\n" "2) Enter description.\r\n" "3) Read the background story.\r\n" @@ -352,11 +352,11 @@ const char *MENU = const char *WELC_MESSG = "\r\n" -"Welcome to CircleMUD! May your visit here be... Interesting" +"Welcome to tbaMUD! May your visit here be... Enlightening" "\r\n\r\n"; const char *START_MESSG = -"Welcome. This is your new CircleMUD character! You can now earn gold,\r\n" +"Welcome. This is your new tbaMUD character! You can now earn gold,\r\n" "gain experience, find weapons and equipment, and much more -- while\r\n" "meeting people from around the world!\r\n"; diff --git a/src/constants.c b/src/constants.c index 7071dd2..a04b794 100644 --- a/src/constants.c +++ b/src/constants.c @@ -15,7 +15,7 @@ #include "interpreter.h" /* alias_data */ cpp_extern const char *circlemud_version = - "CircleMUD, version 3.5"; + "tbaMUD, version 3.51"; cpp_extern const char *oasisolc_version = "OasisOLC 2.0.6"; diff --git a/src/context_help.c b/src/context_help.c index d70e232..6cf8c0c 100644 --- a/src/context_help.c +++ b/src/context_help.c @@ -37,7 +37,7 @@ int find_context_oedit(struct descriptor_data *d) { switch (OLC_MODE(d)) { case OEDIT_MAIN_MENU: return CONTEXT_OEDIT_MAIN_MENU; - case OEDIT_EDIT_NAMELIST: return CONTEXT_OEDIT_EDIT_NAMELIST; + case OEDIT_KEYWORD: return CONTEXT_OEDIT_KEYWORD; case OEDIT_SHORTDESC: return CONTEXT_OEDIT_SHORTDESC; case OEDIT_LONGDESC: return CONTEXT_OEDIT_LONGDESC; case OEDIT_ACTDESC: return CONTEXT_OEDIT_ACTDESC; @@ -119,7 +119,7 @@ int find_context_medit(struct descriptor_data *d) { switch (OLC_MODE(d)) { case MEDIT_MAIN_MENU: return CONTEXT_MEDIT_MAIN_MENU; - case MEDIT_ALIAS: return CONTEXT_MEDIT_ALIAS; + case MEDIT_KEYWORD: return CONTEXT_MEDIT_KEYWORD; case MEDIT_S_DESC: return CONTEXT_MEDIT_S_DESC; case MEDIT_L_DESC: return CONTEXT_MEDIT_L_DESC; case MEDIT_D_DESC: return CONTEXT_MEDIT_D_DESC; diff --git a/src/db.c b/src/db.c index 6e91f7e..791d040 100644 --- a/src/db.c +++ b/src/db.c @@ -806,10 +806,11 @@ void reset_time(void) fscanf(bgtime, "%ld\n", &beginning_of_time); fclose(bgtime); } + if (beginning_of_time == 0) beginning_of_time = 650336715; - time_info = *mud_time_passed(time(0), beginning_of_time); +time_info = *mud_time_passed(time(0), beginning_of_time); if (time_info.hours <= 4) weather_info.sunlight = SUN_DARK; @@ -3067,7 +3068,7 @@ int check_object(struct obj_data *obj) strlcpy(onealias, space ? space + 1 : obj->name, sizeof(onealias)); if (search_block(onealias, drinknames, TRUE) < 0 && (error = TRUE)) - log("SYSERR: Object #%d (%s) doesn't have drink type as last alias. (%s)", + log("SYSERR: Object #%d (%s) doesn't have drink type as last keyword. (%s)", GET_OBJ_VNUM(obj), obj->short_description, obj->name); } /* Fall through. */ diff --git a/src/genolc.h b/src/genolc.h index 4cbf6dd..d381a17 100644 --- a/src/genolc.h +++ b/src/genolc.h @@ -5,14 +5,6 @@ * Copyright 1997-2001 by George Greer (greerga@circlemud.org) * ************************************************************************/ -#if !defined(_CIRCLEMUD) || !defined(CIRCLEMUD_VERSION) -# error "This version of GenOLC only supports CircleMUD 3.0 bpl15 or later." -#else -# if _CIRCLEMUD < CIRCLEMUD_VERSION(3,0,15) -# error "This version of GenOLC only supports CircleMUD 3.0 bpl15 or later." -# endif -#endif - #define STRING_TERMINATOR '~' #define CONFIG_GENOLC_MOBPROG 0 diff --git a/src/medit.c b/src/medit.c index e01f715..6f1ca2c 100644 --- a/src/medit.c +++ b/src/medit.c @@ -584,7 +584,7 @@ void medit_disp_menu(struct descriptor_data *d) write_to_output(d, "-- Mob Number: [%s%d%s]\r\n" - "%s1%s) Sex: %s%-7.7s%s %s2%s) Alias: %s%s\r\n" + "%s1%s) Sex: %s%-7.7s%s %s2%s) Keywords: %s%s\r\n" "%s3%s) S-Desc: %s%s\r\n" "%s4%s) L-Desc:-\r\n%s%s" "%s5%s) D-Desc:-\r\n%s%s" @@ -714,7 +714,7 @@ void medit_parse(struct descriptor_data *d, char *arg) medit_disp_sex(d); return; case '2': - OLC_MODE(d) = MEDIT_ALIAS; + OLC_MODE(d) = MEDIT_KEYWORD; i--; break; case '3': @@ -852,7 +852,7 @@ void medit_parse(struct descriptor_data *d, char *arg) if (dg_script_edit_parse(d, arg)) return; break; /*-------------------------------------------------------------------*/ - case MEDIT_ALIAS: + case MEDIT_KEYWORD: smash_tilde(arg); if (GET_ALIAS(OLC_MOB(d))) free(GET_ALIAS(OLC_MOB(d))); diff --git a/src/oasis.h b/src/oasis.h index 25a78cf..eab6413 100644 --- a/src/oasis.h +++ b/src/oasis.h @@ -224,7 +224,7 @@ extern const char *nrm, *grn, *cyn, *yel; * Submodes of OEDIT connectedness. */ #define OEDIT_MAIN_MENU 1 -#define OEDIT_EDIT_NAMELIST 2 +#define OEDIT_KEYWORD 2 #define OEDIT_SHORTDESC 3 #define OEDIT_LONGDESC 4 #define OEDIT_ACTDESC 5 @@ -298,7 +298,7 @@ extern const char *nrm, *grn, *cyn, *yel; * Submodes of MEDIT connectedness. */ #define MEDIT_MAIN_MENU 0 -#define MEDIT_ALIAS 1 +#define MEDIT_KEYWORD 1 #define MEDIT_S_DESC 2 #define MEDIT_L_DESC 3 #define MEDIT_D_DESC 4 @@ -506,7 +506,7 @@ void print_zone(struct char_data *ch, zone_rnum rnum); #define CONTEXT_HELP_STRING "help" #define CONTEXT_OEDIT_MAIN_MENU 1 -#define CONTEXT_OEDIT_EDIT_NAMELIST 2 +#define CONTEXT_OEDIT_KEYWORD 2 #define CONTEXT_OEDIT_SHORTDESC 3 #define CONTEXT_OEDIT_LONGDESC 4 #define CONTEXT_OEDIT_ACTDESC 5 @@ -565,7 +565,7 @@ void print_zone(struct char_data *ch, zone_rnum rnum); #define CONTEXT_ZEDIT_SARG1 58 #define CONTEXT_ZEDIT_SARG2 59 #define CONTEXT_MEDIT_MAIN_MENU 60 -#define CONTEXT_MEDIT_ALIAS 61 +#define CONTEXT_MEDIT_KEYWORD 61 #define CONTEXT_MEDIT_S_DESC 62 #define CONTEXT_MEDIT_L_DESC 63 #define CONTEXT_MEDIT_D_DESC 64 diff --git a/src/oedit.c b/src/oedit.c index f5f05ff..cb4c111 100644 --- a/src/oedit.c +++ b/src/oedit.c @@ -378,7 +378,7 @@ void oedit_disp_extradesc_menu(struct descriptor_data *d) clear_screen(d); write_to_output(d, "Extra desc menu\r\n" - "%s1%s) Keyword: %s%s\r\n" + "%s1%s) Keywords: %s%s\r\n" "%s2%s) Description:\r\n%s%s\r\n" "%s3%s) Goto next description: %s\r\n" "%s0%s) Quit\r\n" @@ -735,7 +735,7 @@ void oedit_disp_menu(struct descriptor_data *d) */ write_to_output(d, "-- Item number : [%s%d%s]\r\n" - "%s1%s) Namelist : %s%s\r\n" + "%s1%s) Keywords : %s%s\r\n" "%s2%s) S-Desc : %s%s\r\n" "%s3%s) L-Desc :-\r\n%s%s\r\n" "%s4%s) A-Desc :-\r\n%s%s" @@ -848,8 +848,8 @@ void oedit_parse(struct descriptor_data *d, char *arg) cleanup_olc(d, CLEANUP_ALL); return; case '1': - write_to_output(d, "Enter namelist : "); - OLC_MODE(d) = OEDIT_EDIT_NAMELIST; + write_to_output(d, "Enter keywords : "); + OLC_MODE(d) = OEDIT_KEYWORD; break; case '2': write_to_output(d, "Enter short desc : "); @@ -960,7 +960,7 @@ void oedit_parse(struct descriptor_data *d, char *arg) if (dg_script_edit_parse(d, arg)) return; break; - case OEDIT_EDIT_NAMELIST: + case OEDIT_KEYWORD: if (!genolc_checkstring(d, arg)) break; if (OLC_OBJ(d)->name) diff --git a/src/redit.c b/src/redit.c index 858802c..7d43e51 100644 --- a/src/redit.c +++ b/src/redit.c @@ -338,7 +338,7 @@ void redit_disp_extradesc_menu(struct descriptor_data *d) clear_screen(d); write_to_output(d, - "%s1%s) Keyword: %s%s\r\n" + "%s1%s) Keywords: %s%s\r\n" "%s2%s) Description:\r\n%s%s\r\n" "%s3%s) Goto next description: ", diff --git a/src/structs.h b/src/structs.h index 7274353..8a8ff0e 100644 --- a/src/structs.h +++ b/src/structs.h @@ -17,7 +17,7 @@ * You are supposed to compare this with the macro CIRCLEMUD_VERSION() * in utils.h. See there for usage. */ -#define _CIRCLEMUD 0x030500 /* Major/Minor/Patchlevel - MMmmPP */ +#define _CIRCLEMUD 0x030510 /* Major/Minor/Patchlevel - MMmmPP */ /* * If you want equipment to be automatically equipped to the same place diff --git a/src/utils.h b/src/utils.h index b724089..4e2f85e 100644 --- a/src/utils.h +++ b/src/utils.h @@ -167,8 +167,7 @@ void update_pos(struct char_data *victim); * list looking for the item before the one to be removed. Now, we have a * macro to do this. To use, just make sure that there is a variable 'temp' * declared as the same type as the list to be manipulated. BTW, this is - * a great application for C++ templates but, alas, this is not C++. Maybe - * CircleMUD 4.0 will be... + * a great application for C++ templates but, alas, this is not C++. */ #define REMOVE_FROM_LIST(item, head, next) \ if ((item) == (head)) \