// NPC: /d/huashan/npc/mmr.c
// Date: Look 99/03/25

inherit NPC;
#include <ansi.h>
#include "/d/huashan/npc/skill.h"
#include "/d/huashan/npc/mmr.h"
string ask_leave();
void create()
{
        set_name("蒙面人", ({ "mengmian ren", "ren" }) );
        set("gender", "男性");
        set("long",
                "这家伙满脸横肉一付凶神恶煞的模样，令人望而生畏。\n");
        set("shen", -15000);
        set("attitude", "killer");
        set("age", random(20)+25);
        set("str", 30+random(5));
        set("int",30+random(5));  
        set("con",30+random(5));     
        set("dex",30+random(5));
        set("combat_exp", 9999999);
        set("shen_type", -1);
        set("max_qi",9999);
        set("eff_qi",9999);
        set("qi",9999);
        set("max_jing",9999);
        set("eff_jing",9999);
        set("jing",9999);
        set("max_jingli",9999);
        set("eff_jingli",9999);
        set("jingli",9999);
        set("neili",9999);
        set("jiali", 99);
        set("max_neili",9999);
        set("score", 10000);
        
        set("chat_chance", 20);
        set("chat_msg", ({                                                                                                                      
             (: random_move :),           
        }));

        
        set_skill("force", 300);
        set_skill("dodge", 300);
        set_skill("parry", 300);
        set_skill("unarmed", 300);
        set("inquiry", ([
        "较量" : (: ask_leave :), //add by caiji
         ]) );
        if (random(10) < 3)
        add_money("gold", 1);

        setup();
        carry_object(ARMOR_D("armor/cloth"))->wear();
}

        
//caiji受river启发而加
string ask_leave()
{
        object me;
        me = this_object();
        if(environment(me)->query("no_fight")){
        	 random_move();
        }
        return "就在这里，动手吧！\n";

}
