# # Patch name: look-people-object # Patch version: 1 # Author's name: Flame # Author's email: flame@access.kuwait.net # Version of PennMUSH: 1.6.7.p6 # Date patch made: 09/03/1996 # Author is willing to support (yes/no): no # Patch format: diff -c # # # 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. # After applying this patch when you type look the contents of the room will be devided to people and objects. If there is no one in the room then people heading will be empty, your name will not be there. Why should be, you know your in the room and no need to show your name in the list to remind you :) this is how it will look Contents: <-- will show in yellow color People: Flame Objects: Sign Obvious exits: <-- will show in yellow color Out *** src/look.c.orig Tue Sep 3 22:50:31 1996 --- src/look.c Tue Sep 3 22:49:54 1996 *************** *** 137,142 **** if (can_see(player, thing, can_see_loc)) { /* something exists! show him everything */ notify(player, contents_name); DOLIST(thing, db[loc].contents) { if (can_see(player, thing, can_see_loc)) { notify(player, unparse_object(player, thing)); --- 137,143 ---- if (can_see(player, thing, can_see_loc)) { /* something exists! show him everything */ notify(player, contents_name); + notify(player, tprintf("People:")); DOLIST(thing, db[loc].contents) { if (can_see(player, thing, can_see_loc)) { if (Typeof(thing) == TYPE_PLAYER) *************** *** 139,145 **** notify(player, contents_name); DOLIST(thing, db[loc].contents) { if (can_see(player, thing, can_see_loc)) { ! notify(player, unparse_object(player, thing)); } } break; /* we're done */ --- 140,149 ---- notify(player, tprintf("People:")); DOLIST(thing, db[loc].contents) { if (can_see(player, thing, can_see_loc)) { ! if (Typeof(thing) == TYPE_PLAYER) ! { ! notify(player, unparse_object(player, thing)); ! } } } notify(player, tprintf("Objects:")); *************** *** 142,147 **** notify(player, unparse_object(player, thing)); } } break; /* we're done */ } } --- 146,160 ---- } } } + notify(player, tprintf("Objects:")); + DOLIST(thing, db[loc].contents) { + if (can_see(player, thing, can_see_loc)) { + if (Typeof(thing) == TYPE_THING) + { + notify(player, unparse_object(player, thing)); + } + } + } break; /* we're done */ } } *************** *** 319,324 **** } /* tell him the contents */ if (flag != 3) look_contents(player, loc, "Contents:"); if ((flag == 0) || (flag == 2)) look_exits(player, loc, "Obvious exits:"); --- 332,342 ---- } /* tell him the contents */ if (flag != 3) + #ifdef EXTENDED_ANSI + if (ShowAnsi(player)) + look_contents(player,loc,tprintf("%s%s%s",ANSI_YELLOW,"Contents:",ANSI_NORMAL)); + else + #endif look_contents(player, loc, "Contents:"); if ((flag == 0) || (flag == 2)) #ifdef EXTENDED_ANSI *************** *** 321,326 **** if (flag != 3) look_contents(player, loc, "Contents:"); if ((flag == 0) || (flag == 2)) look_exits(player, loc, "Obvious exits:"); } --- 339,349 ---- #endif look_contents(player, loc, "Contents:"); if ((flag == 0) || (flag == 2)) + #ifdef EXTENDED_ANSI + if (ShowAnsi(player)) + look_exits(player,loc,tprintf("%s%s%s",ANSI_YELLOW,"Obvious exits:",ANSI_NORMAL)); + else + #endif look_exits(player, loc, "Obvious exits:"); } *************** *** 322,328 **** look_contents(player, loc, "Contents:"); if ((flag == 0) || (flag == 2)) look_exits(player, loc, "Obvious exits:"); ! } void do_look_around(player) --- 345,351 ---- else #endif look_exits(player, loc, "Obvious exits:"); ! } void do_look_around(player)