magic_class.c

nightmare3_fluffos_v2/lib/secure/SimulEfun/magic_class.c · 392 B

From the archive nightmare3_fluffos_v2.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;
}

Site Stats

Snippets: 1791
Codebases: 571