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);
}
Was it intended to do nothing there or did I miss a fix?
There is no cmd for actions as I know it.
Also.. should I keep action_table as const or change to static?
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
--
+---------------------------------------------------------------+
| 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