Re: Spec Proc problems...

From: Carter T. Shock (ctso@umiacs.UMD.EDU)
Date: 07/20/95


> 
> 
> I've coded in a few spec procs and have been noticing a few problems with 
> them. 
> 
> First, ok, here's the code for one of 'em...
> 
> SPECIAL(spec_evil_cleric)
> {
>     CHAR_DATA *victim;
>     CHAR_DATA *v_next;
> 

right about here add the line:

      if(cmd)
          return FALSE;

>     if (!FIGHTING(ch))
>         return FALSE;
> 
>   for (victim = world[ch->in_room].people; victim; victim = victim->next_in_room)
>     {

Ya do this so the special doesn't try to respond to all of the 
user's commands.
	-Todd



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