Re: receptionist actions

From: Kras Kresh (kras_kresh@hotmail.com)
Date: 02/07/02


>I see the following stock code:
>
>int gen_receptionist(struct char_data * ch, struct char_data * recep,
>                         int cmd, char *arg, int mode)
>{
>  int cost;
>  room_rnum save_room;
>  const char *action_table[] = { "smile", "dance", "sigh", "blush",
>                "burp", "cough", "fart", "twiddle", "yawn" };
>
>  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. The function would be called by the receptionist and thats a mob.
So, it'll never reach the action. So thats why they never do anything.

I suppose this will be fixed on the next patch or cvs update?

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

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