Esempio n. 1
0
mixed do_throw_obj_word_obj(object what, string word, object where) {
    object enemy;

    if( where && living(where) && (int)what->GetClass() > 1 ) {
        enemy = where;
    }
    else {
        enemy = 0;
    }
    if( this_player()->GetInCombat() || enemy ) {
        this_player()->eventPrint("You prepare to throw " +
          (string)what->GetShort() + ".");
        this_player()->SetAttack(enemy, (: eventThrow, this_player(), what,
            where :), (enemy ? ROUND_WEAPON :
            ROUND_OTHER));
        return 1;
    }
int AllowPass(object who, object what){
    if(!who) return 0;
    if(!objectp(who)) return 0;
    if(who->GetClass() == "thief" || adminp(who)) return 1; 
    return ::AllowPass(who, what);
}
Esempio n. 3
0
File: roshd.c Progetto: Elohim/FGmud
int AllowPass(object who, object what){
    if(who->GetClass() == "fighter") return 1;
    return ::AllowPass(who, what);
}