# # Patch name: showzone_roomflag # Patch version: 1 # Author's name: Alan Schwartz # Author's email: dunemush@pennmush.tinymush.org # Version of PennMUSH: 1.6.5p3 # Date patch made: July 15, 1996 # Author is willing to support (yes/no): NO # Patch format: context diff # # # This is a contributed PennMUSH patch. Its use is subject to the # same restrictions found in PennMUSH's hdrs/copyrite.h file. # # No warranty is given for this patch. It is not necessarily going # to work on your system, with any version of PennMUSH other than # the one above, etc. # # If the author given above was willing to support the patch, you # should write to the author if you have any questions or problems. Do # *NOT* send email messages to Javelin or any PennMUSH mailing list about # this patch! # # Below this line is the author's description of the patch, # followed by the patch itself. If the patch is in context diff # format, you'll probably apply it by typing: patch < patchfile # in your top-level MUSH directory, unless instructed otherwise # below. # This patch adds the SHOWZONE room flag which causes the zone name (if any) to appear after the room name (in []'s) when people look at the room. Example: Moe's Bar [Springfield] This idea came from hacks by Oliver Stoll. *** /tmp/T0a29231 Tue Jul 9 19:46:23 1996 --- src/flags.c Sat Jul 6 13:03:31 1996 *************** *** 154,159 **** --- 154,160 ---- {"Z_TEL", 'Z', TYPE_ROOM, ROOM_Z_TEL, F_ANY, F_ANY}, {"NO_TEL", 'N', TYPE_ROOM, ROOM_NO_TEL, F_ANY, F_ANY}, {"TEMPLE", 'T', TYPE_ROOM, ROOM_TEMPLE, F_WIZARD, F_WIZARD}, + {"SHOWZONE", 's', TYPE_ROOM, ROOM_SHOWZONE, F_ANY, F_ANY}, #ifdef UNINSPECTED_FLAG {"UNINSPECTED", 'u', TYPE_ROOM, ROOM_UNINSPECT, F_ROYAL, F_ROYAL}, #endif *************** *** 423,428 **** --- 424,432 ---- {"TEMP", "TEMPLE"}, {"TEM", "TEMPLE"}, {"TE", "TEMPLE"}, + {"SHOWZON", "SHOWZONE"}, + {"SHOWZO", "SHOWZONE"}, + {"SHOWZ", "SHOWZONE"}, #ifdef UNINSPECTED_FLAG {"UNINSPECT", "UNINSPECTED"}, {"UNINSPEC", "UNINSPECTED"}, *** /tmp/T0a29231 Tue Jul 9 19:46:29 1996 --- src/look.c Sat Jul 6 13:17:18 1996 *************** *** 273,280 **** return; /* don't give the unparse if looking through Transparent exit */ ! if ((flag == 0) || (flag == 2)) ! notify(player, unparse_object(player, loc)); if (Typeof(loc) != TYPE_ROOM) { if ((flag != 2) || !Terse(player)) { if ((s = atr_get(loc, "IDESCRIBE")) || --- 273,286 ---- return; /* don't give the unparse if looking through Transparent exit */ ! if ((flag == 0) || (flag == 2)) { ! if (IS(loc, TYPE_ROOM, ROOM_SHOWZONE) && GoodObject(Zone(loc))) { ! char buf[BUFFER_LEN]; ! strcpy(buf, unparse_object(player, Zone(loc))); ! notify(player, tprintf("%s [%s]", unparse_object(player, loc), buf)); ! } else ! notify(player, unparse_object(player, loc)); ! } if (Typeof(loc) != TYPE_ROOM) { if ((flag != 2) || !Terse(player)) { if ((s = atr_get(loc, "IDESCRIBE")) || *** /tmp/T0a29231 Tue Jul 9 19:46:42 1996 --- hdrs/flags.h Sat Jul 6 13:03:36 1996 *************** *** 158,163 **** --- 158,165 ---- * only @tel to another room in the * same zone */ + #define ROOM_SHOWZONE 0x4000000 /* Causes zone name to appear in room + * title when doing a look */ #ifdef UNINSPECTED_FLAG #define ROOM_UNINSPECT 0x1000 /* Not inspected */ #endif *** /tmp/T0a29231 Tue Jul 9 19:46:54 1996 --- game/txt/hlp/pennflag.hlp Tue Jul 9 19:32:23 1996 *************** *** 517,519 **** --- 519,530 ---- completes. If something terrible happens and the flag is not reset by the server (possible in the event of a crash), this flag can be reset by a wizard (who doesn't have the flag, of course). + & SHOWZONE + SHOWZONE + + This flag can only be set on a room. When set, the room's title + that appears when a player looks at the room will include + the name of the room's zone in brackets, like this: + + Moe's Bar [Springfield] +