race_group.c
final_realms_fluffos_v1/lib/std/race_group.c · 754 B
From the archive final_realms_fluffos_v1.zip
Download the archive « Back to the archive contents
// Base race group file...
// Radix - May 14, 1996
inherit "/std/object.c";
mixed *race_group_commands = ({ });
int query_legal_race(string race) { return(1); }
int query_channel() { return 0; }
int add_race_group_command(string name, int add_if_player)
{
if (member_array(name, race_group_commands) != -1)
return 0;
race_group_commands += ({ name, ({ add_if_player }) });
return 1;
}
// Mask this and put your shadows in here, scope to this though!
void start_player(object pl)
{
int i;
if (!pointerp(race_group_commands))
race_group_commands = ({ });
for (i=0;i<sizeof(race_group_commands);i+=2)
if (race_group_commands[i+1][0] || !interactive(pl))
pl->add_known_command(race_group_commands[i]);
}