Re: A crash bug and 2 questions (fwd)

From: Sean P. Mountcastle (mountcas@pluto.ee.cua.edu)
Date: 02/08/95


Forwarded message:
> On Wed, 8 Feb 1995, Panama N. Red wrote:
> 
> > and put a little line of code after the shopkeeper protection code that 
> > said 
> > if (!IS_NPC(ch) && !IS_NPC(victim))
> > {
> > send_to_char("You can't kill players here!\n\r", ch);
> > return;
> > }

	Why not use the AFF_POISON (for the ch) and if so, then why bother
printing the message.....

	if (!IS_NPC(ch) && !IS_NPC(victim) && !AFF_FLAGGED(ch, AFF_POISON))

	But then again if a poisoned character attacks another player, he
will be able to kill them......  Just add some more checks and another
if statement - that should solve your problem.

	- Sean



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