// guanjia5.c 菜地管事
// Modify By River@SJ

inherit NPC;
#include <ansi.h>

void create()
{
       set_name("菜地管事", ({ "caiyuan guanshi", "guanshi" }) );
       set("gender", "男性" );
       set("age", 30);
       set("long", "他是襄阳武馆的一个管家，专管菜地里大小杂事！\n");
       set("combat_exp", 2500);
       set("attitude", "friendly");

       set("inquiry", ([
             "锄草" : "你就在这老老实实给我锄清杂草，没有我的满意，你别想回去覆命！",
       ]));

       setup();
       carry_object(ARMOR_D("cloth"))->wear();
}
void init()
{
       object ob;
       ::init();
       if( interactive(ob = this_player()) && !is_fighting() ) {
              remove_call_out("greeting");
              call_out("greeting", 1, ob);
       }
}
void greeting(object ob)
{
       if( !ob || environment(ob) != environment() ) return;
       if(ob->query_temp("job_name") != "锄草") return; 
       if(!( present("chu tou", ob))){
           command("hmm "+ob->query("id"));
           command("say 你还没领工具吧，去物品房找六师兄要。");
           return;
       }
       if(!(ob->query_temp("job_name")!="锄草")){
           command("nod "+ob->query("id"));
           command("say "+ RANK_D->query_respect(ob)+ "，你就在这锄草 "HIY HBCYN"chu 草"CYN" 吧。"NOR);
       }
}
