#include <ansi.h>
inherit NPC;

void create()
{
        set_name("乐厚", ({ "le hou", "le", "hou" }));
        set("nickname", "大阴阳手");
        set("long", "这人矮矮胖胖，面皮黄肿，五十来岁年纪，嵩山派的一名好手。\n");
        set("gender", "男性");
        set("age", 46);
        set("per", 17);
        set("attitude", "heroism");
        set("shen_type", -1);
        set("str", 29);
        set("int", 23);
        set("con", 23);
        set("dex", 23);
        
        set("max_qi", 3000);
        set("max_jing", 2000);
        set("eff_jingli", 2000);
        set("jiali", 50);
        set("combat_exp", 1300000);
        set("shen", -13000);

    set_skill("force", 150);
    set_skill("songshan-qigong", 150);
    set_skill("dodge", 150);
    set_skill("zhongyuefeng", 150);
    set_skill("strike", 160);
    set_skill("songyang-zhang", 150);
    set_skill("parry", 150);
    set_skill("sword", 150);
    set_skill("songshan-jian", 150);
    set_skill("literate", 100);
    map_skill("force", "songshan-qigong");
    map_skill("dodge", "zhongyuefeng");
    map_skill("strike", "songyang-zhang");
    map_skill("parry", "songshan-jian");
    map_skill("sword", "songshan-jian");
    prepare_skill("strike", "songyang-zhang");
    create_family("嵩山派", 4, "弟子");
        setup();
        carry_object(ARMOR_D("changpao1"))->wear();        
        add_money("gold", 1);
}

void attempt_apprentice(object ob)
{
     if(ob->query_skill("songshan-qigong",1) < 90 ||
        ob->query_skill("songshan-jian",1) < 90 ||
        ob->query_skill("songyang-zhang",1) < 90){
        command("say 你的武功还不够娴熟，再回去练练吧。");
        return;
        }
     command("say 好吧，看样子你还算个练武的料。");
     command("recruit " + ob->query("id"));
}
