# # Patch name: lookupdate # Patch version: 1 # Author's name: Flame # Author's email: flame@access.kuwait.net # Version of PennMUSH: 1.6.9p4 # Date patch made: 19/10/1996 # Author is willing to support (yes/no): no # Patch format: diff -c # Requires: look.168p1 # # # 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 is an update to my previous look patch. Now you can make any object to be displayed under People: by adding fh (fake human) attribute i.e. &fh object= I found this very usifull with puppet, to make them look more like players. P.S.: fot this patch to work you MUST apply my previous patch. (look.168p1) *** look.orig Sat Oct 19 23:02:39 1996 --- look.c Sat Oct 19 23:03:12 1996 *************** *** 123,129 **** dbref loc; const char *contents_name; { ! ATTR *b; char const *s, *ap; char tbuf1[BUFFER_LEN], *bp; --- 123,129 ---- dbref loc; const char *contents_name; { ! ATTR *b, *h; char const *s, *ap; char tbuf1[BUFFER_LEN], *bp; *************** *** 144,150 **** notify(player, tprintf("People:")); DOLIST(thing, db[loc].contents) { if (can_see(player, thing, can_see_loc)) { ! if (Typeof(thing) == TYPE_PLAYER) { b = (ATTR *) atr_get_noparent(thing, "NTN"); if (b !=NULL) --- 144,151 ---- notify(player, tprintf("People:")); DOLIST(thing, db[loc].contents) { if (can_see(player, thing, can_see_loc)) { ! h = (ATTR *) atr_get_noparent(thing, "FH"); ! if (Typeof(thing) == TYPE_PLAYER || h !=NULL) { b = (ATTR *) atr_get_noparent(thing, "NTN"); if (b !=NULL ) *************** *** 147,153 **** if (Typeof(thing) == TYPE_PLAYER) { b = (ATTR *) atr_get_noparent(thing, "NTN"); ! if (b !=NULL) { s = (char *) uncompress(b->value); /* new hack: ntn processed */ --- 148,154 ---- if (Typeof(thing) == TYPE_PLAYER || h !=NULL) { b = (ATTR *) atr_get_noparent(thing, "NTN"); ! if (b !=NULL ) { s = (char *) uncompress(b->value); /* new hack: ntn processed */ *************** *** 165,171 **** notify(player, tprintf("Objects:")); DOLIST(thing, db[loc].contents) { if (can_see(player, thing, can_see_loc)) { ! if (Typeof(thing) == TYPE_THING) { b = (ATTR *) atr_get_noparent(thing, "NTN"); if (b !=NULL) --- 166,173 ---- notify(player, tprintf("Objects:")); DOLIST(thing, db[loc].contents) { if (can_see(player, thing, can_see_loc)) { ! h = (ATTR *) atr_get_noparent(thing, "FH"); ! if (Typeof(thing) == TYPE_THING && !h ) { b = (ATTR *) atr_get_noparent(thing, "NTN"); if (b !=NULL)