ES2 MUD LIB :: 東方故事二(ES2) 天朝帝國 mudlib 瀏覽展示

/d/snow/npc/lieutenant.c

HOME :: d :: snow :: npc :: lieutenant.c
/*  lieutenant.c

    Copyright (C) 1994-2000 Annihilator 

    This program is a part of ES2 mudlib. Permission is granted to use,
    modify, copy or distribute this program provided this copyright notice
    remains intact and subject to the restriction that this program MAY
    NOT be used in any way for monetary gain.

    Details of terms and conditions is available in the Copyright.ES2 file.
    If you don't receive this file along with this program, write to the
    primary author of ES2 mudlib: Annihilator 
*/

#include 

inherit F_SOLDIER;

void create()
{
    set_name("武官", "lieutenant" );
    set_attr("con", 21);
    set_attr("str", 22);
    set_race("human");
    set_class("fighter");
    set_level(24);

    set_skill("twohanded sword", 80);
    set_skill("blade", 60);
    set_skill("unarmed", 65);
    set_skill("parry", 60);
    set_skill("dodge", 70);

    set("age", 36);
    set("long", "這是一名指揮官兵的武官﹐他們通常是軍人中出類拔萃的佼佼者。\n");
    set("vendetta_mark", "authority");
    set("bounty/martial art", 250);
    set("bounty/martial mastery", 150);
    setup();
    carry_object( STOCK_ARMOR("cloth") )->wear();
    carry_object(__DIR__"obj/leather_armor")->wear();
    carry_object(__DIR__"obj/helmet")->wear();
    carry_object(__DIR__"obj/clothboot")->wear();
    carry_object( STOCK_WEAPON("broadsword") )->wield();
}

void init()
{
    ::init();
    add_action("intercept", "go");
}

int intercept(string arg)
{
    if( (arg!= "north") || !this_player()->visible(this_object()) ) return 0;

    if( this_player()->query_level() >= 10 ) return 0;
    write( name() + "將你攔了下來。\n");
    do_chat((: command, "say 野羊山最近有盜匪出沒﹐你們走別條路吧。":) );
    return 1;
}

int accept_fight(object ob)
{
    do_chat((: command, "emote 瞪了瞪眼﹐說道﹕滾開滾開﹗少在這裡囉唆﹗":));
    return 0;
}
HOME :: d :: snow :: npc :: lieutenant.c