magic_class.c
foundationI_fluffos_v1/lib/secure/SimulEfun/magic_class.c · 392 B
From the archive foundation1_fluffos_v1.zip
Download the archive « Back to the archive contents
// /adm/SimulEfun/magic_class.c
// From the Nightmare Mudlib
// Returns true if this_player() is a magic class
// by Kalinash@Nightmare on May 20, 1994.
#define MAGIC_CLASSES ({"mage", "kataan", "cleric", "monk"})
int magic_class(object who) {
string class;
class = who->query_class();
if(member_array(class, MAGIC_CLASSES) == -1)
return 0;
return 1;
}