Oh, one other thing, sorry. At the very end, where it's this:
-----------------------------
/*
* Dispatch the command.
*/
(*cmd_table[cmd].do_fun) (ch, argument);
tail_chain ();
return;
}
-----------------------------
You'd want to make it something like this, adding for terminals:
-----------------------------
if (!termcmd)
(*cmd_table[cmd].do_fun) (ch, argument); //normal command
if (!IS_SET (ch->in_room->room_flags, ROOM_TERMINAL))
{
send_to_char("Excuse me?\n\r", ch);
return;
}
(*cmd_table[cmd].do_fun) (ch, argument); //<--would do a terminal
command
tail_chain ();
return;
}
-----------------------------
Err, I'm not sure if you do it by room flags or objects, but the above is
just kind of an example if you did do it by room flags. It's also not the
best example, it's just *a* example. Yeah. :)
Jeremy