//cool@SJ,990605

inherit F_MASTER;
inherit NPC;
#include <ansi.h>
string ask_kurong();

void create()
{
        set_name("段延庆", ({ "duan","yanqing","duan yanqing",}) );
        set("nickname", "四大恶人");
        set("long", "这人是个老者，长须垂胸，面目漆黑。\n");
        set("gender", "男性" );
        set("attitude", "friendly");
        set("age", 59);
        set("str", 25);
        set("int", 26);
        set("con", 28);
        set("dex", 26);
        set("unique", 1);
        set("class", "bonze");
        set("shen", 0);
        set("jing", 2000);
        set("max_jing", 2000);
        set("eff_jingli", 2000);
        set("jiali", 100);
       set("env/一阳指","三叠");
set("vendetta_mark", "lcc");
        set("qi", 4000);
        set("max_qi", 4000);
        set("neili", 4100);
        set("max_neili", 4100); 
        set("combat_exp", 1650000);
        set_skill("qiantian-yiyang", 165);      
        set_skill("tianlong-xiang", 165);       
        set_skill("yiyang-zhi", 170);
        set_skill("duanjia-jianfa",160);   
        set_skill("buddhism", 165);
        set_skill("literate", 120);
        set_skill("parry", 160);
        set_skill("finger", 165);
        set_skill("sword", 160);
        set_skill("dodge", 165);
        set_skill("force", 160);
        set_skill("liumai-shenjian", 120);
        set_skill("medicine", 110);
        map_skill("force", "qiantian-yiyang");
        map_skill("dodge", "tianlong-xiang");
        map_skill("parry", "yiyang-zhi");
        map_skill("sword", "yiyang-zhi");
        map_skill("finger", "yiyang-zhi");
        prepare_skill("finger","yiyang-zhi");   
        create_family("天龙寺", 13, "僧侣");
	set("inquiry", ([
        "name": "贫僧就是本因",
        "龙树院" : "龙树院在雨花阁后面的松树林中",
	"枯荣" : "枯荣大师在龙树院参悟",
	"枯荣大师" : "枯荣大师在龙树院参悟",
	"松树林" : (: ask_kurong :),
        ]) );
        set("chat_chance_combat", 60);
        set("chat_msg_combat",({ 
              (: perform_action, "sword.jueji1" :),
              (: perform_action, "finger.jueji1" :),
        }));            
        setup();
       
        carry_object("/clone/weapon/staff/gangjian")->wield(); 
        carry_object("/d/tls/obj/nianzhu")->wear();
        carry_object("/d/tls/obj/jiasha")->wear();
        carry_object("/d/tls/obj/sengxie")->wear();
}
string ask_kurong()
{
        object me,ob;
		 mapping ob_fam,my_fam;
		ob=this_player();
        me=this_object();
        ob_fam = (mapping)ob->query("family");
        my_fam = (mapping)me->query("family");  
       
      if ((ob_fam && ob_fam["family_name"] != "天龙寺")||ob->query("class") != "bonze") 
         return ("对不起，你不能去打扰枯荣大师！\n");
      if (ob_fam["generation"] == (my_fam["generation"] + 1)){
		  return ("松林很密，容易迷路，你一进林，向北走四步，向西走三步，再向北走一步，西走三步就到了 \n");
		   } else return ("你辈分不够，不能去拜见枯荣大师。 \n");

}

