Re: [Circle] CODE

From: Daniel W. Burke (
Date: 08/21/96

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...


| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   |

From 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 <>
To: circle <>
Subject: Re: [Circle] [OLDBIE] [CODE] Running Under Win95
Date: Wed, 21 Aug 96 09:49:00
Message-ID: <>
Reply-To: (katzlbt)
X-POP3-Rcpt: lk4150@per
Return-Path: <>
Received: from QUCDN.QueensU.CA (QUCDN.QueensU.CA []) by (8.6.12/8.6.12) with SMTP id KAA14676 for <>; Wed, 21 Aug 1996 10:57:23 +0200
Received: from by QUCDN.QueensU.CA (IBM VM SMTP V2R2) with TCP;Wed, 21 Aug 96 05:02:55 EDT
Received: by (SMI-8.6/SMI-SVR4)id EAA16351; Wed, 21 Aug 1996 04:49:32 -0500
Received: from by (SMI-8.6/SMI-SVR4)
Received: from by (8.7.5/SMI-4.1/VUSE-1.24)
Received: by (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: <>
Precedence: bulk

Well here is a little, tiny argument against windows:
Please replace/remove the C++ stuff yourself.

	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);
	sprintf(buf,"egrep '%s' ../syslog > playercheck ; egrep '%s' ../log/* >> playercheck", 
	        argument, argument);
	f = fopen("playercheck","r");
	fread(buf, MAX_STRING_LENGTH-5,1,f);
	page_string(ch->getDescriptor(), buf, 1);

This command is very useful to make gods read the 
bug and typo files:

	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);
	page_string(ch->getDescriptor(), buf, 1);

If anybody else got good commands 
like that the code is welcome. ;)

_/_/                                                            _/_/
_/_/  Thomas Katzlberger                                        _/_/
_/_/                               _/_/
_/_/  @aWhiteNeXT.called.garfield                               _/_/
_/_/                  _/_/
_/_/                                                            _/_/
_/_/  "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: |
|   |

This archive was generated by hypermail 2b30 : 12/07/00 PST