Re: receptionist actions

From: Daniel A. Koepke (dkoepke@circlemud.org)
Date: 02/07/02


On Fri, 8 Feb 2002, Kras Kresh wrote:

> >  if (!ch->desc || IS_NPC(ch))
> >    return (FALSE);
> >
> >  if (!cmd && !number(0, 5)) {
> >    do_action(recep, NULL, find_command(action_table[number(0, 8)]), 0);
> >    return (FALSE);
> >  }
>
> Ooo... I see now... The first check made it impossible to complete the
> second.

I'm obviously not seeing what you are.  The first check leaves the special
procedure if the person calling it is an NPC or linkdead PC (as is the
case with NPC/forced commands, or NPC activity calls); the second checks
if the special procedure has been invoked by something other than a
command or NPC activity (i.e., fighting).

-dak

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT