On Tue, 20 Aug 1996, jubjub wrote: > If someone could please tell me how to get the mob's condition during > each round of the fight, just like what you would see when you look at > them, ie "King Welmer has a nasty cut." Anyway, I am no c-expert, so > please make it kinda simple for me, and tell me which file and all to > find the stuff in. Thanx There's a function (i forget which file off hand) called diag_char_to_char() that displays the condition when you look at the mob/player... there's also, from my experience, a little known command called diagnose that ONLY tells the mob/player's condition... Brazil +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+ From cat@vuse.vanderbilt.edu Wed, 21 Aug 96 03:49:12 -0500 X-SystemInfo: MyE-Mail: EMail X-ReplyTo-No: 3914 (There are no more replies.) X-Message-No: 3919 (database) From: Katzlberger Thomas <cat@vuse.vanderbilt.edu> To: circle <circle@cspo.queensu.ca> Subject: Re: [Circle] [OLDBIE] [CODE] Running Under Win95 Date: Wed, 21 Aug 96 09:49:00 Message-ID: <9608210849.AA00303@localhost.vuse.vanderbilt.edu> Reply-To: katzlbt@vuse.vanderbilt.edu (katzlbt) X-POP3-Rcpt: lk4150@per Return-Path: <@QUCDN.QueensU.CA:owner-circle@cspo.queensu.ca> Received: from QUCDN.QueensU.CA (QUCDN.QueensU.CA [130.15.126.2]) by per.cybercity.dk (8.6.12/8.6.12) with SMTP id KAA14676 for <lk4150@krull.dk>; Wed, 21 Aug 1996 10:57:23 +0200 Received: from cspo.queensu.ca by QUCDN.QueensU.CA (IBM VM SMTP V2R2) with TCP;Wed, 21 Aug 96 05:02:55 EDT Received: by cspo.queensu.ca (SMI-8.6/SMI-SVR4)id EAA16351; Wed, 21 Aug 1996 04:49:32 -0500 Received: from vuse.vanderbilt.edu by cspo.queensu.ca (SMI-8.6/SMI-SVR4) Received: from localhost.vuse.vanderbilt.edu by vuse.vanderbilt.edu (8.7.5/SMI-4.1/VUSE-1.24) Received: by localhost.vuse.vanderbilt.edu (NX5.67f2/NX3.0S) Mime-Version: 1.0 (NeXT Mail 3.3 v118.2) X-Nextstep-Mailer: Mail 3.3 (Enhance 1.3) Received: by NeXT.Mailer (1.118.2.RR) References: <199608210451.VAA14706@mt.arias.net> Sender: owner-circle@cspo.queensu.ca Precedence: bulk Well here is a little, tiny argument against windows: Please replace/remove the C++ stuff yourself. ACMD(do_playerlog) { FILE* f; /* * This code just works on systems with the egrep command (UNIX) * It might be a security risk if you can't trust your gods (in theory) * It produces a slight lag of the MUD when executed depending * on the size of the files in the log directory and the speed of * your computer. This command is helpful to immediately verify * if a DTrapped player who wants reimbursement */ if (!*argument) { send_to_char("Need playername.",ch); return; } sprintf(buf,"egrep '%s' ../syslog > playercheck ; egrep '%s' ../log/* >> playercheck", argument, argument); system(buf); f = fopen("playercheck","r"); fread(buf, MAX_STRING_LENGTH-5,1,f); buf[MAX(0,ftell(f))]=0; fclose(f); page_string(ch->getDescriptor(), buf, 1); } This command is very useful to make gods read the bug and typo files: ACMD(do_sysfile) { FILE* f; char* cp; if(*(argument+1)=='b') cp="misc/bugs"; else if(*(argument+1)=='t') cp="misc/typos"; else if(*(argument+1)=='i') cp="misc/ideas"; else return; f = fopen(cp,"r"); fread(buf, MAX_STRING_LENGTH-5,1,f); buf[MAX(0,ftell(f))]=0; fclose(f); buf[MAX_STRING_LENGTH-1]=0; page_string(ch->getDescriptor(), buf, 1); } If anybody else got good commands like that the code is welcome. ;) Cat. --- _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/_/ _/_/ _/_/ Thomas Katzlberger _/_/ _/_/ katzlbt@vuse.vanderbilt.edu _/_/ _/_/ @aWhiteNeXT.called.garfield _/_/ _/_/ http://www.vuse.vanderbilt.edu/~katzlbt/ _/_/ _/_/ _/_/ _/_/ "You can tune a file system, but you can't tune a fish." _/_/ _/_/ UNIX man page for tunefs. _/_/ _/_/ _/_/ _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/+-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/07/00 PST