text: #include <ansi.h>
  inherit NPC;
  
  void create()
  {
      set_name("张康年", ({ "zhang kangnian", "zhang", "kangnian" }));
      set("title", HIR "御前侍卫" NOR);
      set("age", 32);
      set("gender", "男性");
      set("long", "一个身材魁梧的中年男子，他便是御前侍卫张康年。\n");
      set("attitude", "peaceful");
  
      set("str", 30);
      set("dex", 30);
      set("combat_exp", 100000);
      set("shen_type", 1);
  
      set_skill("unarmed", 100);
      set_skill("dodge", 100);
      set_skill("parry", 100);
      set_skill("sword", 100);
      set_skill("force", 100);
      set_temp("apply/attack", 100);
      set_temp("apply/defense", 100);
      set_temp("apply/damage", 60);
      set_temp("apply/armor", 60);
  
         set("chat_chance_combat", 10);
      set("chat_msg_combat", ({
          "张康年喝道：太岁头上居然敢动土？\n",
      }));
      setup();
      carry_object("/d/beijing/npc/obj/sword4")->wield();
         carry_object("/d/beijing/npc/obj/guanfu2")->wear();
  }
  
  void init()
  {
      object ob;
      ::init();
      if (interactive(ob = this_player()) &&
          (int)ob->query_condition("killer")) {
          remove_call_out("kill_ob");
          call_out("kill_ob", 1, ob);
      }
  }
  
  int accept_fight(object me)
  {
      command("say 这可是你活腻了自找的，休得怪我无情。\n");
      me->apply_condition("killer", 500);
      kill_ob(me);
      return 1;
  }
  