heh.txt
snippets · 924 B · 2010-03-30
Race exclude fix (from a post by Jacob Masters): adds missing parts to a race exclusion in nanny.
Download « Back to the snippets list
From: Jacob Masters <lobo-koder@mailcity.com>
A while back Tchaerlach posted a race exclude code
in the nanny part of comm.c .
He forgot to add something that could have made it
way easy on your players and hard on your mud :)
Okay even though using the snippet, the class would
not appear as selectable...if you knew which classes
were selectable, you could simply pick that class,
and gain a race with a class multiplier of 0 :)
To prevent this you also need to an or statement just
below the snippet :)
case CON_GET_NEW_CLASS:
iClass = class_lookup(argument);
if (( iClass == -1 )
***-> || (pc_race_table[ch->race].class_mult[iClass] == 0))
{
write_to_buffer( d,
"That's not a selectable class.\n\rWhat IS your class? ", 0 );
return;
}
Not sure you guys caught it :)
Lobo
talkers.skl.com 4000