ZMJAI_OnEvent(int zmjEvt)
{
	//Say(1, "Recv event : ", zmjEvt);
	return zmjEvt-0;
}
#include "..\PScriptLib\zmjeve.pst"
#include "..\PScriptLib\zmjcfg.pst"

// 第九章
int Rule = 1;
int RoundTime = 100;
int PlayerSpawn = 0;
int PlayerSpawnDir = 90;
int PlayerWeapon = 43;
int PlayerWeapon2 = 62;
int PlayerHP = 6000;

int q;
int cd=0;
int qgt1=0;
int qgt2=0;
int qzy1=0;
int qzy2=0;
int qzy3=0;
int qzz=0;
int qr=0;
int qs=0;
int qb=0;
int qg=0;
int qx1=0;
int qx2=0;
int qx3=0;
int qx4=0;
int qx5=0;
int qx6=0;
int qx7=0;
int qx8=0;
int q1x1=0;
int q1x2=0;
int q1x3=0;
int q1x4=0;
int q1x5=0;
int q1x6=0;
int q2x1=0;
int q2x2=0;
int q2x3=0;
int q2x4=0;
int q2x5=0;
int q2x6=0;
int q2x7=0;
int qyhxw=0;
int qjq1=0;
int qjq2=0;
int qjq3=0;
int qjx=0;
int qay=0;
int qayx1=0;
int qayx2=0;
int qayx3=0;
int qayx4=0;
int qsm1=0;
int qsm2=0;
int qlzy=0;
int qth=0;
int qzx=0;
int qwg=0;
int qng=0;
int qclf=0;
int qlhy=0;
int qgwc=0;
int qyzxs=0;
int qlyqs=0;
int qlzys=0;
int qths=0;
int qzxs=0;
int qwgs=0;
int qngs=0;
int qhpl=0;
int qhpf=0;
int qhpl1=0;
int qhpf1=0;
int qhpc=0;
int qch=0;
int qwc=0;
int qks=0;
int q200=0;
int q201=0;
int t=0;
int tzy=0;
int tzy2=0;
int tzy3=0;
int tzz=0;
int tgt1=0;
int tgt2=0;
int tr=0;
int ts=0;
int tb=0;
int tg=0;
int tx=0;
int tdy=0;
int tjq1=0;
int tjq2=0;
int tjq3=0;
int tay=0;
int tjx=0;
int tsm=0;
int tngs=0;
int tf=0;
int ty=0;
int thp=0;
int tch=0;
int tks=0;
int t5=0;
int v= 0;
int wqpd= 0;
int wqpd1= 0;
int xlpd=0;
int wqt= 0;

int mc1=0;
int mc2=0;
int mc3=0;
int mc4=0;
int mc5=0;
int mc6=0;
int mc7=0;
int mc8=0;
int mc9=0;
int mc10=0;
int tm1=0;
int tm2=0;
int tm3=0;
int tm4=0;
int tm5=0;
int tm6=0;
int tm7=0;
int tm8=0;
int tm9=0;
int tm10=0;

Save(string SFile, int s)
{
	int f = OpenFile(SFile,"w");
	WriteFile(f,s);
	CloseFile(f);
	return 1;
}
Load(string SFile)
{
	int f = OpenFile(SFile,"r");
	return ReadFile(f);
	CloseFile(f);
}

OnUpdate()
{
	int evt = ZMJAI_OnHandler();
	int player = GetAnyChar("player");
	if (player < 0)
	{
		return 0;
	}
	
	int c = GetAnyChar("李知言");
	int c2 = GetAnyChar("叛军·甲");
	int c3 = GetAnyChar("叛军·乙");
	int c4 = GetAnyChar("攻塔兵·甲");
	int c5 = GetAnyChar("攻塔兵·乙");
	int c6 = GetAnyChar("火铳兵");
	int c7 = GetAnyChar("李知言");
	int c8 = GetAnyChar("舒书叔");
	int c9 = GetAnyChar("叛军·甲");
	int c10 = GetAnyChar("叛军·乙");
	int c11 = GetAnyChar("匪兵·甲");
	int c12 = GetAnyChar("匪兵·乙");
	int c13 = GetAnyChar("叛军·甲");
	int c14 = GetAnyChar("叛军·乙");
	int c15 = GetAnyChar("匪兵·甲");
	int c16 = GetAnyChar("匪兵·乙");
	int c17 = GetAnyChar("仁勇校尉");
	int c18 = GetAnyChar("宗泽");
	int c19 = GetAnyChar("亲兵·甲");
	int c20 = GetAnyChar("亲兵·乙");
	int c21 = GetAnyChar("亲兵·丙");
	int c22 = GetAnyChar("亲兵·丁");
	int c23 = GetAnyChar("叛军·甲");
	int c24 = GetAnyChar("叛军·乙");
	int c25 = GetAnyChar("叛军·丙");
	int c26 = GetAnyChar("叛军·丁");
	int c27 = GetAnyChar("匪兵·甲");
	int c28 = GetAnyChar("匪兵·乙");
	int c29 = GetAnyChar("匪兵·丙");
	int c30 = GetAnyChar("匪兵·丁");
	int c31 = GetAnyChar("李知言");
	int c32 = GetAnyChar("汤 怀");
	int c33 = GetAnyChar("王 贵");
	int c34 = GetAnyChar("张 显");
	int c35 = GetAnyChar("牛 皋");
	int c36 = GetAnyChar("【李知言】");
	int c37 = GetAnyChar("【汤 怀】");
	int c38 = GetAnyChar("【张 显】");
	int c39 = GetAnyChar("【王 贵】");
	int c40 = GetAnyChar("【牛 皋】");
	int c41 = GetAnyChar("宗泽");
	int c42 = GetAnyChar("李知言");
	int c43 = GetAnyChar(" ");
	int c44 = GetAnyChar("  ");
	int c45 = GetAnyChar("宣节校尉");
	int c46 = GetAnyChar("叛军·甲");
	int c47 = GetAnyChar("叛军·乙");
	int c48 = GetAnyChar("翊麾校尉");
	int c49 = GetAnyChar("叛军·甲");
	int c50 = GetAnyChar("叛军·乙");
	int c51 = GetAnyChar("叛军·丙");
	int c52 = GetAnyChar("叛军·丁");
	int c53 = GetAnyChar("叛军·戊");
	int c54 = GetAnyChar("叛军·己");
	int c55 = GetAnyChar("杨再兴");
	int c56 = GetAnyChar("罗延庆");
	int c57 = GetAnyChar("传令兵");
	int c58 = GetAnyChar("博渤伯");
	int c59 = GetAnyChar("【天枢】师闻墨");
	int c60 = GetAnyChar("【天权】项西楚");
	int c61 = GetAnyChar("【天玑】丘长春");
	int c62 = GetAnyChar("汤 怀");
	int c63 = GetAnyChar("张 显");
	int c64 = GetAnyChar("王 贵");
	int c65 = GetAnyChar("牛 皋");
	int c66 = GetAnyChar("振威校尉");
	int c67 = GetAnyChar("叛军精锐·甲");
	int c68 = GetAnyChar("叛军精锐·乙");
	int c69 = GetAnyChar("叛军精锐·丙");
	int c70 = GetAnyChar("叛军精锐·丁");
	int c71 = GetAnyChar("叛军精锐·戊");
	int c72 = GetAnyChar("叛军精锐·己");
	int c73 = GetAnyChar("叛军精锐·庚");
	int c74 = GetAnyChar("汤 怀");
	int c75 = GetAnyChar("竹爷");
	int c76 = GetAnyChar("宣节校尉");
	int c77 = GetAnyChar("叛军·甲");
	int c78 = GetAnyChar("叛军·乙");
	int c79 = GetAnyChar("叛军·丙");
	int c80 = GetAnyChar("叛军·丁");
	int c81 = GetAnyChar("叛军·戊");
	int c82 = GetAnyChar("李知言");
	int c83 = GetAnyChar("张 显");
	int c84 = GetAnyChar("艾叶");
	int c85 = GetAnyChar("匪兵·甲");
	int c86 = GetAnyChar("匪兵·乙");
	int c87 = GetAnyChar("匪兵·丙");
	int c88 = GetAnyChar("匪兵·丁");
	int c89 = GetAnyChar("王 贵");
	int c90 = GetAnyChar("秀秀");
	int c91 = GetAnyChar("神木化身·甲");
	int c92 = GetAnyChar("神木化身·乙");
	int c93 = GetAnyChar("神木化身·丙");
	int c94 = GetAnyChar("神木化身·丁");
	int c95 = GetAnyChar("神木化身·戊");
	int c96 = GetAnyChar("神木化身·己");
	int c97 = GetAnyChar(" ");
	int c98 = GetAnyChar("牛 皋");
	int c99 = GetAnyChar("反僧·甲");
	int c100 = GetAnyChar("反僧·乙");
	int c101 = GetAnyChar("反僧·丙");
	int c102 = GetAnyChar("反僧·丁");
	int c103 = GetAnyChar("反僧·戊");
	int c104 = GetAnyChar("反僧·己");
	int c105 = GetAnyChar("杨再兴");
	int c106 = GetAnyChar("罗延庆");
	int c107 = GetAnyChar("普念");
	int c108 = GetAnyChar("反僧·甲");
	int c109 = GetAnyChar("反僧·乙");
	int c110 = GetAnyChar("反僧·丙");
	int c111 = GetAnyChar("反僧·丁");
	int c112 = GetAnyChar("反僧·戊");
	int c113 = GetAnyChar("洛花颜");
	int c114 = GetAnyChar("成鸾凤");
	int c115 = GetAnyChar("云尘道长");
	int c116 = GetAnyChar("古谷姑");
	int c117 = GetAnyChar("剑儒·高文才");
	int c118 = GetAnyChar("李朝宗");
	int c119 = GetAnyChar("宗泽");
	int c120 = GetAnyChar("看守·甲");
	int c121 = GetAnyChar("看守·乙");
	int now=GetGameTime();
	int gameover = 0;
	///
	if(cd==0)
	{
		if(Load("Level\sa10.sav")==0)
		{
			cd=9;
			q=0;
			t=now+1;
			mc1=1;
		}
		if(Load("Level\sa10.sav")==1)
		{
			cd=9;
			q=22;
			t=now+1;
			mc1=1;
		}
		if(Load("Level\sa10.sav")==2)
		{
			cd=9;
			q=39;
			t=now+1;
			mc1=1;
		}
		if(Load("Level\sa10.sav")==3)
		{
			if(Load("Level\sa10-1.sav")==1)
			{
				cd=9;
				qng=60;
				tdy=now+2;
				mc10=1;
				q=99;
			}
			if(Load("Level\sa10-2.sav")==1)
			{
				cd=9;
				qwg=55;
				tdy=now+2;
				mc9=1;
				q=99;
			}
			if(Load("Level\sa10-3.sav")==1)
			{
				cd=9;
				qzx=50;
				tdy=now+2;
				mc8=1;
				q=99;
			}
			if(Load("Level\sa10-4.sav")==1)
			{
				cd=9;
				qth=56;
				tdy=now+2;
				mc7=1;
				q=99;
			}
			if(Load("Level\sa10-5.sav")==1)
			{
				cd=9;
				qlzy=61;
				tdy=now+1;
				mc6=1;
				q=99;
			}
		}
		if(Load("Level\sa10.sav")==4)
		{
			cd=9;
			q=43;
			t=now+1;
			mc1=1;
		}
		if(Load("Level\sa10.sav")==5)
		{
			cd=9;
			q=53;
			t=now+1;
		}
	}
	
	if(q==0)
	{
		AddNPC("9-1");
		AddNPC("9-2");
		AddNPC("9-3");
		AddNPC("9-4");
		AddNPC("9-5");
		AddNPC("9-6");
		mc1=1;
		q=1;
	}
	if(q==1&&c>0&&c2>0&&c3>0&&c4>0&&c5>0&&c6>0)
	{
		PlayerPerform("say", "【顺着小溪往前走，找到李知言。】");
		q=2;
		qgt1=1;
		qgt2=1;
		qr=1;
	}
	
	if(q==2)
	{
		SetTarget(0, "waypoint", 4);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=250)
		{
			Perform(c3,"say", "什么人！杀！");
			Perform(c3,"pause",9);
			Perform(c3,"say", "只要捉了她，嘿嘿嘿~~");
			Perform(c3,"pause",3);
			Perform(c3,"say", "那又如何？她还能在那上面待一辈子不成？");
			Perform(c3,"pause",3);
			
			Perform(c2,"say", "想不到这小娘皮还挺顽强。");
			
			PlayerPerform("say", "狗胆包天！看枪！");
			PlayerPerform("pause",1);
			PlayerPerform("block", 0);
			PlayerPerform("say", "（李姑娘果然在这里。）");
			PlayerPerform("pause",9);
			PlayerPerform("block", 1);
			q=3;
		}
	}
	if(q==3&&GetHP(c2)<=0&&GetHP(c3)<=0)
	{
		Perform(c,"say", "狗贼！痴心妄想！姑娘宁为玉碎！");
		
		PlayerPerform("block", 0);
		PlayerPerform("say", "【注意！需在【一分钟内】到达李知言身边，否则任务失败。】");
		PlayerPerform("pause",2);
		PlayerPerform("block", 1);
		PlayerPerform("say", "【注意！需将敌人【全部解决】，方可营救李知言。】");
		PlayerPerform("pause",2);
		PlayerPerform("block", 1);
		PlayerPerform("say", "【注意！两名【攻塔兵】必须快速暗杀！否则任务失败。】");
		PlayerPerform("pause",3);
		PlayerPerform("block", 1);
		PlayerPerform("say", "李姑娘【在上面】！");
		PlayerPerform("pause",3);
		PlayerPerform("block", 1);
		q=4;
		qr=9;
		t=now+12;
	}
	if(q==4&&now>t)
	{
		PlayerPerform("say", "【开始计时！】");
		q=99;
		qzy1=1;
		qzy2=1;
		tzy=now+30;
	}
	if(q==5&&now>t)
	{
		AddNPC("9-7");
		AddNPC("9-8");
		q=6;
	}
	if(q==6&&c7>=0&&c8>=0)
	{
		Perform(c7,"say", "岳大哥，你快过来！");
		
		PlayerPerform("say", "【注意！与李知言见面后，舒书叔将离场。】");
		PlayerPerform("pause",2);
		PlayerPerform("say", "【提示：找到“舒书叔”，可获得【永久攻击力加成】。】");
		PlayerPerform("pause",1);
		PlayerPerform("say", "【提示：找到“舒书叔”，可获得【永久攻击力加成】。】");
		PlayerPerform("pause",1);
		PlayerPerform("say", "【提示：隐藏NPC“舒书叔”出现！】");
		PlayerPerform("pause",1);
		PlayerPerform("say", "【提示：隐藏NPC“舒书叔”出现！】");
		PlayerPerform("pause",2);
		PlayerPerform("say", "【主线：返回出生点】");
		PlayerPerform("pause",2);
		q=7;
		qs=1;
	}
	if(q==7)
	{
		SetTarget(0, "waypoint", 14);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=100)
		{
			Perform(c8,"say", "我是舒书叔，叔叔去也~！");
			qs=9;
			q=8;
			t=now+2;
		}
	}
	if(q==8&&now>t)
	{
		RemoveNPC(c8);
		q=9;
	}
	if(q==9)
	{
		Perform(c7,"say", "（知言妹子……他不再称我‘李姑娘’了！）");
		Perform(c7,"pause",9);
		Perform(c7,"say", "岳……岳大哥……");
		Perform(c7,"pause",6);
		Perform(c7,"say", "岳大哥，都是我不好，拖累了你。");
		Perform(c7, "faceto", player);
		
		PlayerPerform("block", 0);
		PlayerPerform("pause",3);
		PlayerPerform("block", 1);
		PlayerPerform("say", "你平安无事，我才能专心杀敌。");
		PlayerPerform("pause",3);
		PlayerPerform("block", 1);
		PlayerPerform("say", "知言妹子，你既唤我‘岳大哥’，又岂能说拖累？");
		PlayerPerform("pause",6);
		PlayerPerform("block", 1);
		PlayerPerform("say", "你……唤我什么？");
		PlayerPerform("pause",3);
		PlayerPerform("block", 1);
		q=10;
		t=now+15;
	}
	if(q==10&&now>t)
	{
		AddNPC("9-9");
		AddNPC("9-10");
		AddNPC("9-11");
		AddNPC("9-12");
		q=11;
	}
	if(q==11&&c9>=0&&c10>=0&&c11>=0&&c12>=0)
	{
		Perform(c7, "faceto", c11);
		Perform(c9, "faceto", c7);
		Perform(c10, "faceto", c7);
		Perform(c11, "faceto", c7);
		Perform(c12, "faceto", c7);
		q=12;
	}
	if(q==12)
	{
		Perform(c12,"guard",8);
		Perform(c11,"guard",8);
		Perform(c10,"guard",8);
		Perform(c9,"guard",6);
		
		Perform(c9,"say", "抓了这臭花娘，旁边的小子顺手宰了便是！");
		Perform(c9,"pause", 3);
		Perform(c9,"say", "找到了！这臭花娘躲在这里！");
		
		Perform(c7,"say", "岳大哥说哪里话？知言和你共进退！");
		Perform(c7,"pause",9);
		
		PlayerPerform("block", 0);
		PlayerPerform("say", "知言妹子，你躲在我身后！");
		PlayerPerform("pause",6);
		PlayerPerform("block", 1);
		q=13;
		t=now+7;
	}
	if(q==13&&now>t)
	{
		ChangeBehavior(c7, "follow", player);
		q=14;
	}
	if(q==14&&GetHP(c9)<=0&&GetHP(c10)<=0&&GetHP(c11)<=0&&GetHP(c12)<=0)
	{
		q=15;
		t=now+1;
	}
	if(q==15&&now>t)
	{
		RemoveNPC(c9);
		RemoveNPC(c10);
		RemoveNPC(c11);
		RemoveNPC(c12);
		q=16;
	}
	if(q==16)
	{
	    Perform(c7,"say", "好！一起冲！");
		Perform(c7,"pause",6);
		
		PlayerPerform("block", 0);
		PlayerPerform("say", "知言妹子，随我冲入中军营救宗恩师！");
		PlayerPerform("pause",3);
		PlayerPerform("say", "看情形，这群外围的叛军尚不知天兵已至，故而还有心胡作非为。");
		PlayerPerform("block", 1);
		q=17;
		t=now+5;
	}
	if(q==17&&now>t)
	{
		AddNPC("9-13");
		AddNPC("9-14");
		AddNPC("9-15");
		AddNPC("9-16");
		AddNPC("9-17");
		q=18;
	}
	if(q==18&&c13>=0&&c14>=0&&c15>=0&&c16>=0&&c17>=0)
	{
		SetTarget(0, "waypoint", 23);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=500)
		{
			Perform(c13,"guard",3);
		    Perform(c14,"guard",3);
		    Perform(c15,"guard",3);
		    Perform(c16,"guard",3);
			Perform(c7,"guard",3);
			
			Perform(c17,"say", "那……那又如何，给……给我杀！");
		    Perform(c17,"pause",3);
			
			Perform(c13,"say", "校……校尉，那人便是枪挑小梁王的岳飞！");
			Perform(c13, "faceto", player);
			Perform(c14, "faceto", player);
			Perform(c15, "faceto", player);
			Perform(c16, "faceto", player);
			Perform(c17, "faceto", player);
			
			PlayerPerform("block", 0);
			PlayerPerform("pause",3);
			PlayerPerform("block", 1);
			q=19;
			t=now+3;
		}
	}
	if(q==19&&now>t)
	{
		ChangeBehavior(c13, "follow", c17);
		ChangeBehavior(c14, "follow", c17);
		ChangeBehavior(c15, "follow", c17);
		ChangeBehavior(c16, "follow", c17);
		ChangeBehavior(c17, "follow", player);
		q=20;
	}
	if(q==20&&GetHP(c13)<=0&&GetHP(c14)<=0&&GetHP(c15)<=0&&GetHP(c16)<=0&&GetHP(c17)<=0)
	{
		PlayerPerform("block", 1);
		q=21;
		t=now+1;
	}
	if(q==21&&now>t)
	{
		RemoveNPC(c7);
		RemoveNPC(c13);
		RemoveNPC(c14);
		RemoveNPC(c15);
		RemoveNPC(c16);
		RemoveNPC(c17);
		PlayerPerform("block", 1);
		q=22;
		t=now+1;
	}
	if(q==22&&now>t)
	{
		PlayerPerform("block", 0);
		PlayerPerform("say", "【关卡进度已保存】");
		PlayerPerform("pause", 1);
		PlayerPerform("say", "【关卡进度已保存】");
		PlayerPerform("block", 1);
		q=23;
		t=now+5;
		Save("Level\sa10.sav",1);
	}
	if(q==23&&now>t)
	{
		AddNPC("9-18");
		AddNPC("9-19");
		AddNPC("9-20");
		AddNPC("9-21");
		AddNPC("9-22");
		AddNPC("9-31");
		PlayerPerform("block", 1);
		q=24;
		t=now+3;
	}
	if(q==24&&now>t&&c18>=0&&c19>=0&&c20>=0&&c21>=0&&c22>=0&&c31>=0)
	{
		Perform(c31,"say", "岳大哥，我备了些金疮药，分与你一些。");
		Perform(c31,"pause",3);
		Perform(c31, "faceto", player);
		
		PlayerPerform("block", 0);
		PlayerPerform("say", "妹子有心了，走吧。");
		PlayerPerform("pause",6);
		PlayerPerform("say", "继续冲！");
		PlayerPerform("block", 1);
		q=25;
		t=now+5;
	}
	if(q==25&&now>t)
	{
		PlayerPerform("use",15);
		q=26;
	}
	if(q==26)
	{
		SetTarget(0, "waypoint", 68);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=200)
		{
			Perform(c18,"say", "好狗贼！做你的清秋大梦！看刀！");
			
			PlayerPerform("block", 0);
			PlayerPerform("say", "是恩师的声音！妹子，快！");
		    PlayerPerform("pause",3);
		    PlayerPerform("block", 1);
			q=27;
			qx1=1;
			qx2=1;
			qx3=1;
			qx4=1;
			qx5=1;
			qx6=1;
			qx7=1;
			qx8=1;
		}
	}
	if(q==27)
	{
		SetTarget(0, "waypoint", 77);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=150)
		{
			ChangeBehavior(c18,"follow", player);
			Perform(c18,"say", "贤契！老夫在此！");
			Perform(c18,"pause",3);
		
			Perform(c23,"say", "枪挑小梁王的岳飞杀进来啦！");
			Perform(c23,"pause",3);
			
			PlayerPerform("say", "【提示：宗泽亲兵死完之后，队友才会进入。】");
		    PlayerPerform("pause",3);
			PlayerPerform("say", "恩师！门生来迟，望乞恕罪！");
		    PlayerPerform("pause",9);
			PlayerPerform("say", "贼子休要张狂！岳飞来也！");
			q=28;
			qzz=1;
			qzy3=1;
		}
	}
	if(q==28&&GetHP(c19)<=0&&GetHP(c20)<=0&&GetHP(c21)<=0&&GetHP(c22)<=0)
	{
		t=now+1;
		q=29;
	}
	if(q==29&&now>t)
	{
		RemoveNPC(c19);
		RemoveNPC(c20);
		RemoveNPC(c21);
		RemoveNPC(c22);
		q=30;
		t=now+1;
	}
	if(q==30&&now>t)
	{
		AddNPC("9-32");
		AddNPC("9-33");
		AddNPC("9-34");
		AddNPC("9-35");
		q=31;
	}
	if(q==31&&c32>=0&&c33>=0&&c34>=0&&c35>=0)
	{
		Perform(c32,"say", "岳大哥，我们来啦！");
		Perform(c18,"use",16);
		Perform(c18,"use",16);
		Perform(c18,"use",16);
		Perform(c18,"use",16);
		PlayerPerform("say", "众位兄弟，护着恩师，一并杀将出去！");
		PlayerPerform("pause",3);
		q=32;
		t=now+40;
	}
	if(q==32&&now>t)
	{
		qx1=9;
		qx2=9;
		qx3=9;
		qx4=9;
		qx5=9;
		qx6=9;
		qx7=9;
		qx8=9;
		q=33;
	}
	if(q==33&&GetHP(c23)<=0&&GetHP(c24)<=0&&GetHP(c25)<=0&&GetHP(c26)<=0&&GetHP(c27)<=0&&GetHP(c28)<=0&&GetHP(c29)<=0&&GetHP(c30)<=0)
	{
		q=34;
		t=now+1;
	}
	if(q==34&&now>t)
	{
		RemoveNPC(c23);
		RemoveNPC(c24);
		RemoveNPC(c25);
		RemoveNPC(c26);
		RemoveNPC(c27);
		RemoveNPC(c28);
		RemoveNPC(c29);
		RemoveNPC(c30);
		PlayerPerform("block", 1);
		q=35;
	}
	if(q==35)
	{
		ChangeBehavior(c18,"idle");
		ChangeBehavior(c31,"idle");
		ChangeBehavior(c32,"idle");
		ChangeBehavior(c33,"idle");
		ChangeBehavior(c34,"idle");
		ChangeBehavior(c35,"idle");
		PlayerPerform("block", 1);
		q=36;
		
	}
	if(q==36)
	{
		Perform(c18,"say", "如此再好不过。老夫便去点齐兵马，贤契可随后跟来。");
	    Perform(c18,"pause",6);
		Perform(c18,"say", "既如此，诸位贤契且随老夫再冲杀一阵，定要将那高文才斩于刀下！");
	    Perform(c18,"pause",6);
		Perform(c18,"say", "贤契一班兄弟，自有好音！");
	    Perform(c18,"pause",3);
		Perform(c18,"say", "待收拾了高文才这班叛贼，老夫再奏上官家……");
	    Perform(c18,"pause",3);
		Perform(c18,"say", "如今天纵贤契，实乃我大宋之福，中兴可望。");
	    Perform(c18,"pause",3);
		Perform(c18,"say", "怎奈朝中尽是些贪生怕死之徒！");
	    Perform(c18,"pause",3);
		Perform(c18,"say", "果真如此！那完颜兀术欲兴兵犯我疆界，老夫早已奏明官家及早防范……");
	    Perform(c18,"pause",27);
		
		PlayerPerform("say", "哪个兄弟愿同愚兄一起？");
		PlayerPerform("pause",3);
		PlayerPerform("say", "众位兄弟，愚兄打算留下一人随我捣毁兵器库，余人则护随恩师左右。");
		PlayerPerform("pause",6);
		PlayerPerform("say", "恩师，此处乃是高文才的兵器库，晚生打算将其摧毁。");
		PlayerPerform("pause",6);
		PlayerPerform("say", "晚生等叩谢恩师！");
		PlayerPerform("pause",18);
		PlayerPerform("say", "其心昭昭，妇孺皆明，当真可恶至极！");
		PlayerPerform("pause",3);
		PlayerPerform("say", "被封为“昌平王”、“扫南大元帅”，总领了六国三川兵马。");
		PlayerPerform("pause",3);
		PlayerPerform("say", "这完颜兀术便是北地女真国主完颜阿骨打膝下第四子……");
		PlayerPerform("pause",3);
		PlayerPerform("say", "家师言道，这高文才实则是听命于【完颜兀术】。");
		PlayerPerform("pause",3);
		PlayerPerform("say", "而这高文才，更是罪该万死，他竟私通番邦，欲对我大宋不利！");
		PlayerPerform("pause",3);
		PlayerPerform("say", "实则这一切的幕后主使，皆是高文才一人。");
		PlayerPerform("pause",3);
		PlayerPerform("say", "又意图笼络天下武生，并于京畿四周安营屯兵，更有犯上作乱之嫌。");
		PlayerPerform("pause",3);
		PlayerPerform("say", "那小梁王柴桂进京争夺武状元，向朝廷权贵行贿……");
		PlayerPerform("pause",3);
		PlayerPerform("say", "恩师，晚生从家师云尘道长处获知一道消息。");
		PlayerPerform("block", 1);
		
		Perform(c18, "faceto", player);
		Perform(c31, "faceto", player);
		Perform(c32, "faceto", player);
		Perform(c33, "faceto", player);
		Perform(c34, "faceto", player);
		Perform(c35, "faceto", player);
		q=37;
		t=now+50;
	}
	if(q==37&&now>t)
	{
		Perform(c31,"say", "岳大哥，知言说过，与你共同进退。");
	    Perform(c31,"pause",6);
		
		Perform(c33,"say", "牛皋兄弟，便是论资排辈，你也还差得远呢。");
	    Perform(c33,"pause",3);
		
		Perform(c35,"say", "此事不消多说，自是我与岳大哥一起。");
		
		PlayerPerform("say", "【该选谁同行呢？】");
		PlayerPerform("pause",3);
		PlayerPerform("say", "就由愚兄点名罢了。");
		PlayerPerform("pause",3);
		PlayerPerform("say", "诸位兄弟休要争论，护着恩师才是首要，倘有闪失，干系不小！");
		PlayerPerform("pause",9);
		PlayerPerform("block", 1);
		q=38;
		qzy3=9;
		qzz=9;
		t=now+12;
	}
	if(q==38&&now>t)
	{
		RemoveNPC(c18);
		RemoveNPC(c31);
		RemoveNPC(c32);
		RemoveNPC(c33);
		RemoveNPC(c34);
		RemoveNPC(c35);
		q=39;
	}
	if(q==39)
	{
		PlayerPerform("block", 0);
		PlayerPerform("say", "【关卡进度已保存】");
		PlayerPerform("pause", 1);
		PlayerPerform("say", "【关卡进度已保存】");
		PlayerPerform("block", 1);
		q=40;
		t=now+3;
		Save("Level\sa10.sav",2);
	}
	if(q==40&&now>t)
	{
		AddNPC("9-36");
		AddNPC("9-37");
		AddNPC("9-38");
		AddNPC("9-39");
		AddNPC("9-40");
		AddNPC("9-41");
		q=41;
		t=now+3;
	}
	if(q==41&&c36>=0&&c37>=0&&c38>=0&&c39>=0&&c40>=0&&c41>=0&&now>t)
	{
		Perform(c41, "faceto", c38);
		
		PlayerPerform("say", "【请君做出选择。】");
		PlayerPerform("block", 0);
		PlayerPerform("pause", 3);
		PlayerPerform("say", "【注意：所选队友不同，剧情也略有差别，并且获得奖励也不一样。】");
		PlayerPerform("block", 1);
		PlayerPerform("pause", 3);
		PlayerPerform("say", "【欲选择谁同行，便靠近并【攻击一次】。】");
		PlayerPerform("block", 1);
		PlayerPerform("pause", 3);
		PlayerPerform("say", "【提示：请选择同行队友。】");
		PlayerPerform("block", 1);
		qlzy=1;
		qth=1;
		qzx=1;
		qwg=1;
		qng=1;
		q=99;
	}
	if(q==42&&now>t)
	{
		PlayerPerform("block", 0);
		PlayerPerform("use", 15);
		PlayerPerform("say", "【关卡进度已保存】");
		PlayerPerform("pause", 1);
		PlayerPerform("say", "【关卡进度已保存】");
		PlayerPerform("block", 1);
		t=now+5;
		q=43;
		Save("Level\sa10.sav",4);
	}
	if(q==43&&now>t)
	{
		AddNPC("9-113");
		AddNPC("9-114");
		AddNPC("9-116");
		q=44;
	}
	if(q==44&&c113>=0&&c114>=0&&c116>=0)
	{
		
		Perform(c114,"say", "姓岳的臭小子！你好大的胆子！快给我滚过来领死！");
		
		PlayerPerform("block", 0);
		PlayerPerform("say", "【注意！与【成鸾凤】见面后，古谷姑将离场。】");
		PlayerPerform("pause",2);
		PlayerPerform("say", "【提示：找到“古谷姑”，可获得【永久速度加成】。】");
		PlayerPerform("pause",1);
		PlayerPerform("say", "【提示：找到“古谷姑”，可获得【永久速度加成】。】");
		PlayerPerform("pause",1);
		PlayerPerform("say", "【提示：隐藏NPC“古谷姑”出现！】");
		PlayerPerform("pause",1);
		PlayerPerform("say", "【提示：隐藏NPC“古谷姑”出现！】");
		PlayerPerform("pause",2);
		PlayerPerform("say", "【注意！此刻开始，剧情对话中不可偷袭！】");
		PlayerPerform("say", "【注意！此刻开始，剧情对话中不可偷袭！】");
		PlayerPerform("pause",2);
		PlayerPerform("block", 1);
		q=45;
		qg=1;
	}
	if(q==45)
	{
		SetTarget(0, "waypoint", 498);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=300)
		{
			ZMJAI_SendEvent(0, 18, 0, 1);
			Perform(c116,"say", "我是古谷姑，姑姑去也~！");
			qg=9;
			q=46;
			qclf=1;
			qlhy=1;
			t=now+2;
			mc4=1;
			mc1=9;
		}
	}
	if(q==46&&now>t)
	{
		Perform(c113,"say", "好小子！找死！");
	    Perform(c113,"pause",18);
		Perform(c113,"say", "师妹，勿要同他多言。小子，闻墨现在何处！");
	    Perform(c113,"pause",27);
		
		Perform(c114,"say", "呸！云尘满口仁义，暗中心狠手毒，教出的徒弟又岂会是甚好东西？");
	    Perform(c114,"pause",6);
		Perform(c114,"say", "云尘那老东西呢！莫非现在又躲在暗处，准备玩什么鬼把戏！");
	    Perform(c114,"pause",3);
		Perform(c114,"say", "在醉花荫若非老东西出手，你以为就凭你便能伤了闻墨？");
	    Perform(c114,"pause",3);
		Perform(c114,"say", "谁是你师叔！小贼！你好大的威风！");
	    Perform(c114,"pause",6);
		Perform(c114,"say", "姓岳的！你步步紧逼，仗着谁的势来！");
		
		PlayerPerform("block", 0);
		PlayerPerform("say", "你既身为他师父，却行那不齿之事，廉耻何在！");
		PlayerPerform("pause",3);
		PlayerPerform("say", "助纣为虐倒行逆施，死有余辜！");
		PlayerPerform("pause",3);
		PlayerPerform("say", "师闻墨勾结番贼扰我宋室，又与你二人坏我门风……");
		PlayerPerform("pause",6);
		PlayerPerform("say", "成鸾凤！你辱我师尊，岳飞岂能饶你！");
		PlayerPerform("pause",6);
		PlayerPerform("say", "住口！我敬你为师叔，你焉敢出言不逊！");
		PlayerPerform("pause",15);
		PlayerPerform("say", "两位师叔在上，师侄有礼了。");
		PlayerPerform("pause",3);
		PlayerPerform("block", 1);
		RemoveNPC(c116);
		Perform(c114, "faceto", player);
		Perform(c113, "faceto", player);
		q=47;
		t=now+33;
	}
	if(q==47&&now>t)
	{
		PlayerPerform("say", "【注意！将洛花颜与成鸾凤的血量分别【打到200以下】，不可杀死！】");
		PlayerPerform("say", "【注意！将洛花颜与成鸾凤的血量分别【打到200以下】，不可杀死！】");
		PlayerPerform("pause",5);
		ChangeBehavior(c113,"follow", player);
		ChangeBehavior(c114,"follow", player);
		qclf=9;
		qlhy=9;
		qhpl=1;
		qhpf=1;
		qhpl1=1;
		qhpf1=1;

		q200=1;
		q201=1;
		q=48;
		t=now+30;
	}
	if(q200==1)
	{
		if (c114>=0 && GetHP(c114)<=2000)
		{
			ChangeBehavior(c114,"idle");
			Perform(c114,"pause",600);
	    	Perform(c114,"crouch",1);

			Say(c113, "师妹，你暂且歇息片刻，交给我来！");
			q200=2;
			q201=2;
		}
	}
	if(q201==1)
	{
		if (c113>=0 && GetHP(c113)<=2000)
		{
			ChangeBehavior(c113,"idle");
			Perform(c113,"pause",600);
	    	Perform(c113,"crouch",1);

			Say(c114,"师姐，你暂且歇息片刻，交给我来！");
			q200=2;
			q201=2;
		}
	}

	if(q==48&&now>t)
	{
		PlayerPerform("say", "他阻挡天兵，已然就地正法！");
		PlayerPerform("pause",3);
		
		Perform(c114,"say", "啊啊啊！！闻墨！！王八蛋，我撕烂了你！");
	    Perform(c114,"guard",6);
		Perform(c114,"say", "姓岳的！闻墨到底在何处！");
		q=49;
	}
	if(q==49&&GetHP(c114)<=2000&&GetHP(c113)<=2000)
	{
		AddNPC("9-115");
		q=50;
	}
	if(q==50&&c115>=0)
	{
		ZMJAI_SendEvent(0, 19, 0, 1);

	    Perform(c114,"crouch",0);
	    Perform(c114,"crouch",0);

		ChangeBehavior(c113,"idle");
		ChangeBehavior(c114,"idle");
		q=51;
	}
	if(q==51)
	{
		Perform(c113,"say", "师兄？!");
	    Perform(c113,"pause",6);
		
		Perform(c114,"say", "哼！少来假惺惺的！你徒儿杀了我徒儿，这笔账不能不算！");
	    Perform(c114,"pause",6);
		Perform(c114,"say", "你终于出现了！是来帮你的宝贝徒儿么！");
	    Perform(c114,"pause",12);
		
		Perform(c115,"say", "两位师妹，请吧。");
	    Perform(c115,"pause",3);
		Perform(c115,"say", "鹏举，高文才困住了宗泽，你速去搭救。");
	    Perform(c115,"pause",6);
		Perform(c115,"say", "要算账并无不可，你们跟我走便是。");
	    Perform(c115,"pause",6);
		Perform(c115,"say", "同门一场，即是缘分，我是为你们而来。");
	    Perform(c115,"pause",6);
		Perform(c115,"say", "两位师妹，别来无恙。");
	    Perform(c115,"pause",9);
		Perform(c115,"say", "鹏举，停手吧……");
		Perform(c115, "faceto", player);
		Perform(c113, "faceto", c115);
		Perform(c114, "faceto", c115);
		
		PlayerPerform("block", 0);
		PlayerPerform("pause",5);
		PlayerPerform("say", "师父……");
		PlayerPerform("pause",21);
		PlayerPerform("say", "师父！");
		PlayerPerform("pause",3);
		PlayerPerform("block", 1);
		qhpl1=9;
		qhpf1=9;
		q=52;
		mc4=9;
		mc5=1;
		t=now+25;
	}
	if(q==52&&now>t)
	{
		PlayerPerform("block", 0);
		PlayerPerform("say", "【关卡进度已保存】");
		PlayerPerform("pause", 1);
		PlayerPerform("say", "【关卡进度已保存】");
		PlayerPerform("block", 1);

		PlayerPerform("use",15);
		RemoveNPC(c113);
		RemoveNPC(c114);
		RemoveNPC(c115);
		q=53;
		t=now+1;
		Save("Level\sa10.sav",5);
	}
	if(q==53&&now>t)
	{
		AddNPC("9-117");
		q=54;
	}
	if(q==54&&c117>=0)
	{
		ChangeBehavior(c117,"idle");
		ZMJAI_MoveLocate(-1609,1221,-35);
		q=56;
		qhpc=1;
	}
	if(q==56)
	{
		Perform(c117,"say", "岳飞，你果真好大的能耐！");
		q=57;
	}
	if(q==57)
	{
		SetTarget(0, "waypoint", 541);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=300)
		{
			Perform(c117,"say", "岳飞，你不妨去东侧水潭边看看。");
			Perform(c117,"pause",3);
			Perform(c117,"say", "嘿嘿嘿嘿~~不急不急。");
			Perform(c117,"pause",3);
			Perform(c117, "faceto", player);
			
			PlayerPerform("block", 0);
			PlayerPerform("say", "【提示：去东侧水潭查看。】");
			PlayerPerform("say", "【提示：去东侧水潭查看。】");
			PlayerPerform("pause",9);
			PlayerPerform("say", "高文才！你的阴谋已全盘破产，束手就擒罢！");
			PlayerPerform("block", 1);
			q=58;
			t=now+5;
			mc2=1;
			mc5=9;
		}
	}
	if(q==58&&now>t)
	{
		AddNPC("9-119");
		AddNPC("9-120");
		AddNPC("9-121");
		q=59;
	}
	if(q==59&&c119>=0&&c120>=0&&c121>=0)
	{
		SetTarget(0, "waypoint", 430);
		SetTarget(1, "char", player); 
		if (Distance(0, 1) <=300)
		{
			Perform(c121,"say", "站住！你再往前一步，我们就在这老东西身上戳几个透明窟窿！");
			Perform(c121,"pause",3);
			
			Perform(c117,"say", "岳飞，我劝你还是少轻举妄动！");
			Perform(c117,"pause",8);
			
			PlayerPerform("block", 0);
			PlayerPerform("say", "【提示：回去找高文才,不可攻击看守！】");
			PlayerPerform("pause",2);
			PlayerPerform("say", "恩师挺住，门生这就设法搭救恩师！");
			PlayerPerform("pause",5);
			PlayerPerform("say", "狗贼休得狂妄！看招！");
			PlayerPerform("pause",6);
			PlayerPerform("say", "恩师！！");
			PlayerPerform("block", 1);
			Perform(c120, "guard",300);
			Perform(c119, "faceto", player);
			Perform(c120, "faceto", player);
			Perform(c121, "faceto", player);
			q=60;
			qks=1;
		}
	}
	if(q==60)
	{
		SetTarget(0, "waypoint", 541);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=300)
		{
			Perform(c117,"say", "少逞口舌之利！岳飞，出招罢！这一次，我绝不会手下留情！");
	        Perform(c117,"pause",3);
			Perform(c117,"say", "......");
	        Perform(c117,"pause",12);
			Perform(c117,"say", "你既知四王爷大计，还不顺应天命，偏要以卵击石，岂不是匹夫之见？");
	        Perform(c117,"pause",3);
			Perform(c117,"say", "嘿！你知道的还真不少！");
	        Perform(c117,"pause",15);
			Perform(c117,"say", "我安排他们的目的已经完成，死了也就死了，我岂会放在心上？");
	        Perform(c117,"pause",3);
			Perform(c117,"say", "而至于洪先、萧别恨、七曜等人……");
	        Perform(c117,"pause",3);
			Perform(c117,"say", "只是你挑死了他，稍微打乱了我些许计划而已，于大局却无足轻重。");
	        Perform(c117,"pause",3);
			Perform(c117,"say", "岳飞，你莫不是当真以为，我会在乎柴桂的死活？");
	        Perform(c117,"pause",3);
			Perform(c117,"say", "哈哈哈哈哈哈~~~");
	        Perform(c117,"pause",6);
			

			PlayerPerform("block", 1);
			PlayerPerform("say", "完颜兀术便又如何！他若敢犯我疆界，岳某的沥泉枪正好拿他开祭！");
			PlayerPerform("pause",3);
			PlayerPerform("say", "你岂不闻漫山遍野的厮杀声，还有多少是你一干叛贼？");
			PlayerPerform("pause",3);
			PlayerPerform("say", "咄！高文才，你愚蠢至极！");
			PlayerPerform("pause",9);
			PlayerPerform("say", "不过你算盘打得虽响，却不知只要有我岳飞在，你休想得逞！");
			PlayerPerform("pause",3);
			PlayerPerform("say", "你向完颜兀术谄媚求荣的阴谋便可达成。");
			PlayerPerform("pause",3);
			PlayerPerform("say", "你知道眼下朝中无良将，只要宗留守被绊住，");
			PlayerPerform("pause",3);
			PlayerPerform("say", "你安排他们的目的，无非就是想拖住宗留守的大军。");
			PlayerPerform("pause",21);
			PlayerPerform("say", "那小梁王柴桂乃我岳某所杀，你要报仇，冲着我来！");
			PlayerPerform("pause",3);
			PlayerPerform("say", "高文才！你已死到临头，尚且执迷不悟！");
			PlayerPerform("block", 1);
			Perform(c117, "faceto", player);
			q=61;
			t=now+42;
		}
	}
	if(q==61&&now>t)
	{
		PlayerPerform("say", "【高文才血量2000】。");
		PlayerPerform("pause",2);
		PlayerPerform("say", "【注意！请勿偷袭！】");
		PlayerPerform("block", 1);
		q=62;
		t=now+2;
	}
	if(q==62&&now>t)
	{
		AddNPC("9-118");
		q=63;
	}
	if(q==63&&c118>=0)
	{
		Perform(c117,"say", "你！你要干什么！");
	    Perform(c117,"pause",2);
		Perform(c117, "faceto", c118);
		Perform(c118,"say", "岳相公，高文才私通番邦卖国求荣，我李朝宗来助你一臂之力！");
		PlayerPerform("block", 1);
		q=64;
		t=now+1;
	}
	if(q==64&&now>t)
	{
		SetTarget(0, "waypoint", 500);
		ChangeBehavior(c118, "attacktarget", 0);
		q=65;
	}
	if(q==65)
	{
		SetTarget(0, "waypoint", 500);
		SetTarget(1, "char", c118);
		if (Distance(0, 1) <=50)
		{
			ZMJAI_SendEvent(0, 17, 0, 1);
			Perform(c117,"use",45);
			Perform(c117,"say", "呼~呼……岳飞，咱们……改日再战！");
			Perform(c117,"pause",18);
			Perform(c117,"crouch",15);
			Perform(c117,"say", "呃啊！！好狗贼！");
			
			Perform(c118,"use",35);

			PlayerPerform("say", "【提示：帐篷顶上有武器：匕首、指虎、乾坤刀、双刺可供选择】。");
			PlayerPerform("pause",2);			
			PlayerPerform("say", "【提示：以【重兵器】对战高文才，他会循环加防加气】。");
			PlayerPerform("pause",2);
			PlayerPerform("say", "【注意！先解决高文才，【不可先去救宗泽】！否则任务失败！】");
			PlayerPerform("pause",3);
			PlayerPerform("block", 0);
			PlayerPerform("say", "【追上并消灭高文才！】");
			PlayerPerform("pause",3);
			PlayerPerform("say", "（不如【收起沥泉神矛，以短兵迎战】。）");
			PlayerPerform("pause",3);
			PlayerPerform("say", "（然则这一路连番恶战，我的体力亦有所不支。）");
			PlayerPerform("pause",3);
			PlayerPerform("say", "（李朝宗以命相博重伤高文才，实为难得良机。）");
			PlayerPerform("pause",3);
			PlayerPerform("say", "【高文才剩余血量1500】");
			PlayerPerform("pause",3);
			PlayerPerform("say", "李朝宗！！");
			PlayerPerform("pause",2);
		    PlayerPerform("block", 1);
			q=66;
			qhpc=9;
			wqpd=1;
			wqpd1=1;
			xlpd=1;
			wqt=now+30;
			t=now+15;
		}
	}
	if(xlpd==1&&GetHP(c117)<=7500&&GetHP(player)>=3500)
	{
		Perform(c117,"use",33);
		xlpd=9;
	}
		
	
	if(qks==1&&(GetHP(c120)<1500||GetHP(c121)<1500))
	{
		PlayerPerform("say", "恩师！！");
		PlayerPerform("pause",2);
		PlayerPerform("block", 1);
		
		Perform(c119,"use",35);
		Perform(c119,"pause",2);
		
		Perform(c120,"say", "好狗头！看枪！");
		qks=2;
		tks=now+3;
	}
	if(qks==2&&now>tks)
	{
		v=1;
	}
	if (wqpd==1 && now>wqt)
	{
		if (GetWeaponType(player)==5||GetWeaponType(player)==7||GetWeaponType(player)==4)
		{
			Perform(c117,"use",8);
			Perform(c117,"use",29);
			wqpd = 2;		
			wqt=now+27;
		}
	}
	if (wqpd==2 && now>wqt)
	{
		PlayerPerform("say", "（须得以【短兵迎战】，以快制快！）");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "（糟糕！这厮身法太快，【重型兵器实难讨好】！）");
		wqpd = 1;	
		wqt=now+2;	
	}

	if (wqpd1==1)
	{
		if (GetWeaponType(c117)!=9)
		{
			ChangeBehavior(c117, "idle");

			PlayerPerform("block", 1);
			PlayerPerform("pause", 1);
			PlayerPerform("block", 1);
			PlayerPerform("pause", 1);
			PlayerPerform("block", 1);
			PlayerPerform("pause", 1);
			PlayerPerform("block", 1);
			PlayerPerform("say", "【注意：请勿将其他武器丢给高文才。】");
			PlayerPerform("pause", 1);
			PlayerPerform("block", 1);
			wqpd1 = 2;
			gameover = -1;
			t = now + 4; 
		}
	}

	if(q==66&&now>t)
	{
		SetTarget(0, "waypoint", 545);
		ChangeBehavior(c117, "attacktarget", 0);
		q=67;
	}
	if(q==67)
	{
		SetTarget(0, "waypoint", 545);
		SetTarget(1, "char", c117);
		if (Distance(0, 1) <=50)
		{
			ChangeBehavior(c117, "idle");
		    q=68;
		}
	}
	if(q==68)
	{
		SetTarget(0, "waypoint", 545);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=300)
		{
			ZMJAI_SendEvent(0, 18, 0, 1);
			Perform(c117,"use",43);
			Perform(c117,"say", "纳命来！");
	        Perform(c117,"pause",3);
			Perform(c117,"say", "岳飞！我若不取你性命，还道我高文才怕了你不成！");
	        Perform(c117,"pause",3);
			Perform(c117, "faceto", player);
			
			PlayerPerform("block", 0);
			PlayerPerform("pause", 6);
			PlayerPerform("say", "奸贼！哪里跑！");
			PlayerPerform("block", 1);
			q=69;
			t=now+6;
		}
	}
	if(q==69&&now>t)
	{
		ChangeBehavior(c117,  "follow", player);
		q=70;
	}
	
	
	if(q==70&&GetHP(c117)<=10000)
	{
		PlayerPerform("say", "【注意：十分钟内解决高文才，否则任务失败！】");
		PlayerPerform("pause",1);
		PlayerPerform("say", "【注意：十分钟内解决高文才，否则任务失败！】");
		PlayerPerform("pause",2);
		PlayerPerform("say", "这贼子好生狡猾！我须得速战速决，否则恩师性命堪虞！");
		PlayerPerform("pause",3);
		Perform(c117,"say", "岳飞！投降吧！你不是我对手！");
		Perform(c117,"use",5);
		Perform(c117,"use",4);
		q=71;
		qch=1;
		qwc=1;
		tch=now+60;
	}
	if(q==71&&GetHP(c117)<=0)
	{
		q=72;
		qch=99;
		mc3=1;
		mc2=9;
		t=now+5;
		Save("Level\sa10.sav",0);
		Save("Level\sa10-1.sav",0);
		Save("Level\sa10-2.sav",0);
		Save("Level\sa10-3.sav",0);
		Save("Level\sa10-4.sav",0);
		Save("Level\sa10-5.sav",0);
	}
	if(q==72&&now>t)
	{
		v=2;
	}
	
	
	if(qwc==1&&GetHP(c117)<=8000)
	{
		Perform(c117,"say", "【HP=800】");
		qwc=2;
	}
	if(qwc==2&&GetHP(c117)<=5000)
	{
		Perform(c117,"say", "【HP=500】");
		qwc=3;
	}
	if(qwc==3&&GetHP(c117)<=3000)
	{
		Perform(c117,"say", "【HP=300】");
		qwc=4;
	}
	if(qwc==4&&GetHP(c117)<=2000)
	{
		Perform(c117,"say", "【HP=200】");
		qwc=5;
	}
	if(qwc==5&&GetHP(c117)<=1000)
	{
		Perform(c117,"say", "【HP=100】");
		qwc=6;
	}
	if(qwc==6&&GetHP(c117)<=500)
	{
		PlayerPerform("say", "高文才，受死吧！");
		qwc=7;
	}
	
	
	if(qch==1&&now>tch)
	{
		PlayerPerform("say", "【还剩9分钟！】");
		PlayerPerform("say", "【还剩9分钟！】");
		qch=2;
		tch=now+60;
	}
	if(qch==2&&now>tch)
	{
		PlayerPerform("say", "【还剩8分钟！】");
		PlayerPerform("say", "【还剩8分钟！】");
		qch=3;
		tch=now+60;
	}
	if(qch==3&&now>tch)
	{
		PlayerPerform("say", "【还剩7分钟！】");
		PlayerPerform("say", "【还剩7分钟！】");
		qch=4;
		tch=now+60;
	}
	if(qch==4&&now>tch)
	{
		PlayerPerform("say", "【还剩6分钟！】");
		PlayerPerform("say", "【还剩6分钟！】");
		qch=5;
		tch=now+60;
	}
	if(qch==5&&now>tch)
	{
		PlayerPerform("say", "【还剩5分钟！】");
		PlayerPerform("say", "【还剩5分钟！】");
		qch=6;
		tch=now+60;
	}
	if(qch==6&&now>tch)
	{
		PlayerPerform("say", "【还剩4分钟！】");
		PlayerPerform("say", "【还剩4分钟！】");
		qch=7;
		tch=now+60;
	}
	if(qch==7&&now>tch)
	{
		PlayerPerform("say", "【还剩3分钟！】");
		PlayerPerform("say", "【还剩3分钟！】");
		qch=8;
		tch=now+60;
	}
	if(qch==8&&now>tch)
	{
		PlayerPerform("say", "【还剩2分钟！】");
		PlayerPerform("say", "【还剩2分钟！】");
		qch=9;
		tch=now+60;
	}
	if(qch==9&&now>tch)
	{
		PlayerPerform("say", "【还剩1分钟！】");
		PlayerPerform("say", "【还剩1分钟！】");
		qch=10;
		tch=now+30;
	}
	if(qch==10&&now>tch)
	{
		PlayerPerform("say", "【还剩30秒！】");
		PlayerPerform("say", "【还剩30秒！】");
		qch=11;
		tch=now+15;
	}
	if(qch==11&&now>tch)
	{
		PlayerPerform("say", "【还剩15秒！】");
		PlayerPerform("say", "【还剩15秒！】");
		qch=12;
		tch=now+5;
	}
	if(qch==12&&now>tch)
	{
		PlayerPerform("say", "【还剩10秒！】");
		PlayerPerform("say", "【还剩10秒！】");
		qch=13;
		tch=now+1;
	}
	if(qch==13&&now>tch)
	{
		PlayerPerform("say", "【九】");
		qch=14;
		tch=now+1;
	}
	if(qch==14&&now>tch)
	{
		PlayerPerform("say", "【八】");
		qch=15;
		tch=now+1;
	}
	if(qch==15&&now>tch)
	{
		PlayerPerform("say", "【七】");
		qch=16;
		tch=now+1;
	}
	if(qch==16&&now>tch)
	{
		PlayerPerform("say", "【六】");
		qch=17;
		tch=now+1;
	}
	if(qch==17&&now>tch)
	{
		PlayerPerform("say", "【五】");
		qch=18;
		tch=now+1;
	}
	if(qch==18&&now>tch)
	{
		PlayerPerform("say", "【四】");
		qch=19;
		tch=now+1;
	}
	if(qch==19&&now>tch)
	{
		PlayerPerform("say", "【三】");
		qch=20;
		tch=now+1;
	}
	if(qch==20&&now>tch)
	{
		PlayerPerform("say", "【二】");
		qch=21;
		tch=now+1;
	}
	if(qch==21&&now>tch)
	{
		PlayerPerform("say", "【一】");
		qch=22;
		tch=now+1;
	}
	if(qch==22&&now>tch)
	{
		Perform(c117,"say", "哈哈哈哈~~！！简直是螳臂当车！");
	    Perform(c117,"pause",6);
		
		PlayerPerform("say", "恩师！！");
		PlayerPerform("pause",2);
		PlayerPerform("block", 1);
		
		Perform(c119,"say", "贤契！呃啊~~！！");
		qch=23;
		tch=now+5;
	}
	if(qch==23&&now>tch)
	{
		v=1;
	}
	
	
	if(qhpc==1&&GetHP(c117)<15000)
	{
		Perform(c117,"say", "岳飞！我还道你是顶天立地的好汉！原来也是宵小之徒！");
		qhpc=2;
		thp=now+5;
	}
	if(qhpc==2&&now>thp)
	{
		v=1;
	}
	if(qhpf==1&&GetHP(c114)<=7000)
	{
		Perform(c114,"say", "【HP=700】");
		qhpf=2;
	}
	if(qhpf==2&&GetHP(c114)<=6000)
	{
		Perform(c114,"say", "【HP=600】");
		qhpf=3;
	}
	if(qhpf==3&&GetHP(c114)<=5000)
	{
		Perform(c114,"say", "【HP=500】");
		qhpf=4;
	}
	if(qhpf==4&&GetHP(c114)<=4000)
	{
		Perform(c114,"say", "【HP=400】");
		qhpf=5;
	}
	if(qhpf==5&&GetHP(c114)<=3000)
	{
		Perform(c114,"say", "【HP=300】");
		qhpf=6;
	}
	if(qhpf==6&&GetHP(c114)<=2300)
	{
		PlayerPerform("say", "【注意！打到200以下即可！】");
		PlayerPerform("pause",2);
		Perform(c114,"say", "【HP=230】");
		qhpf=9;
	}
	
	if(qhpl==1&&GetHP(c113)<=7000)
	{
		Perform(c113,"say", "【HP=700】");
		qhpl=2;
	}
	if(qhpl==2&&GetHP(c113)<=6000)
	{
		Perform(c113,"say", "【HP=600】");
		qhpl=3;
	}
	if(qhpl==3&&GetHP(c113)<=5000)
	{
		Perform(c113,"say", "【HP=500】");
		qhpl=4;
	}
	if(qhpl==4&&GetHP(c113)<=4000)
	{
		Perform(c113,"say", "【HP=400】");
		qhpl=5;
	}
	if(qhpl==5&&GetHP(c113)<=3000)
	{
		Perform(c113,"say", "【HP=300】");
		qhpl=6;
	}
	if(qhpl==6&&GetHP(c113)<=2300)
	{
		PlayerPerform("say", "【注意！打到200以下即可！】");
		PlayerPerform("pause",2);
		Perform(c113,"say", "【HP=230】");
		qhpl=9;
	}
	
	
	if(qhpf1==1&&GetHP(c114)<=0)
	{
		PlayerPerform("say", "我竟失手伤了她性命！");
		PlayerPerform("block", 1);
		qhpf1=2;
		thp=now+2;
	}
	if(qhpf1==2&&now>thp)
	{
		v=1;
	}
	if(qhpl1==1&&GetHP(c113)<=0)
	{
		PlayerPerform("say", "我竟失手伤了她性命！");
		PlayerPerform("block", 1);
		qhpl1=2;
		thp=now+2;
	}
	if(qhpl1==2&&now>thp)
	{
		v=1;
	}
	if(qclf==1&&GetHP(c114)<8000)
	{
		Perform(c114,"say", "竟敢偷袭！果然是个奸诈的小贼！");
		qclf=2;
		tf=now+2;
	}
	if(qclf==2&&now>tf)
	{
		v=2;
	}
	if(qlhy==1&&GetHP(c113)<8000)
	{
		Perform(c113,"say", "竟敢偷袭！果然是个奸诈的小贼！");
		qlhy=2;
		ty=now+2;
	}
	if(qlhy==2&&now>ty)
	{
		v=2;
	}
	if(qg==1)
	{
		SetTarget(0, "waypoint", 481);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=50)
		{
			Perform(c116,"say", "罢了，这件物事便送与你吧。");
			Perform(c116,"pause",6);
			Perform(c116,"say", "倒也并不为何，姑姑只是跟你闹着玩儿。");
			Perform(c116,"pause",6);
			Perform(c116,"say", "我是古谷姑，如果你高兴的话，可以叫我“古姑姑”。");
			Perform(c116, "faceto", player);
			
			PlayerPerform("block", 0);
			PlayerPerform("use",43);
			PlayerPerform("pause",6);
			PlayerPerform("say", "......");
		    PlayerPerform("pause",6);
			PlayerPerform("say", "为何我要高兴叫你姑姑？");
		    PlayerPerform("pause",3);
			PlayerPerform("block", 1);
			qg=2;
			tg=now+13;
		}
	}
	if(qg==2&&now>tg)
	{
		RemoveNPC(c116);
		qg=9;
	}
	if(qng==1)
	{
		SetTarget(0, "char", player);
		SetTarget(5, "waypoint", 117);
		if (Distance(0, 5) <=50)
		{
			Perform(c40,"say", "岳大哥，俺老牛随你赴汤蹈火！");
			
			PlayerPerform("block", 0);
			PlayerPerform("say", "【确定请【攻击一次】。】");
			PlayerPerform("pause", 1);
			PlayerPerform("say", "【确定选择【牛皋】吗？】");
			PlayerPerform("pause", 3);
		    PlayerPerform("block", 1);
			qng=2;
		}
	}
	if(qng==2&&GetHP(c40)<10000)
	{
		PlayerPerform("use", 15);
		qwg=99;
		qth=99;
		qzx=99;
		qlzy=99;

		qng=3;
		mc1=9;
		mc10=1;
		Save("Level\sa10-1.sav",1);
		Save("Level\sa10-2.sav",0);
		Save("Level\sa10-3.sav",0);
		Save("Level\sa10-4.sav",0);
		Save("Level\sa10-5.sav",0);
	}
	if(qng==3)
	{
		Perform(c41,"say", "贤契，此处敌军虽已被杀退，但难免还有增援，需万分当心。");
	    Perform(c41,"pause",12);
		
		Perform(c37,"say", "既然岳大哥如此说了，兄弟们自当领命。");
	    Perform(c37,"pause",9);
		
		
		PlayerPerform("say", "恩师不必担忧，门生省得。");
		PlayerPerform("pause", 9);
		PlayerPerform("say", "因此烦请诸位先去，我与牛皋兄弟稍后便赶来。");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "各位随恩师率军诛杀叛贼高文才才是首要。");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "诸位兄弟，捣毁兵器库乃小事一桩……");
		
		Perform(c36, "faceto", player);
		Perform(c37, "faceto", player);
		Perform(c38, "faceto", player);
		Perform(c39, "faceto", player);
		Perform(c40, "faceto", player);
		Perform(c41, "faceto", player);
		qng=4;
		tdy=now+12;
	}
	if(qng==4&&now>tdy)
	{
		RemoveNPC(c36);
		RemoveNPC(c37);
		RemoveNPC(c38);
		RemoveNPC(c39);
		RemoveNPC(c40);
		RemoveNPC(c41);
		qng=5;
		tdy=now+1;
	}
	if(qng==5&&now>tdy)
	{
		AddNPC("9-98");
		AddNPC("9-99");
		AddNPC("9-100");
		AddNPC("9-101");
		AddNPC("9-102");
		AddNPC("9-103");
		AddNPC("9-104");
		qng=6;
	}
	if(qng==6&&c98>=0&&c99>=0&&c100>=0&&c101>=0&&c102>=0&&c103>=0&&c104>=0)
	{
		Perform(c98,"say", "怎会有这多秃驴的尸体？");
	    Perform(c98,"pause",2);
		Perform(c98,"say", "岳大哥你快来瞧啊！当真稀奇事。");
		Perform(c98, "faceto", c99);
		
		Perform(c99,"use",35);
		Perform(c100,"use",35);
		Perform(c101,"use",35);
		Perform(c102,"use",35);
		Perform(c103,"use",35);
		Perform(c104,"use",35);
		qng=7;
	}
	if(qng==7)
	{
		SetTarget(0, "char", player);
		SetTarget(1, "waypoint", 381);
		if (Distance(0, 1) <=150)
		{
			PlayerPerform("say", "莫非暗中还有旁的人？");
		    PlayerPerform("pause", 3);
			PlayerPerform("say", "不过……他们又怎会死在此处？");
		    PlayerPerform("pause", 3);
			PlayerPerform("say", "当真是六根不净，死有余辜！");
		    PlayerPerform("pause", 3);
			PlayerPerform("say", "想必这些恶僧也是得到了讯息，是以赶来支援高文才。");
		    PlayerPerform("pause", 3);
			PlayerPerform("say", "原来还有漏网之鱼！");
		    PlayerPerform("pause", 3);
			PlayerPerform("say", "这……似乎是显通寺的反僧！");
			qng=8;
			tdy=now+14;
		}
	}
	if(qng==8&&now>tdy)
	{
		AddNPC("9-105");
		AddNPC("9-106");
		qng=9;
	}
	if(qng==9&&c105>=0&&c106>=0)
	{
		Perform(c98,"say", "好贼子！黑炭头今日便要取你狗头！");
		Perform(c98,"pause",6);
		Perform(c98,"say", "哇呀呀！原来是京中小校场上的两个贼厮鸟！");
		Perform(c98,"pause",3);
		Perform(c98,"faceto", c106);
	    Perform(c98,"pause",3);
		
		Perform(c106,"say", "嘿！恁的稀奇！大哥你瞧，这不是那杀千刀的黑炭头么！");
	    Perform(c106,"pause",6);
		Perform(c106,"say", "莫非便是逃走的秃驴请来的帮手？");
	    Perform(c106,"pause",3);
		Perform(c106,"say", "大哥，怎地还有人？");
		
		Perform(c106, "faceto", c98);
		Perform(c105, "faceto", c98);
		qng=10;
		tdy=now+13;
	}
	if(qng==10&&now>tdy)
	{
		ChangeBehavior(c105,"follow", player);
		ChangeBehavior(c98,"follow", c106);
		ChangeBehavior(c106,"follow", c98);
		qng=12;
		tdy=now+1;
	}
	if(qng==12&&now>tdy)
	{
		PlayerPerform("say", "【协助牛皋制服杨再兴与罗延庆。】");
		PlayerPerform("pause", 1);
		PlayerPerform("say", "牛兄弟莫要莽撞！");
		qng=13;
		qngs=1;
	}
	if(qng==13&&(GetHP(c105)<=2000||GetHP(c106)<=2000))
	{
		PlayerPerform("say", "诸位且住手！岳某有话要说！");
		qng=14;
		qngs=9;
	}
	if(qng==14)
	{
		ChangeBehavior(c105,"idle");
		ChangeBehavior(c98,"idle");
		ChangeBehavior(c106,"idle");
		qng=15;
		tdy=now+3;
	}
	if(qng==15&&now>tdy)
	{
		Perform(c105,"say", "杨再兴、罗延庆万死不辞！");
		Perform(c105,"pause",6);
		Perform(c105,"say", "岳兄屈尊，我二人受宠若惊！");
		Perform(c105,"pause",9);
		Perform(c105,"say", "岳兄何须如此！岂不折煞我等？");
		Perform(c105,"pause",6);
		Perform(c105,"say", "正待离去，偶见岳兄二人到来，是以起了误会。");
		Perform(c105,"pause",3);
		Perform(c105,"say", "然而却还是逃脱了一个，我二人寻了片刻不见踪影。");
		Perform(c105,"pause",3);
		Perform(c105,"say", "我二人观察之下，发现它们亦是柴桂一党，于是打算一个不留。");
		Perform(c105,"pause",3);
		Perform(c105,"say", "不料还剩下最后一处时，不知从何处冒出了一群秃驴，上来就动手。");
		Perform(c105,"pause",3);
		Perform(c105,"say", "于是我二人一不做二不休，索性将他兵器库的入口捣毁。");
		Perform(c105,"pause",3);
		Perform(c105,"say", "连日来我二人明察暗访，查到了此处，得知曾是那柴桂的兵器库。");
		Perform(c105,"pause",3);
		Perform(c105,"say", "我与罗兄一合计，断不能让他得逞，幸喜这贼子死于岳兄枪下。");
		Perform(c105,"pause",3);
		Perform(c105,"say", "那日我二人离京之后，道上听到传言，小梁王柴桂意欲谋反。");
		Perform(c105,"pause",18);
		Perform(c105,"say", "哪个不赞一声岳兄乃真英雄、好汉子！");
		Perform(c105,"pause",3);
		Perform(c105,"say", "岳兄别来无恙？京中校场上岳兄枪挑小梁王，一战成名天下皆知。");
		Perform(c105,"pause",12);
		
		Perform(c106,"say", "你......你是岳飞！");
		Perform(c106,"pause",6);
		
		Perform(c98,"say", "既然岳大哥如此说了，俺老牛照办便是。");
		Perform(c98, "faceto", player);
		Perform(c98,"pause",3);
		Perform(c98,"say", "两位武艺高超，俺老牛左右也不是对手。");
		Perform(c98, "faceto", c105);
		Perform(c98,"pause",24);
		
		PlayerPerform("block", 0);
		PlayerPerform("say", "繁文缛节却也不必了，两位兄弟，可愿随岳某一同锄奸？");
		PlayerPerform("pause", 6);
		PlayerPerform("say", "今日复得相见，岳某欲与两位义结金兰，不知可高攀否？");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "那日京城之中匆匆一晤，岳某时常念起两位兄台英雄侠义……");
		PlayerPerform("pause", 6);
		PlayerPerform("say", "两位兄台侠肝义胆，请受岳某一拜！");
		PlayerPerform("pause", 27);
		PlayerPerform("say", "二位兄台何故到此？");
		PlayerPerform("pause", 9);
		PlayerPerform("say", "都是顶天立地的英雄好汉，你们之间的误会宜当解除。");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "杨兄谬赞！牛兄，这两位是“杨再兴”、“罗延庆”。");
		PlayerPerform("pause", 9);
		PlayerPerform("say", "不才正是在下。");
		PlayerPerform("pause", 6);
		PlayerPerform("say", "杨兄罗兄，别来无恙？");
		PlayerPerform("pause", 3);
		PlayerPerform("block", 1);
		
		Perform(c98, "faceto", player);
		Perform(c105, "faceto", player);
		Perform(c106, "faceto", player);
		qng=16;
		tdy=now+65;
	}
	if(qng==16&&now>tdy)
	{
		RemoveNPC(c99);
		RemoveNPC(c100);
		RemoveNPC(c101);
		RemoveNPC(c102);
		RemoveNPC(c103);
		RemoveNPC(c104);
		RemoveNPC(c105);
		RemoveNPC(c106);
		qng=17;
	}
	if(qng==17)
	{
		Perform(c98,"use",15);
		PlayerPerform("use", 15);
		qng=18;
		tdy=now+1;
	}
	if(qng==18&&now>tdy)
	{
		AddNPC("9-55");
		AddNPC("9-56");
		qng=19;
	}
	if(qng==19&&c55>=0&&c56>=0)
	{
		ChangeBehavior(c98,"follow", player);
		ChangeBehavior(c55,"follow", player);
		ChangeBehavior(c56,"follow", player);
		qng=20;
		tdy=now+5;
	}
	if(qng==20&&now>tdy)
	{
		AddNPC("9-107");
		AddNPC("9-108");
		AddNPC("9-109");
		AddNPC("9-110");
		AddNPC("9-111");
		AddNPC("9-112");
		qng=22;
	}
	if(qng==22&&c107>=0&&c108>=0&&c109>=0&&c110>=0&&c111>=0&&c112>=0)
	{
		Perform(c55,"say", "岳兄，这群贼秃是冲着我们来的。");
		Perform(c55,"pause",3);
		
		Perform(c107,"say", "两个小贼！还不快快出来受死！");
		
		PlayerPerform("pause", 0);
		PlayerPerform("say", "杨兄何须见外，一起诛灭这帮反贼！");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "果然是显通寺的反僧。");
		PlayerPerform("pause", 6);
		PlayerPerform("pause", 1);
		qng=23;
		tdy=now+9;
	}
	if(qng==23&&now>tdy)
	{
		ChangeBehavior(c107,"follow", player);
		ChangeBehavior(c108,"follow", c107);
		ChangeBehavior(c109,"follow", c107);
		ChangeBehavior(c110,"follow", c107);
		ChangeBehavior(c111,"follow", c107);
		ChangeBehavior(c112,"follow", c107);
		qng=24;
	}
	if(qng==24&&GetHP(c108)<=0&&GetHP(c109)<=0&&GetHP(c110)<=0&&GetHP(c111)<=0&&GetHP(c112)<=0)
	{
		ChangeBehavior(c55,"idle");
		ChangeBehavior(c98,"idle");
		ChangeBehavior(c56,"idle");
		ChangeBehavior(c107,"idle");
		qng=25;
		tdy=now+1;
	}
	if(qng==25&&now>tdy)
	{
		Perform(c55,"say", "老贼秃！你认贼作父六根不净，我送你去见佛祖罢！");
		
		Perform(c107,"guard",30);
		Perform(c98, "faceto", c107);
		Perform(c55, "faceto", c107);
		Perform(c56, "faceto", c107);
		Perform(c107, "faceto", c55);
		
		RemoveNPC(c108);
		RemoveNPC(c109);
		RemoveNPC(c110);
		RemoveNPC(c111);
		RemoveNPC(c112);
		qng=26;
		tdy=now+5;
	}
	if(qng==26&&now>tdy)
	{
		PlayerPerform("say", "【憾海棍，重锤兵器，攻180、防10、速110。】");
		PlayerPerform("pause", 2);
		
		Perform(c98,"say", "岳大哥，老贼秃这根棍子颇为顺手，你不如拿来用了罢。");
		Perform(c107,"use",35);
		qng=27;
		tdy=now+5;
	}
	if(qng==27&&now>tdy)
	{
		Perform(c55,"use",15);
		Perform(c56,"use",15);
		Perform(c98,"use",15);
		PlayerPerform("use", 15);
		qng=28;
	}
	if(qng==28)
	{
		RemoveNPC(c107);
		qng=29;
	}
	if(qng==29)
	{
		Perform(c55,"say", "【佛塔】便是入口，只需【摧毁佛塔】掩埋入口就行。");
		Perform(c55,"pause",3);
		
		PlayerPerform("say", "【提示：找到并摧毁佛塔】");
		PlayerPerform("say", "【提示：找到并摧毁佛塔】");
		PlayerPerform("pause", 5);
		PlayerPerform("say", "诸位兄弟，眼下须尽快摧毁兵器库，速去与恩师大军汇合。");
		qng=30;
	}
	if(qng==30)
	{
		AddNPC("9-44");
		qng=31;
	}
	if(qng==31&&c44>=0)
	{
		Perform(c44,"use",46);
		ChangeBehavior(c98,"follow", player);
		ChangeBehavior(c55,"follow", player);
		ChangeBehavior(c56,"follow", player);
		qng=32;
	}
	if(qng==32)
	{
		SetTarget(0, "char", player);
		SetTarget(1, "waypoint", 128);
		if (Distance(0, 1) <=150)
		{
			PlayerPerform("say", "好！待我将它摧毁。");
		    PlayerPerform("pause", 3);
			Perform(c55,"say", "就是这里。");
			qng=33;
		}
	}
	if(qng==33&&GetHP(c44)<=13000)
	{
		AddNPC("9-48");
		qng=34;
	}
	if(qng==34&&c48>=0)
	{
		Perform(c48,"say", "给我杀！");
		
		PlayerPerform("say", "众兄弟，御敌！");
		PlayerPerform("pause", 3);
		qng=35;
		q1x1=1;
        q1x2=1;
        q1x3=1;
        q1x4=1;
        q1x5=1;
        q1x6=1;
		qyhxw=1;
		tdy=now+30;
	}
	if(qng==35&&now>tdy)
	{
		PlayerPerform("say", "【注意！优先攻击佛塔】");
		PlayerPerform("pause", 1);
		PlayerPerform("say", "【注意！优先攻击佛塔】");
		PlayerPerform("pause", 1);
		PlayerPerform("say", "【注意！优先攻击佛塔】");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "（我须尽快【摧毁佛塔】，以免夜长梦多。）");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "（贼兵源源不绝，也不知恩师那边情况如何……）");
		qng=36;
	}
	if(qng==36&&GetHP(c44)<=0)
	{
		PlayerPerform("say", "（总算毁了兵器库！尽快杀出重围。）");
		qng=37;
		q1x1=9;
        q1x2=9;
        q1x3=9;
        q1x4=9;
        q1x5=9;
        q1x6=9;
		qyhxw=9;
		tdy=now+2;
	}
	if(qng==37&&now>tdy)
	{
		Perform(c48,"guard",10);
		Perform(c48,"say", "塔在人在，塔毁人亡！呃啊~！");
		qng=38;
		tdy=now+2;
	}
	if(qng==38&&now>tdy)
	{
		Perform(c55,"say", "好手段！擒贼先擒王。兄弟，杀呀！");
		Perform(c55,"pause",1);
		Perform(c48,"use",35);
		qng=39;
	}
	if(qng==39&&GetHP(c49)<=0&&GetHP(c50)<=0&&GetHP(c51)<=0&&GetHP(c52)<=0&&GetHP(c53)<=0&&GetHP(c54)<=0)
	{
		Perform(c56,"say", "好歹是杀完了！");
		Perform(c56,"pause",1);
		qng=40;
		tdy=now+2;
    }
	if(qng==40&&now>tdy)
	{
		RemoveNPC(c44);
		RemoveNPC(c48);
		RemoveNPC(c49);
		RemoveNPC(c50);
		RemoveNPC(c51);
		RemoveNPC(c52);
		RemoveNPC(c53);
		RemoveNPC(c54);
		
		Perform(c56,"use",15);
		Perform(c55,"use",15);
		Perform(c89,"use",15);
		PlayerPerform("use", 15);
		qng=41;
	}
	if(qng==41)
	{
		PlayerPerform("say", "众兄弟，继续冲！");
		qng=42;
	}
	if(qng==42)
	{
		SetTarget(0, "waypoint", 177);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=250)
		{
		    AddNPC("9-57");
		    qng=43;
		}
	} 
	if(qng==43&&c57>=0)
	{
		Perform(c57,"use",45);
		Perform(c57,"say", "岳飞！有胆子你便跟来！");
		Perform(c57,"pause",1);
		Perform(c57, "faceto", player);
		
		PlayerPerform("block", 1);
		qng=44;
		tdy=now+2;
	}
	if(qng==44&&now>tdy)
	{
		SetTarget(0, "waypoint", 172);
		ChangeBehavior(c57, "attacktarget", 0);
		qng=45;
	}
	
	if(qng==45)
	{
		Perform(c56,"say", "好狗贼！给我站住！");
		
		PlayerPerform("say", "罗兄且慢，当心伏兵！");
		PlayerPerform("pause", 3);
		PlayerPerform("block", 1);
		qng=46;
		tdy=now+3;
	}
	if(qng==46&&now>tdy)
	{
		AddNPC("9-58");
		qng=47;
	}
	if(qng==47&&c58>=0)
	{
		PlayerPerform("block", 0);
		PlayerPerform("say", "【注意！与【传令兵】见面后，博渤伯将离场。】");
		PlayerPerform("pause",2);
		PlayerPerform("say", "【提示：找到“博渤伯”，可获得【永久防御加成】。】");
		PlayerPerform("pause",1);
		PlayerPerform("say", "【提示：找到“博渤伯”，可获得【永久防御加成】。】");
		PlayerPerform("pause",1);
		PlayerPerform("say", "【提示：隐藏NPC“博渤伯”出现！】");
		PlayerPerform("pause",1);
		PlayerPerform("say", "【提示：隐藏NPC“博渤伯”出现！】");
		PlayerPerform("pause",2);
		PlayerPerform("say", "【主线：追踪传令兵。】");
		PlayerPerform("pause",2);
		PlayerPerform("block", 1);
		qng=48;
		qb=1;
	}
	if(qng==48)
	{
		SetTarget(0, "waypoint", 172);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=150)
		{
			Perform(c57,"say", "岳飞，此处便是你的墓地！");
		    Perform(c57,"pause",1);
		
			Perform(c58,"say", "我是博渤伯，伯伯去也~！");
			
			Perform(c98,"guard",28);
			Perform(c55,"guard",28);
			Perform(c56,"guard",28);
			PlayerPerform("block", 1);
			qb=9;
			qng=49;
			tdy=now+2;
		}
	}
	if(qng==49&&now>tdy)
	{
		RemoveNPC(c57);
		RemoveNPC(c58);
		qng=50;
		tdy=now+1;
	}
	if(qng==50&&now>tdy)
	{
		AddNPC("9-59");
		AddNPC("9-60");
		AddNPC("9-61");
		qng=51;
	}
	if(qng==51&&c59>=0&&c60>=0&&c61>=0)
	{
		ChangeBehavior(c59, "idle");
		ChangeBehavior(c60, "idle");
		ChangeBehavior(c61, "idle");
		qng=52;
	}
	if(qng==52)
	{
		Perform(c60,"say", "你怕是不晓得，我【七曜】乃不死之身！");
		Perform(c60,"pause",3);
		Perform(c60,"say", "小子，莫非你真以为能杀得了我们？哈哈哈哈~！");
		Perform(c60,"pause",6);
		
		Perform(c59,"say", "胡吹大气！此地便是你葬身之所！");
		Perform(c59,"pause",18);
		Perform(c59,"say", "岳飞！咱们又见面了！");
		
		PlayerPerform("block", 0);
		PlayerPerform("say", "今日我便替太师父清理门户！");
		PlayerPerform("pause",3);
		PlayerPerform("say", "师闻墨！我那两位师叔被你害得身败名裂……");
		PlayerPerform("pause",6);
		PlayerPerform("say", "你们不出现则罢，既然巴巴赶来领死，我便送你们七人团聚！");
		PlayerPerform("pause",3);
		PlayerPerform("say", "咄！若是不死，七人又如何只剩下你三人？");
		PlayerPerform("pause",9);
		PlayerPerform("say", "师闻墨！还有项西楚丘长春！你们……！");
		PlayerPerform("pause",3);
		PlayerPerform("block", 1);
		
		Perform(c59, "faceto", player);
		Perform(c60, "faceto", player);
		Perform(c61, "faceto", player);
		qng=53;
		tdy=now+20;
	}
	if(qng==53&&now>tdy)
	{
		ChangeBehavior(c98,"follow", player);
		ChangeBehavior(c56,"follow", c61);
		ChangeBehavior(c55,"follow", c60);
		
		ChangeBehavior(c59,"follow", player);
		ChangeBehavior(c60,"follow", c55);
		ChangeBehavior(c61,"follow", c56);
		qng=54;
	}
	if(qng==54&&GetHP(c61)<=0)
	{
		ChangeBehavior(c56,"follow", player);
		qng=55;
	}
	if(qng==55&&GetHP(c60)<=0)
	{
		ChangeBehavior(c55,"follow", player);
		qng=56;
	}
	if(qng==56&&GetHP(c59)<=0)
	{
		Say(c59, "岳飞！你好歹叫我一声师兄！你竟如此…………呃啊！");
		qng=57;
		tdy=now+2;
	}
	if(qng==57&&GetHP(c59)<=0&&GetHP(c60)<=0&&GetHP(c61)<=0&&now>tdy)
	{
		
		Perform(c55,"say", "怎料如今却倒行逆施，甘为柴桂走狗。");
		Perform(c55,"pause",3);
		Perform(c55,"say", "项西楚，当年一杆霸王枪震慑群雄，原是一条响当当的汉子……");
		Perform(c55,"pause",3);
		
		Perform(c56,"say", "金人？！原来做了叛贼！如此死了倒也不冤！");
		Perform(c56,"pause",15);
		Perform(c56,"say", "这三个贼厮鸟当真厉害！大哥，我看那人的枪法不在你之下。");
		
		PlayerPerform("block", 0);
		PlayerPerform("say", "诸位兄弟，咱们继续前行。");
		PlayerPerform("pause",3);
		PlayerPerform("say", "这些过节日后详说，眼下先去同宗泽留守汇合才是。");
		PlayerPerform("pause",6);
		PlayerPerform("say", "他们背后实则是投靠了金人！");
		PlayerPerform("pause",3);
		PlayerPerform("say", "杨兄只知其一，项西楚丘长春诸人武艺超群，并非小梁王所能驱策。");
		PlayerPerform("pause",9);
		PlayerPerform("block", 1);
		qng=58;
		tdy=now+18;
	}
	if(qng==58&&now>tdy)
	{
		RemoveNPC(c59);
		RemoveNPC(c60);
		RemoveNPC(c61);

		RemoveNPC(c55);
		RemoveNPC(c56);
		RemoveNPC(c98);
		qng=59;
		Save("Level\sa10.sav",3);
	}
	if(qng==59)
	{
		PlayerPerform("use",15);
		qng=60;
		tdy=now+2;
	}
	if(qng==60&&now>tdy)
	{
		AddNPC("9-82");
		AddNPC("9-63");
		AddNPC("9-62");
		AddNPC("9-64");
		AddNPC("9-66");

		AddNPC("9-55-1");
		AddNPC("9-56-1");
		AddNPC("9-98-1");
		qng=61;
		tdy=now+2;
	}
	if(qng==61&&now>tdy)
	{
		if(c82>=0&&c63>=0&&c62>=0&&c64>=0&&c66>=0&&c98>=0)
		{
			ZMJAI_MoveLocate(-1094,-1339,48);
			qng=62;
			tdy=now+2;
		}		
	}
	if(qng==62&&now>tdy)
	{
		SetTarget(0, "waypoint", 290);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=500)
		{
			ChangeBehavior(c65,"follow", player);

			Perform(c62,"say", "如今这群反贼已成困兽，在疯狂反扑！");
		    Perform(c62,"guard",3);
			Perform(c62,"say", "岳大哥，粮仓已被我们摧毁……");
			
			PlayerPerform("say", "杨兄罗兄，一起诛灭这帮反贼！");
		    PlayerPerform("pause",3);
			PlayerPerform("say", "擒贼先擒王，先解决【振威校尉】！");
		    PlayerPerform("pause",6);
			PlayerPerform("say", "极好！恩师何在？");
		    PlayerPerform("pause",6);
			
			Perform(c63,"say", "宗老爷已率军直扑高文才营帐。");
		    Perform(c63,"guard",9);
			qng=64;
			q2x1=1;
            q2x2=1;
            q2x3=1;
            q2x4=1;
            q2x5=1;
            q2x6=1;
            q2x7=1;
			tdy=now+15;
		}
	}
	
	if(qng==64&&GetHP(c66)<=0&&GetHP(c67)<=0&&GetHP(c68)<=0&&GetHP(c69)<=0&&GetHP(c70)<=0&&GetHP(c71)<=0&&GetHP(c72)<=0&&GetHP(c73)<=0)
	{
		ChangeBehavior(c98,"follow", player);
		ChangeBehavior(c55,"follow", player);
		ChangeBehavior(c56,"follow", player);
		ChangeBehavior(c82,"follow", player);
		ChangeBehavior(c63,"follow", player);
		ChangeBehavior(c62,"follow", player);
		ChangeBehavior(c64,"follow", player);
		PlayerPerform("block", 1);
		PlayerPerform("pause",1);
		PlayerPerform("block", 1);
		PlayerPerform("pause",1);
		PlayerPerform("block", 1);
		PlayerPerform("pause",1);
		PlayerPerform("block", 1);
		qng=65;
		tdy=now+3;
	}
	if(qng==65&&now>tdy)
	{
		ChangeBehavior(c98,"idle");
		ChangeBehavior(c55,"idle");
		ChangeBehavior(c56,"idle");
		ChangeBehavior(c82,"idle");
		ChangeBehavior(c63,"idle");
		ChangeBehavior(c62,"idle");
		ChangeBehavior(c64,"idle");
		qng=66;
	}
	if(qng==66)
	{
		Perform(c82,"say", "岳大哥……");
		Perform(c82,"pause",27);
		
		Perform(c98,"say", "这个自然不在话下。");
		Perform(c98, "faceto", player);
		Perform(c98,"pause",6);
		Perform(c98,"say", "杨兄弟、罗兄弟，俺老牛日前多有得罪，还望海涵！");
		Perform(c98,"pause",3);
		Perform(c98,"say", "俺老牛生平最敬重英雄好汉……");
		Perform(c98, "faceto", c55);
		Perform(c98,"pause",3);
		
		PlayerPerform("block", 0);
		PlayerPerform("say", "诸位兄弟，事不宜迟，大家开始行动！");
		PlayerPerform("pause",3);
		PlayerPerform("say", "我找到恩师，剿灭了高文才后，便来跟你汇合。");
		PlayerPerform("pause",3);
		PlayerPerform("say", "知言，你多有劳累，便先随王兄弟撤出外围。");
		PlayerPerform("pause",6);
		PlayerPerform("say", "届时三路齐攻，一举铲除八公遗迹所有叛贼！");
		PlayerPerform("pause",3);
		PlayerPerform("say", "愚兄前往高文才营帐与恩师汇合。");
		PlayerPerform("pause",3);
		PlayerPerform("say", "诸位兄弟，眼下你们兵分东西两路，将余党全部诛灭。");
		PlayerPerform("pause",6);
		PlayerPerform("say", "待剿灭了高文才叛党，牛兄可好好陪两位兄弟吃上几碗酒赔不是。");
		PlayerPerform("pause",9);
		PlayerPerform("say", "杨兄，罗兄，这些俱是我的好兄弟，你们多亲近亲近。");
		PlayerPerform("block", 1);
		
		Perform(c98, "faceto", player);
		Perform(c55, "faceto", player);
		Perform(c56, "faceto", player);
		Perform(c82, "faceto", player);
		Perform(c63, "faceto", player);
		Perform(c62, "faceto", player);
		Perform(c64, "faceto", player);
		qng=67;
		tdy=now+30;
	}
	if(qng==67&&now>tdy)
	{
		RemoveNPC(c98);
		RemoveNPC(c55);
		RemoveNPC(c56);
		RemoveNPC(c82);
		RemoveNPC(c63);
		RemoveNPC(c62);
		RemoveNPC(c64);
		RemoveNPC(c66);
		RemoveNPC(c67);
		RemoveNPC(c68);
		RemoveNPC(c69);
		RemoveNPC(c70);
		RemoveNPC(c71);
		RemoveNPC(c72);
		RemoveNPC(c73);
		qng=99;
		q=42;
		t=now+2;
		mc1=1;
		mc10=9;
	}
	if(qngs==1&&GetHP(c98)<=0)
	{
		PlayerPerform("say", "牛兄弟！");
		PlayerPerform("pause", 2);
		Say(c98, "好贼子！俺老牛做鬼也不会……呃啊~！");
		qngs=2;
		tngs=now+2;
	}
	if(qngs==2&&now>tngs)
	{
		v=2;
	}
	if(qwg==1)
	{
		SetTarget(0, "char", player);
		SetTarget(4, "waypoint", 116);
		if (Distance(0, 4) <=50)
		{
			Perform(c39,"say", "岳大哥，俺王贵的板斧早就饿了！");
			
			PlayerPerform("block", 0);
			PlayerPerform("say", "【确定请【攻击一次】。】");
			PlayerPerform("pause", 1);
			PlayerPerform("say", "【确定选择【王贵】吗？】");
			PlayerPerform("pause", 3);
		    PlayerPerform("block", 1);
			qwg=2;
		}
	}
	if(qwg==2&&GetHP(c39)<10000)
	{
		PlayerPerform("use", 15);
		qwg=3;
		qth=99;
		qzx=99;
		qng=99;
		qlzy=99;
		mc1=9;
		mc9=1;
		Save("Level\sa10-2.sav",1);
		Save("Level\sa10-1.sav",0);
		Save("Level\sa10-3.sav",0);
		Save("Level\sa10-4.sav",0);
		Save("Level\sa10-5.sav",0);
	}
	if(qwg==3)
	{
		Perform(c41,"say", "贤契，此处敌军虽已被杀退，但难免还有增援，需万分当心。");
	    Perform(c41,"pause",12);
		
		Perform(c37,"say", "既然岳大哥如此说了，兄弟们自当领命。");
	    Perform(c37,"pause",9);
		
		
		PlayerPerform("say", "恩师不必担忧，门生省得。");
		PlayerPerform("pause", 9);
		PlayerPerform("say", "因此烦请诸位先去，我与王贵兄弟稍后便赶来。");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "各位随恩师率军诛杀叛贼高文才才是首要。");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "诸位兄弟，捣毁兵器库乃小事一桩……");
		
		Perform(c36, "faceto", player);
		Perform(c37, "faceto", player);
		Perform(c38, "faceto", player);
		Perform(c39, "faceto", player);
		Perform(c40, "faceto", player);
		Perform(c41, "faceto", player);
		qwg=4;
		tdy=now+12;
	}
	if(qwg==4&&now>tdy)
	{
		RemoveNPC(c36);
		RemoveNPC(c37);
		RemoveNPC(c38);
		RemoveNPC(c39);
		RemoveNPC(c40);
		RemoveNPC(c41);
		qwg=5;
		tdy=now+1;
	}
	if(qwg==5&&now>tdy)
	{
		AddNPC("9-89");
		AddNPC("9-90");
		qwg=6;
		tdy=now+1;
	}
	if(qwg==6&&c89>=0&&c90>=0&&now>tdy)
	{
		Perform(c89,"say", "岳大哥你快来看！这里有个女子死了！");
		Perform(c89, "faceto", c90);
		
		Perform(c90,"use",35);
		qwg=7;
	}
	if(qwg==7)
	{
		SetTarget(0, "char", player);
		SetTarget(1, "waypoint", 440);
		if (Distance(0, 1) <=100)
		{
			Perform(c89,"say", "这是谁家的丫头，怎会死在这里？");
			
			PlayerPerform("say", "【提示：查看尸体。】");
		    PlayerPerform("pause", 1);
			PlayerPerform("say", "（咦？这女子看着好生面熟。）");
		    PlayerPerform("pause", 3);
			qwg=8;
		}
	}
	if(qwg==8)
	{
		SetTarget(0, "char", player);
		SetTarget(1, "waypoint", 441);
		if (Distance(0, 1) <=50)
		{
			PlayerPerform("block", 0);
			PlayerPerform("say", "事有蹊跷，王兄且稍候，待我查看。");
		    PlayerPerform("pause", 3);
			PlayerPerform("say", "怎会如此！");
		    PlayerPerform("pause", 3);
			PlayerPerform("say", "啊！这！这不是京城冯铁匠的闺女儿么！");
			PlayerPerform("block", 1);
			qwg=9;
			tdy=now+5;
		}
	}
	if(qwg==9&&now>tdy)
	{
		AddNPC("9-91");
		AddNPC("9-92");
		AddNPC("9-93");
		AddNPC("9-94");
		AddNPC("9-95");
		AddNPC("9-96");
		qwg=10;
		tdy=now+2;
	}
	if(qwg==10&&c91>=0&&c92>=0&&c93>=0&&c94>=0&&c95>=0&&c96>=0&&now>tdy)
	{
		PlayerPerform("say", "【计时开始！】");
		PlayerPerform("pause", 1);
		PlayerPerform("block", 0);
		PlayerPerform("say", "【十字妖槊对比沥泉神矛：攻击力-10，防御+20，速度+20。】");
		PlayerPerform("pause", 1);
		PlayerPerform("say", "【一分钟内解决6个神木化身，可获得【十字妖槊】。】");
		PlayerPerform("pause", 1);
		PlayerPerform("say", "神木使君！这恶贼怎会死灰复燃！");
		PlayerPerform("pause", 3);
		PlayerPerform("block", 1);
		
		Perform(c91,"say", "哈哈哈哈哈哈~");
		Perform(c91,"pause",1);
		Perform(c91,"say", "哈哈哈哈~");
		Perform(c91, "faceto", player);
		Perform(c92, "faceto", player);
		Perform(c93, "faceto", player);
		Perform(c94, "faceto", player);
		Perform(c95, "faceto", player);
		Perform(c96, "faceto", player);
		qwg=99;
		qsm1=1;
		qsm2=1;
		tsm=now+35;
	}
	if(qwg==11)
	{
		SetTarget(0, "char", player);
		SetTarget(1, "waypoint", 440);
		if (Distance(0, 1) <=100)
		{
			PlayerPerform("say", "眼下趁敌军增援未到，咱们得尽快找出兵器库入口。");
	   	    PlayerPerform("pause", 3);
		    PlayerPerform("say", "王兄，据张兄言道，兵器库乃是藏于地下。");
			Perform(c89, "faceto", player);
			qwg=12;
			tdy=now+2;
		}	
	}
	if(qwg==12&&now>tdy)
	{
		ChangeBehavior(c89,"follow", player);
		qwg=13;
		tdy=now+1;
	}
	if(qwg==13&&now>tdy)
	{
		AddNPC("9-55");
		AddNPC("9-56");
		AddNPC("9-76");
		AddNPC("9-77");
		AddNPC("9-78");
		AddNPC("9-79");
		AddNPC("9-80");
		AddNPC("9-81");
		qwg=14;
	}
	if(qwg==14&&c55>=0&&c56>=0&&c76>=0&&c77>=0&&c78>=0&&c79>=0&&c80>=0&&c81>=0)
	{
		ChangeBehavior(c55,"follow", c76);
		ChangeBehavior(c56,"follow", c76);
		qwg=15;
		tdy=now+1;
	}
	if(qwg==15&&now>tdy)
	{
		PlayerPerform("say", "从那边传来，似乎有人在拼杀。王兄，加快脚步！");
	   	PlayerPerform("pause", 3);
			
		Perform(c89,"say", "岳大哥你听，什么声音！");
		qwg=16;
	}
	if(qwg==16)
	{
		SetTarget(0, "char", player);
		SetTarget(1, "waypoint", 415);
		if (Distance(0, 1) <=800)
		{
			PlayerPerform("say", "是他们！王兄，先杀敌！");
			qwg=17;
		}
	}
	if(qwg==17&&GetHP(c76)<=0&&GetHP(c77)<=0&&GetHP(c78)<=0&&GetHP(c79)<=0&&GetHP(c80)<=0&&GetHP(c81)<=0)
	{
		ChangeBehavior(c55,"idle");
		ChangeBehavior(c56,"idle");
		ChangeBehavior(c89,"idle");
		qwg=18;
		tdy=now+2;
	}
	if(qwg==18&&now>tdy)
	{
		Perform(c55,"say", "这群反贼狡猾至极，将兵器库藏于地下，【佛塔】便是其入口。");
		Perform(c55,"pause",3);
		Perform(c55,"say", "岳兄，除恶务尽，眼下须将最后一处兵器库摧毁了。");
		Perform(c55,"pause",3);
		Perform(c55,"say", "杨再兴、罗延庆万死不辞！");
		Perform(c55,"pause",12);
		Perform(c55,"say", "岳兄屈尊，我二人受宠若惊！");
		Perform(c55,"pause",9);
		Perform(c55,"say", "岳兄何须如此！岂不折煞我等？");
		Perform(c55,"pause",6);
		Perform(c55,"say", "是以我二人才与之缠斗。");
		Perform(c55,"pause",3);
		Perform(c55,"say", "不料还剩下最后一处时，不知从何处冒出了一队贼兵，上来就动手。");
		Perform(c55,"pause",3);
		Perform(c55,"say", "于是我二人一不做二不休，索性将他兵器库的入口捣毁。");
		Perform(c55,"pause",3);
		Perform(c55,"say", "查到了此处，得知曾是那柴桂的兵器库。");
		Perform(c55,"pause",3);
		Perform(c55,"say", "幸喜这贼子死于岳兄枪下，连日来我二人明察暗访，");
		Perform(c55,"pause",3);
		Perform(c55,"say", "我与罗兄一合计，断不能让他得逞。");
		Perform(c55,"pause",3);
		Perform(c55,"say", "那日我二人离京之后，道上听到传言，小梁王柴桂意欲谋反。");
		Perform(c55,"pause",16);
		Perform(c55,"say", "哪个不赞一声岳兄乃真英雄、好汉子！");
		Perform(c55,"pause",3);
		Perform(c55,"say", "岳兄别来无恙。京中校场上岳兄枪挑小梁王，一战成名天下皆知。");
		Perform(c55,"pause",9);
		
		Perform(c56,"say", "你......你是岳飞！");
		Perform(c56,"pause",3);
		
		Perform(c89,"say", "两位好汉，好身手！。");
		Perform(c89,"pause",21);
		
		PlayerPerform("block", 0);
		PlayerPerform("say", "如此只需将【佛塔摧毁】，掩埋入口便是。");
		PlayerPerform("pause", 12);
		PlayerPerform("say", "繁文缛节却也不必了，两位兄弟，可愿随岳某一同锄奸？");
		PlayerPerform("pause", 6);
		PlayerPerform("say", "今日复得相见，岳某欲与两位义结金兰，不知可高攀否？");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "那日京城之中匆匆一晤，岳某时常念起两位兄台英雄侠义……");
		PlayerPerform("pause", 6);
		PlayerPerform("say", "两位兄台为国除奸侠肝义胆，请受岳某一拜！");
		PlayerPerform("pause", 24);
		PlayerPerform("say", "二位何故到此，又怎会与叛军缠斗？");
		PlayerPerform("pause", 6);
		PlayerPerform("say", "都是顶天立地的英雄好汉。");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "杨兄谬赞！王兄，这两位是“杨再兴”、“罗延庆”。");
		PlayerPerform("pause", 9);
		PlayerPerform("say", "不才正是在下。");
		PlayerPerform("pause", 6);
		PlayerPerform("say", "杨兄，罗兄，别来无恙？");
		PlayerPerform("block", 1);
		
		Perform(c89, "faceto", player);
		Perform(c55, "faceto", player);
		Perform(c56, "faceto", player);
		qwg=19;
		tdy=now+68;
	}
	if(qwg==19&&now>tdy)
	{
		RemoveNPC(c76);
		RemoveNPC(c77);
		RemoveNPC(c78);
		RemoveNPC(c79);
		RemoveNPC(c80);
		RemoveNPC(c81);
		qwg=20;
		tdy=now+1;
	}
	if(qwg==20&&now>tdy)
	{
		AddNPC("9-44");
		qwg=21;
	}
	if(qwg==21&&c44>=0)
	{
		Perform(c44,"use",46);
		ChangeBehavior(c89,"follow", player);
		ChangeBehavior(c56,"follow", player);
		ChangeBehavior(c55,"follow", player);
		qwg=22;
	}
	if(qwg==22)
	{
	    PlayerPerform("say", "【找到并摧毁佛塔】");
		PlayerPerform("pause", 1);
		PlayerPerform("say", "【找到并摧毁佛塔】");
		qwg=23;
	}
	if(qwg==23)
	{
		SetTarget(0, "char", player);
		SetTarget(1, "waypoint", 128);
		if (Distance(0, 1) <=100)
		{
			qwg=24;
		}
	}
	if(qwg==24)
	{
		PlayerPerform("say", "【提示：攻击佛塔】。");
		PlayerPerform("say", "【提示：攻击佛塔】。");
		qwg=25;
	}
	if(qwg==25&&GetHP(c44)<=13000)
	{
		AddNPC("9-48");
		qwg=26;
	}
	if(qwg==26&&c48>=0)
	{
		Perform(c48,"say", "给我杀！");
		
		PlayerPerform("say", "众兄弟，御敌！");
		PlayerPerform("pause", 3);
		qwg=27;
		q1x1=1;
        q1x2=1;
        q1x3=1;
        q1x4=1;
        q1x5=1;
        q1x6=1;
		qyhxw=1;
	}
	if(qwg==27)
	{
		ChangeBehavior(c89,"follow", player);
		ChangeBehavior(c56,"follow", player);
		ChangeBehavior(c55,"follow", player);
		qwg=28;
		tdy=now+40;
	}
	
	
	if(qwg==28&&now>tdy)
	{
		PlayerPerform("say", "【注意！优先攻击佛塔】");
		PlayerPerform("pause", 1);
		PlayerPerform("say", "【注意！优先攻击佛塔】");
		PlayerPerform("pause", 1);
		PlayerPerform("say", "【注意！优先攻击佛塔】");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "（我须尽快【摧毁佛塔】，以免夜长梦多。）");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "（贼兵源源不绝，也不知恩师那边情况如何……）");
		qwg=29;
	}
	if(qwg==29&&GetHP(c44)<=0)
	{
		PlayerPerform("say", "（总算毁了兵器库！尽快杀出重围。）");
		qwg=30;
		q1x1=9;
        q1x2=9;
        q1x3=9;
        q1x4=9;
        q1x5=9;
        q1x6=9;
		qyhxw=9;
		tdy=now+2;
	}
	if(qwg==30&&now>tdy)
	{
		Perform(c48,"guard",10);
		Perform(c48,"say", "塔在人在，塔毁人亡！呃啊~！");
		qwg=31;
		tdy=now+2;
	}
	if(qwg==31&&now>tdy)
	{
		Perform(c55,"say", "好手段！擒贼先擒王。兄弟，杀呀！");
		Perform(c55,"pause",1);
		Perform(c48,"use",35);
		qwg=32;
	}
	if(qwg==32&&GetHP(c49)<=0&&GetHP(c50)<=0&&GetHP(c51)<=0&&GetHP(c52)<=0&&GetHP(c53)<=0&&GetHP(c54)<=0)
	{
		Perform(c56,"say", "好歹是杀完了！");
		Perform(c56,"pause",1);
		qwg=33;
		tdy=now+2;
    }
	if(qwg==33&&now>tdy)
	{
		RemoveNPC(c44);
		RemoveNPC(c48);
		RemoveNPC(c49);
		RemoveNPC(c50);
		RemoveNPC(c51);
		RemoveNPC(c52);
		RemoveNPC(c53);
		RemoveNPC(c54);
		
		Perform(c56,"use",15);
		Perform(c55,"use",15);
		Perform(c89,"use",15);
		PlayerPerform("use", 15);
		qwg=34;
	}
	if(qwg==34)
	{
		PlayerPerform("say", "众兄弟，继续冲！");
		qwg=35;
	}
	if(qwg==35)
	{
		ChangeBehavior(c89,"follow", player);
		ChangeBehavior(c55,"follow", player);
		ChangeBehavior(c56,"follow", player);
		qwg=36;
	}
	if(qwg==36)
	{
		SetTarget(0, "waypoint", 177);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=250)
		{
		    AddNPC("9-57");
		    qwg=37;
		}
	} 
	if(qwg==37&&c57>=0)
	{
		Perform(c57,"use",45);
		Perform(c57,"say", "岳飞！有胆子你便跟来！");
		Perform(c57,"pause",1);
		Perform(c57, "faceto", player);
		
		PlayerPerform("block", 1);
		qwg=38;
		tdy=now+2;
	}
	if(qwg==38&&now>tdy)
	{
		SetTarget(0, "waypoint", 172);
		ChangeBehavior(c57, "attacktarget", 0);
		qwg=39;
	}
	
	if(qwg==39)
	{
		Perform(c56,"say", "好狗贼！给我站住！");
		
		PlayerPerform("say", "罗兄且慢，当心伏兵！");
		PlayerPerform("pause", 3);
		PlayerPerform("block", 1);
		qwg=40;
		tdy=now+3;
	}
	if(qwg==40&&now>tdy)
	{
		AddNPC("9-58");
		qwg=41;
	}
	if(qwg==41&&c58>=0)
	{
		PlayerPerform("block", 0);
		PlayerPerform("say", "【注意！与【传令兵】见面后，博渤伯将离场。】");
		PlayerPerform("pause",2);
		PlayerPerform("say", "【提示：找到“博渤伯”，可获得【永久防御加成】。】");
		PlayerPerform("pause",1);
		PlayerPerform("say", "【提示：找到“博渤伯”，可获得【永久防御加成】。】");
		PlayerPerform("pause",1);
		PlayerPerform("say", "【提示：隐藏NPC“博渤伯”出现！】");
		PlayerPerform("pause",1);
		PlayerPerform("say", "【提示：隐藏NPC“博渤伯”出现！】");
		PlayerPerform("pause",2);
		PlayerPerform("say", "【主线：追踪传令兵。】");
		PlayerPerform("pause",2);
		PlayerPerform("block", 1);
		qwg=42;
		qb=1;
	}
	if(qwg==42)
	{
		SetTarget(0, "waypoint", 172);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=150)
		{
			Perform(c57,"say", "岳飞，此处便是你的墓地！");
		    Perform(c57,"pause",1);
		
			Perform(c58,"say", "我是博渤伯，伯伯去也~！");
			
			Perform(c89,"guard",28);
			Perform(c55,"guard",28);
			Perform(c56,"guard",28);
			PlayerPerform("block", 1);
			qb=9;
			qwg=43;
			tdy=now+2;
		}
	}
	if(qwg==43&&now>tdy)
	{
		RemoveNPC(c57);
		RemoveNPC(c58);
		qwg=45;
		tdy=now+1;
	}
	if(qwg==45&&now>tdy)
	{
		AddNPC("9-59");
		AddNPC("9-60");
		AddNPC("9-61");
		qwg=46;
	}
	if(qwg==46&&c59>=0&&c60>=0&&c61>=0)
	{
		ChangeBehavior(c59, "idle");
		ChangeBehavior(c60, "idle");
		ChangeBehavior(c61, "idle");
		qwg=47;
	}
	if(qwg==47)
	{
		Perform(c60,"say", "你怕是不晓得，我【七曜】乃不死之身！");
		Perform(c60,"pause",3);
		Perform(c60,"say", "小子，莫非你真以为能杀得了我们？哈哈哈哈~！");
		Perform(c60,"pause",6);
		
		Perform(c59,"say", "胡吹大气！此地便是你葬身之所！");
		Perform(c59,"pause",18);
		Perform(c59,"say", "岳飞！咱们又见面了！");
		
		PlayerPerform("block", 0);
		PlayerPerform("say", "今日我便替太师父清理门户！");
		PlayerPerform("pause",3);
		PlayerPerform("say", "师闻墨！我那两位师叔被你害得身败名裂……");
		PlayerPerform("pause",6);
		PlayerPerform("say", "你们不出现则罢，既然巴巴赶来领死，我便送你们七人团聚！");
		PlayerPerform("pause",3);
		PlayerPerform("say", "咄！若是不死，七人又如何只剩下你三人？");
		PlayerPerform("pause",9);
		PlayerPerform("say", "师闻墨！还有项西楚丘长春！你们……！");
		PlayerPerform("pause",3);
		PlayerPerform("block", 1);
		
		Perform(c59, "faceto", player);
		Perform(c60, "faceto", player);
		Perform(c61, "faceto", player);
		qwg=48;
		tdy=now+20;
	}
	if(qwg==48&&now>tdy)
	{
		ChangeBehavior(c89,"follow", player);
		ChangeBehavior(c56,"follow", c61);
		ChangeBehavior(c55,"follow", c60);
		
		ChangeBehavior(c59,"follow", player);
		ChangeBehavior(c60,"follow", c55);
		ChangeBehavior(c61,"follow", c56);
		qwg=49;
	}
	if(qwg==49&&GetHP(c61)<=0)
	{
		ChangeBehavior(c56,"follow", player);
		qwg=50;
	}
	if(qwg==50&&GetHP(c60)<=0)
	{
		ChangeBehavior(c55,"follow", player);
		qwg=51;
	}
	if(qwg==51&&GetHP(c59)<=0)
	{
		Say(c59, "岳飞！你好歹叫我一声师兄！你竟如此…………呃啊！");
		qwg=52;
		tdy=now+2;
	}
	if(qwg==52&&GetHP(c59)<=0&&GetHP(c60)<=0&&GetHP(c61)<=0&&now>tdy)
	{
		
		Perform(c55,"say", "怎料如今却倒行逆施，甘为柴桂走狗。");
		Perform(c55,"pause",3);
		Perform(c55,"say", "项西楚，当年一杆霸王枪震慑群雄，原是一条响当当的汉子……");
		Perform(c55,"pause",3);
		
		Perform(c56,"say", "金人？！原来做了叛贼！如此死了倒也不冤！");
		Perform(c56,"pause",15);
		Perform(c56,"say", "这三个贼厮鸟当真厉害！大哥，我看那人的枪法不在你之下。");
		
		PlayerPerform("block", 0);
		PlayerPerform("say", "诸位兄弟，咱们继续前行。");
		PlayerPerform("pause",3);
		PlayerPerform("say", "这些过节日后详说，眼下先去同宗泽留守汇合才是。");
		PlayerPerform("pause",6);
		PlayerPerform("say", "他们背后实则是投靠了金人！");
		PlayerPerform("pause",3);
		PlayerPerform("say", "杨兄只知其一，项西楚丘长春诸人武艺超群，并非小梁王所能驱策。");
		PlayerPerform("pause",9);
		PlayerPerform("block", 1);
		qwg=53;
		tdy=now+18;
	}
	if(qwg==53&&now>tdy)
	{
		RemoveNPC(c59);
		RemoveNPC(c60);
		RemoveNPC(c61);
		RemoveNPC(c55);
		RemoveNPC(c56);
		RemoveNPC(c89);
		qwg=54;
	}
	if(qwg==54)
	{
		PlayerPerform("block", 0);
		PlayerPerform("say", "【关卡进度已保存】");
		PlayerPerform("pause", 1);
		PlayerPerform("say", "【关卡进度已保存】");
		PlayerPerform("block", 1);
		PlayerPerform("use",15);
		qwg=55;
		tdy=now+2;
		Save("Level\sa10.sav",3);
	}
	if(qwg==55&&now>tdy)
	{
		AddNPC("9-82");
		AddNPC("9-63");
		AddNPC("9-62");
		AddNPC("9-65");
		AddNPC("9-66");

		AddNPC("9-55-1");
		AddNPC("9-56-1");
		AddNPC("9-89-1");
		qwg=57;
		tdy=now+2;
	}
	if(qwg==57&&now>tdy)
	{
		if(c82>=0&&c55>=0)
		{
			ZMJAI_MoveLocate(-1094,-1339,48);
			qwg=58;
			tdy=now+2;
		}		
	}
	if(qwg==58&&now>tdy)
	{
		SetTarget(0, "waypoint", 290);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=500)
		{
			ChangeBehavior(c65,"follow", player);
			Perform(c63,"say", "如今这群反贼已成困兽，在疯狂反扑！");
		    Perform(c63,"guard",3);
			Perform(c63,"say", "岳大哥，粮仓已被我们摧毁……");
			
			PlayerPerform("say", "杨兄罗兄，一起诛灭这帮反贼！");
		    PlayerPerform("pause",6);
			PlayerPerform("say", "极好！恩师何在？");
		    PlayerPerform("pause",6);
			
			Perform(c82,"say", "宗老爷已率军直扑高文才营帐。");
		    Perform(c82,"guard",9);
			qwg=59;
			q2x1=1;
            q2x2=1;
            q2x3=1;
            q2x4=1;
            q2x5=1;
            q2x6=1;
            q2x7=1;
			tdy=now+15;
		}
	}
	if(qwg==59&&now>tdy)
	{
		Perform(c65,"say", "......俺打不过你......");
		Perform(c65,"guard",9);
		Perform(c65,"say", "哇呀~！是京中小校场上的两个直娘贼！");
		
		Perform(c56,"say", "黑炭头！待杀完了贼兵，是好汉便再来较量较量。");
		Perform(c56,"guard",6);
		
		PlayerPerform("say", "（擒贼先擒王，先解决【振威校尉】！）");
		PlayerPerform("pause",15);
		PlayerPerform("say", "牛兄弟休得无礼！");
		PlayerPerform("pause",3);
		qwg=60;
	}
	if(qwg==60)
	{
		qwg=61;
	}
	if(qwg==61&&GetHP(c66)<=0&&GetHP(c67)<=0&&GetHP(c68)<=0&&GetHP(c69)<=0&&GetHP(c70)<=0&&GetHP(c71)<=0&&GetHP(c72)<=0&&GetHP(c73)<=0)
	{
		ChangeBehavior(c89,"follow", player);
		ChangeBehavior(c55,"follow", player);
		ChangeBehavior(c56,"follow", player);
		ChangeBehavior(c82,"follow", player);
		ChangeBehavior(c63,"follow", player);
		ChangeBehavior(c62,"follow", player);
		ChangeBehavior(c65,"follow", player);
		PlayerPerform("block", 1);
		PlayerPerform("pause",1);
		PlayerPerform("block", 1);
		PlayerPerform("pause",1);
		PlayerPerform("block", 1);
		PlayerPerform("pause",1);
		PlayerPerform("block", 1);
		qwg=62;
		tdy=now+3;
	}
	if(qwg==62&&now>tdy)
	{
		ChangeBehavior(c89,"idle");
		ChangeBehavior(c55,"idle");
		ChangeBehavior(c56,"idle");
		ChangeBehavior(c82,"idle");
		ChangeBehavior(c63,"idle");
		ChangeBehavior(c62,"idle");
		ChangeBehavior(c65,"idle");
		qwg=63;
	}
	if(qwg==63)
	{
		Perform(c82,"say", "岳大哥……");
		Perform(c82,"pause",27);
		
		Perform(c65,"say", "这个自然不在话下。");
		Perform(c65, "faceto", player);
		Perform(c65,"pause",6);
		Perform(c65,"say", "杨兄弟、罗兄弟，俺老牛日前多有得罪，还望海涵！");
		Perform(c65,"pause",3);
		Perform(c65,"say", "俺老牛生平最敬重英雄好汉……");
		Perform(c65, "faceto", c55);
		Perform(c65,"pause",3);
		
		PlayerPerform("block", 0);
		PlayerPerform("say", "诸位兄弟，事不宜迟，大家开始行动！");
		PlayerPerform("pause",3);
		PlayerPerform("say", "我找到恩师，剿灭了高文才后，便来跟你汇合。");
		PlayerPerform("pause",3);
		PlayerPerform("say", "知言，你多有劳累，便先随王兄弟撤出外围。");
		PlayerPerform("pause",6);
		PlayerPerform("say", "届时三路齐攻，一举铲除八公遗迹所有叛贼！");
		PlayerPerform("pause",3);
		PlayerPerform("say", "愚兄前往高文才营帐与恩师汇合。");
		PlayerPerform("pause",3);
		PlayerPerform("say", "诸位兄弟，眼下你们兵分东西两路，将余党全部诛灭。");
		PlayerPerform("pause",6);
		PlayerPerform("say", "待剿灭了高文才叛党，牛兄可好好陪两位兄弟吃上几碗酒赔不是。");
		PlayerPerform("pause",9);
		PlayerPerform("say", "杨兄，罗兄，这些俱是我的好兄弟，你们多亲近亲近。");
		PlayerPerform("block", 1);
		
		Perform(c89, "faceto", player);
		Perform(c55, "faceto", player);
		Perform(c56, "faceto", player);
		Perform(c82, "faceto", player);
		Perform(c63, "faceto", player);
		Perform(c62, "faceto", player);
		Perform(c65, "faceto", player);
		qwg=64;
		tdy=now+30;
	}
	if(qwg==64&&now>tdy)
	{
		RemoveNPC(c89);
		RemoveNPC(c55);
		RemoveNPC(c56);
		RemoveNPC(c82);
		RemoveNPC(c63);
		RemoveNPC(c62);
		RemoveNPC(c65);
		RemoveNPC(c66);
		RemoveNPC(c67);
		RemoveNPC(c68);
		RemoveNPC(c69);
		RemoveNPC(c70);
		RemoveNPC(c71);
		RemoveNPC(c72);
		RemoveNPC(c73);
		qwg=99;
		q=42;
		t=now+2;
		mc1=1;
		mc9=9;
	} 
	if(qsm2==1&&GetHP(c91)<=0&&GetHP(c92)<=0&&GetHP(c93)<=0&&GetHP(c94)<=0&&GetHP(c95)<=0&&GetHP(c96)<=0)
	{
		AddNPC("9-97");
		qsm1=9;
		qsm2=2;
	}
	if(qsm2==2&&c97>=0)
	{
		SetTarget(0, "char", player);
		SetTarget(3, "waypoint", 477);
		if (Distance(0, 3) <=150)
		{
			PlayerPerform("block", 0);
			PlayerPerform("say", "【不想换请回到王贵身边。】");
		    PlayerPerform("pause", 1);
			PlayerPerform("say", "【需要替换，请攻击一次。】");
		    PlayerPerform("pause", 1);
			PlayerPerform("say", "【十字妖槊对比沥泉神矛：攻击力-10，防御+20，速度+20。】");
			PlayerPerform("block", 1);
			qsm2=3;
		}
	}
	if(qsm2==3)
	{
		SetTarget(0, "char", player);
		SetTarget(1, "waypoint", 440);
		if (Distance(0, 1) <=100)
		{
			RemoveNPC(c90);
		    RemoveNPC(c91);
		    RemoveNPC(c92);
		    RemoveNPC(c93);
		    RemoveNPC(c94);
		    RemoveNPC(c95);
		    RemoveNPC(c96);
			RemoveNPC(c97);
			qsm2=9;
			qwg=11;
			tdy=now+2;
		}
	}
	if(qsm1==1&&now>tsm)
	{
		PlayerPerform("say", "【时间已过了一半。】");
		PlayerPerform("say", "【时间已过了一半。】");
		qsm1=2;
		tsm=now+15;
	}
	if(qsm1==2&&now>tsm)
	{
		PlayerPerform("say", "【时间还剩15秒。】");
		PlayerPerform("say", "【时间还剩15秒。】");
		qsm1=3;
		tsm=now+5;
	}
	if(qsm1==3&&now>tsm)
	{
		PlayerPerform("say", "【时间还剩10秒。】");
		PlayerPerform("say", "【时间还剩10秒。】");
		qsm1=4;
		tsm=now+5;
	}
	if(qsm1==4&&now>tsm)
	{
		PlayerPerform("say", "【时间还剩5秒。】");
		PlayerPerform("say", "【时间还剩5秒。】");
		qsm1=5;
		tsm=now+5;
	}
	if(qsm1==5&&now>tsm)
	{
		PlayerPerform("say", "【时间已耗尽。】");
		PlayerPerform("say", "【时间已耗尽。】");
		qsm1=6;
		qsm2=9;
		tsm=now+2;
	}
	if(qsm1==6&&now>tsm)
	{
		RemoveNPC(c90);
		RemoveNPC(c91);
		RemoveNPC(c92);
		RemoveNPC(c93);
		RemoveNPC(c94);
		RemoveNPC(c95);
		RemoveNPC(c96);
		qsm1=7;
		tsm=now+1;
	}
	if(qsm1==7)
	{
		Perform(c89,"say", "岳大哥,快回来吧，办正事要紧！");
		qsm1=9;
		qwg=11;
		tdy=now+2;
	}
	if(qzx==1)
	{
		SetTarget(0, "char", player);
		SetTarget(3, "waypoint", 115);
		if (Distance(0, 3) <=50)
		{
			Perform(c38,"say", "岳大哥，张显已准备好，只待你一声令下！");
			
			PlayerPerform("block", 0);
			PlayerPerform("say", "【确定请【攻击一次】。】");
			PlayerPerform("pause", 1);
			PlayerPerform("say", "【确定选择【张显】吗？】");
			PlayerPerform("pause", 3);
		    PlayerPerform("block", 1);
			qzx=2;
		}
	}
	if(qzx==2&&GetHP(c38)<10000)
	{
		PlayerPerform("use", 15);
		qzx=3;
		qth=99;
		qwg=99;
		qng=99;
		qlzy=99;
		mc1=9;
		mc8=1;
		Save("Level\sa10-3.sav",1);
		Save("Level\sa10-2.sav",0);
		Save("Level\sa10-1.sav",0);
		Save("Level\sa10-4.sav",0);
		Save("Level\sa10-5.sav",0);
	}
	if(qzx==3)
	{
		Perform(c41,"say", "贤契，此处敌军虽已被杀退，但难免还有增援，需万分当心。");
	    Perform(c41,"pause",12);
		
		Perform(c37,"say", "既然岳大哥如此说了，兄弟们自当领命。");
	    Perform(c37,"pause",9);
		
		
		PlayerPerform("say", "恩师不必担忧，门生省得。");
		PlayerPerform("pause", 9);
		PlayerPerform("say", "因此烦请诸位先去，我与张显兄弟稍后便赶来。");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "各位随恩师率军诛杀叛贼高文才才是首要。");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "诸位兄弟，捣毁兵器库乃小事一桩……");
		
		Perform(c36, "faceto", player);
		Perform(c37, "faceto", player);
		Perform(c38, "faceto", player);
		Perform(c39, "faceto", player);
		Perform(c40, "faceto", player);
		Perform(c41, "faceto", player);
		qzx=4;
		tdy=now+12;
	}
	if(qzx==4&&now>tdy)
	{
		RemoveNPC(c36);
		RemoveNPC(c37);
		RemoveNPC(c38);
		RemoveNPC(c39);
		RemoveNPC(c40);
		RemoveNPC(c41);
		qzx=5;
		tdy=now+1;
	}
	if(qzx==5&&now>tdy)
	{
		AddNPC("9-83");
		AddNPC("9-84");
		qzx=6;
	}
	if(qzx==6&&c83>=0&&c84>=0)
	{
		Perform(c83,"say", "岳大哥你快过来！这里有位姑娘坠崖了！");
		Perform(c83, "faceto", c84);
		qzx=7;
	}
	if(qzx==7)
	{
		SetTarget(0, "char", player);
		SetTarget(1, "waypoint", 416);
		if (Distance(0, 1) <=150)
		{
			Perform(c83,"say", "你轻功好，是否下去查看一下？");
	        Perform(c83,"pause",3);
			Perform(c83,"say", "岳大哥，山谷下有位姑娘，似乎受伤不轻。");
			
			PlayerPerform("block", 0);
			PlayerPerform("say", "救人性命，义不容辞。");
		    PlayerPerform("pause", 6);
			PlayerPerform("block", 1);
			Perform(c83, "faceto", player);
			qzx=8;
		}
	}
	if(qzx==8)
	{
		SetTarget(0, "char", player);
		SetTarget(1, "waypoint", 417);
		if (Distance(0, 1) <=50)
		{
			Perform(c84,"say", "公子将小女【带至泉中】即可，艾叶拜托公子！");
	        Perform(c84,"pause",3);
			Perform(c84,"say", "此谷外有【一汪清泉】，颇具疗伤奇效……");
	        Perform(c84,"pause",3);
			Perform(c84,"say", "公子可否救小女一救？");
	        Perform(c84,"pause",3);
			Perform(c84,"say", "他们欲对小女……小女仓皇逃命，不料失足跌落……");
	        Perform(c84,"pause",3);
			Perform(c84,"say", "公子……小女……小女名叫“艾叶”，本是来此采药，不料遇到土匪……");
	        Perform(c84,"pause",3);
			Perform(c84, "faceto", player);
			
			PlayerPerform("block", 0);
			PlayerPerform("say", "【直至与大军汇合后，奖励结束。】");
		    PlayerPerform("pause", 2);
			PlayerPerform("say", "【加血奖励：平均【每分钟恢复100血】。】");
		    PlayerPerform("pause", 2);
			PlayerPerform("say", "【将艾叶【安全带到水潭中】，可获得【加血奖励】。】");
		    PlayerPerform("pause", 21);
			PlayerPerform("say", "姑娘，你可还好？");
			PlayerPerform("block", 1);
			qzx=9;
			tdy=now+20;
		}
	}
	if(qzx==9&&now>tdy)
	{
		ChangeBehavior(c84,"follow", player);
		qay=1;
		qayx1=1;
		qayx2=1;
		qayx3=1;
		qayx4=1;
		qzx=10;
	}
	if(qzx==10)
	{
		SetTarget(0, "char", c84);
		SetTarget(1, "waypoint", 430);
		if (Distance(0, 1) <=50)
		{
			ChangeBehavior(c84,"idle");
			
			PlayerPerform("say", "你们还不快滚，想把小命交代在此处么！");
			PlayerPerform("block", 1);
			
			Perform(c88,"guard",30);
		    Perform(c87,"guard",30);
		    Perform(c86,"guard",30);
		    Perform(c85,"guard",30);
			qay=9;
		    qayx1=9;
		    qayx2=9;
		    qayx3=9;
		    qayx4=9;
			qzx=11;
			tdy=now+3;
		}
	}
	if(qzx==11&&now>tdy)
	{
		RemoveNPC(c85);
		RemoveNPC(c86);
		RemoveNPC(c87);
		RemoveNPC(c88);
		qzx=12;
		tdy=now+1;
	}
	if(qzx==12&&now>tdy)
	{
		Perform(c84,"say", "多谢公子！艾叶……要褪衣疗伤了，公子……还请回避。");
		PlayerPerform("block", 0);
		PlayerPerform("pause", 1);
		PlayerPerform("block", 1);
		qzx=13;
		qjx=1;
		tdy=now+2;
	}
	if(qzx==13&&now>tdy)
	{
		RemoveNPC(c84);
		qzx=14;
	}
	if(qzx==14&&c84<0)
	{
		SetTarget(0, "char", player);
		SetTarget(1, "waypoint", 416);
		if (Distance(0, 1) <=150)
		{
			PlayerPerform("block", 0);
			PlayerPerform("say", "【找到并摧毁佛塔】。");
			PlayerPerform("say", "【找到并摧毁佛塔】。");
			PlayerPerform("pause", 2);
			PlayerPerform("say", "既然如此，咱们只需将【佛塔摧毁】，掩埋入口便是。");
			PlayerPerform("pause", 6);
			PlayerPerform("block", 1);
			
			Perform(c83,"say", "据地图显示，【佛塔】便是其入口。");
	        Perform(c83,"pause",3);
			Perform(c83,"say", "岳大哥，高文才狡猾至极，将兵器库藏于地下。");
			Perform(c83, "faceto", player);
			qzx=15;
			tdy=now+5;
		}
	}
	if(qzx==15&&now>tdy)
	{
		AddNPC("9-44");
		qzx=16;
	}
	if(qzx==16&&c44>=0)
	{
		Perform(c44,"use",46);
		ChangeBehavior(c83,"follow", player);
		qzx=17;
	}
	if(qzx==17)
	{
		SetTarget(0, "char", player);
		SetTarget(1, "waypoint", 127);
		if (Distance(0, 1) <=150)
		{
			Perform(c83,"say", "就是这里！");
			
			PlayerPerform("say", "好，我来摧毁它！");
			PlayerPerform("pause", 3);
			qzx=18;
		}
	}
	
	if(qzx==18&&GetHP(c44)<=13000)
	{
		AddNPC("9-48");
		qzx=19;
	}
	if(qzx==19&&c48>=0)
	{
		Perform(c48,"say", "给我杀！");
		
		PlayerPerform("say", "张兄，准备御敌！");
		PlayerPerform("pause", 3);
		qzx=20;
		q1x1=1;
        q1x2=1;
        q1x3=1;
        q1x4=1;
        q1x5=1;
        q1x6=1;
		qyhxw=1;
		tdy=now+60;
	}
	if(qzx==20&&now>tdy)
	{
		AddNPC("9-55");
		AddNPC("9-56");
		qzx=21;
	}
	if(qzx==21&&c55>=0&&c56>=0)
	{
		Perform(c55,"say", "传言他枪挑了小梁王，如此看来，与他敌对的定是小梁王的叛军！");
		Perform(c55,"pause",2);
		Perform(c55,"say", "果真是岳飞！");
		Perform(c55,"pause",6);
		Perform(c55,"say", "看着都是宋兵，不知闹什么玄虚。");
		Perform(c55,"pause",3);
		
		Perform(c56,"say", "那还看什么！咱们也冲下去助他杀敌！");
		Perform(c56,"pause",8);
		Perform(c56,"say", "大哥你快看！那人像是京中校场上的岳飞！");
		Perform(c56,"pause",6);
		Perform(c56,"say", "呀！大哥你瞧，这下面打得相当热闹。");
		qzx=22;
		tdy=now+15;
	}
	if(qzx==22&&now>tdy)
	{
		Perform(c83,"use",15);
		
		Perform(c56,"say", "贼子休得猖狂！湖广罗延庆来也！");
		Perform(c56,"pause",1);
		Perform(c55,"say", "岳飞！山后杨再兴来助你杀敌了！。");
		qzx=23;
		tdy=now+3;
	}
	if(qzx==23&&now>tdy)
	{
	    ChangeBehavior(c55,"follow", player);
		ChangeBehavior(c56,"follow", player);
		PlayerPerform("say", "两位兄台来得正好！先杀退了贼兵！");
		qzx=24;
		tdy=now+30;
	}
	if(qzx==24&&now>tdy)
	{
		PlayerPerform("say", "【注意！优先攻击佛塔】");
		PlayerPerform("pause", 1);
		PlayerPerform("say", "【注意！优先攻击佛塔】");
		PlayerPerform("pause", 1);
		PlayerPerform("say", "【注意！优先攻击佛塔】");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "（我须尽快【摧毁佛塔】，以免夜长梦多。）");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "（贼兵源源不绝，也不知恩师那边情况如何……）");
		qzx=25;
	}
	if(qzx==25&&GetHP(c44)<=0)
	{
		PlayerPerform("say", "（总算毁了兵器库！尽快杀出重围。）");
		qzx=26;
		q1x1=9;
        q1x2=9;
        q1x3=9;
        q1x4=9;
        q1x5=9;
        q1x6=9;
		qyhxw=9;
		tdy=now+2;
	}
	if(qzx==26&&now>tdy)
	{
		Perform(c48,"guard",10);
		Perform(c48,"say", "塔在人在，塔毁人亡！呃啊~！");
		qzx=27;
		tdy=now+2;
	}
	if(qzx==27&&now>tdy)
	{
		Perform(c55,"say", "好手段！擒贼先擒王。兄弟，杀呀！");
		Perform(c55,"pause",1);
		Perform(c48,"use",35);
		qzx=28;
	}
	if(qzx==28&&GetHP(c49)<=0&&GetHP(c50)<=0&&GetHP(c51)<=0&&GetHP(c52)<=0&&GetHP(c53)<=0&&GetHP(c54)<=0)
	{
		ChangeBehavior(c83,"idle");
		ChangeBehavior(c55,"idle");
		ChangeBehavior(c56,"idle");
		qzx=29;
		tdy=now+2;
    }
    if(qzx==29&&now>tdy)
	{
		Perform(c83, "faceto", player);
		Perform(c83,"pause",5);
		Perform(c83,"say", "杨兄、罗兄，在下张显，幸会！");
		Perform(c83, "faceto", c55);
		Perform(c83,"pause",21);
		
		Perform(c55,"say", "杨再兴、罗延庆万死不辞！");
		Perform(c55,"pause",6);
		Perform(c55,"say", "岳兄屈尊，我二人受宠若惊……");
		Perform(c55,"pause",12);
		Perform(c55,"say", "岳兄盖世无双，身边也尽是英雄才俊。");
		Perform(c55, "faceto",player );
		Perform(c55,"pause",6);
		Perform(c55,"say", "岳兄，这位是？");
		Perform(c55, "faceto", c83);
		Perform(c55,"pause",6);
		Perform(c55,"say", "哪个不赞一声岳兄乃真英雄、好汉子？");
		Perform(c55,"pause",3);
		Perform(c55,"say", "京中校场上，岳兄枪挑小梁王，一战成名天下皆知，");
		Perform(c55,"pause",9);
		
		Perform(c56,"say", "托岳兄宏福，没在校场上死于岳兄枪下。");
		Perform(c56,"pause",3);
		
		PlayerPerform("say", "繁文缛节却也不必了，两位兄弟，眼下可愿随愚兄一同锄奸？");
		PlayerPerform("pause", 6);
		PlayerPerform("say", "今日复得相见，岳某欲与两位义结金兰，不知可高攀否？");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "那日京城之中匆匆一晤，岳某时常念起两位兄台英雄侠义……");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "杨兄再谬赞，岳某可就要飞上天了。");
		PlayerPerform("pause", 12);
		PlayerPerform("say", "着实过誉，岳某愧不敢当。");
		PlayerPerform("pause", 9);
		PlayerPerform("say", "罗兄说笑了。");
		PlayerPerform("pause", 6);
		PlayerPerform("say", "杨兄，罗兄，别来无恙？");
		PlayerPerform("block", 1);
		Perform(c83, "faceto", player);
		Perform(c55, "faceto", player);
		Perform(c56, "faceto", player);
		qzx=30;
		tdy=now+38;
	}    
	if(qzx==30&&now>tdy)
	{
		RemoveNPC(c44);
		RemoveNPC(c48);
		RemoveNPC(c49);
		RemoveNPC(c50);
		RemoveNPC(c51);
		RemoveNPC(c52);
		RemoveNPC(c53);
		RemoveNPC(c54);
		
		Perform(c56,"use",15);
		Perform(c55,"use",15);
		Perform(c83,"use",15);
		PlayerPerform("use", 15);
		qzx=31;
	}
	if(qzx==31)
	{
		PlayerPerform("block", 0);
		ChangeBehavior(c83,"follow", player);
		ChangeBehavior(c55,"follow", player);
		ChangeBehavior(c56,"follow", player);
		qzx=32;
	}
    if(qzx==32)
	{
		SetTarget(0, "waypoint", 177);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=250)
		{
		    AddNPC("9-57");
		    qzx=33;
		}
	} 
	if(qzx==33&&c57>=0)
	{
		Perform(c57,"use",45);
		Perform(c57,"say", "岳飞！有胆子你便跟来！");
		Perform(c57,"pause",1);
		Perform(c57, "faceto", player);
		
		PlayerPerform("block", 1);
		qzx=34;
		tdy=now+2;
	}
	if(qzx==34&&now>tdy)
	{
		SetTarget(0, "waypoint", 172);
		ChangeBehavior(c57, "attacktarget", 0);
		qzx=35;
	}
	
	if(qzx==35)
	{
		Perform(c56,"say", "好狗贼！给我站住！");
		
		PlayerPerform("say", "罗兄且慢，当心伏兵！");
		PlayerPerform("pause", 3);
		PlayerPerform("block", 1);
		qzx=36;
		tdy=now+3;
	}
	if(qzx==36&&now>tdy)
	{
		AddNPC("9-58");
		qzx=37;
	}
	if(qzx==37&&c58>=0)
	{
		PlayerPerform("block", 0);
		PlayerPerform("say", "【注意！与【传令兵】见面后，博渤伯将离场。】");
		PlayerPerform("pause",2);
		PlayerPerform("say", "【提示：找到“博渤伯”，可获得【永久防御加成】。】");
		PlayerPerform("pause",1);
		PlayerPerform("say", "【提示：找到“博渤伯”，可获得【永久防御加成】。】");
		PlayerPerform("pause",1);
		PlayerPerform("say", "【提示：隐藏NPC“博渤伯”出现！】");
		PlayerPerform("pause",1);
		PlayerPerform("say", "【提示：隐藏NPC“博渤伯”出现！】");
		PlayerPerform("pause",2);
		PlayerPerform("say", "【主线：追踪传令兵。】");
		PlayerPerform("pause",2);
		PlayerPerform("block", 1);
		qzx=38;
		qb=1;
	}
	if(qzx==38)
	{
		SetTarget(0, "waypoint", 172);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=150)
		{
			Perform(c57,"say", "岳飞，此处便是你的墓地！");
		    Perform(c57,"pause",1);
		
			Perform(c58,"say", "我是博渤伯，伯伯去也~！");
			
			Perform(c83,"guard",28);
			Perform(c55,"guard",28);
			Perform(c56,"guard",28);
			PlayerPerform("block", 1);
			qb=9;
			qzx=39;
			tdy=now+2;
		}
	}
	if(qzx==39&&now>tdy)
	{
		RemoveNPC(c57);
		RemoveNPC(c58);
		qzx=40;
		tdy=now+1;
	}
	if(qzx==40&&now>tdy)
	{
		AddNPC("9-59");
		AddNPC("9-60");
		AddNPC("9-61");
		qzx=41;
	}
	if(qzx==41&&c59>=0&&c60>=0&&c61>=0)
	{
		ChangeBehavior(c59, "idle");
		ChangeBehavior(c60, "idle");
		ChangeBehavior(c61, "idle");
		qzx=42;
	}
	if(qzx==42)
	{
		Perform(c60,"say", "你怕是不晓得，我【七曜】乃不死之身！");
		Perform(c60,"pause",3);
		Perform(c60,"say", "小子，莫非你真以为能杀得了我们？哈哈哈哈~！");
		Perform(c60,"pause",6);
		
		Perform(c59,"say", "胡吹大气！此地便是你葬身之所！");
		Perform(c59,"pause",18);
		Perform(c59,"say", "岳飞！咱们又见面了！");
		
		PlayerPerform("block", 0);
		PlayerPerform("say", "今日我便替太师父清理门户！");
		PlayerPerform("pause",3);
		PlayerPerform("say", "师闻墨！我那两位师叔被你害得身败名裂……");
		PlayerPerform("pause",6);
		PlayerPerform("say", "你们不出现则罢，既然巴巴赶来领死，我便送你们七人团聚！");
		PlayerPerform("pause",3);
		PlayerPerform("say", "咄！若是不死，七人又如何只剩下你三人？");
		PlayerPerform("pause",9);
		PlayerPerform("say", "师闻墨！还有项西楚丘长春！你们……！");
		PlayerPerform("pause",3);
		PlayerPerform("block", 1);
		
		Perform(c59, "faceto", player);
		Perform(c60, "faceto", player);
		Perform(c61, "faceto", player);
		qzx=43;
		tdy=now+20;
	}
	if(qzx==43&&now>tdy)
	{
		ChangeBehavior(c83,"follow", player);
		ChangeBehavior(c56,"follow", c61);
		ChangeBehavior(c55,"follow", c60);
		
		ChangeBehavior(c59,"follow", player);
		ChangeBehavior(c60,"follow", c55);
		ChangeBehavior(c61,"follow", c56);
		qzx=44;
	}
	if(qzx==44&&GetHP(c61)<=0)
	{
		ChangeBehavior(c56,"follow", player);
		qzx=45;
	}
	if(qzx==45&&GetHP(c60)<=0)
	{
		ChangeBehavior(c55,"follow", player);
		qzx=46;
	}
	if(qzx==46&&GetHP(c59)<=0)
	{
		Say(c59, "岳飞！你好歹叫我一声师兄！你竟如此…………呃啊！");
		qzx=47;
		tdy=now+2;
	}
	if(qzx==47&&GetHP(c59)<=0&&GetHP(c60)<=0&&GetHP(c61)<=0&&now>tdy)
	{
		
		Perform(c55,"say", "怎料如今却倒行逆施，甘为柴桂走狗。");
		Perform(c55,"pause",3);
		Perform(c55,"say", "项西楚，当年一杆霸王枪震慑群雄，原是一条响当当的汉子……");
		Perform(c55,"pause",3);
		
		Perform(c56,"say", "金人？！原来做了叛贼！如此死了倒也不冤！");
		Perform(c56,"pause",15);
		Perform(c56,"say", "这三个贼厮鸟当真厉害！大哥，我看那人的枪法不在你之下。");
		
		PlayerPerform("block", 0);
		PlayerPerform("say", "诸位兄弟，咱们继续前行。");
		PlayerPerform("pause",3);
		PlayerPerform("say", "这些过节日后详说，眼下先去同宗泽留守汇合才是。");
		PlayerPerform("pause",6);
		PlayerPerform("say", "他们背后实则是投靠了金人！");
		PlayerPerform("pause",3);
		PlayerPerform("say", "杨兄只知其一，项西楚丘长春诸人武艺超群，并非小梁王所能驱策。");
		PlayerPerform("pause",9);
		PlayerPerform("block", 1);
		qzx=48;
		tdy=now+18;
	}
	if(qzx==48&&now>tdy)
	{
		RemoveNPC(c59);
		RemoveNPC(c60);
		RemoveNPC(c61);

		RemoveNPC(c55);
		RemoveNPC(c56);
		RemoveNPC(c83);
		qzx=49;
	}
	if(qzx==49)
	{
		PlayerPerform("block", 0);
		PlayerPerform("say", "【关卡进度已保存】");
		PlayerPerform("pause", 1);
		PlayerPerform("say", "【关卡进度已保存】");
		PlayerPerform("block", 1);
		PlayerPerform("use",15);
		qzx=50;
		tdy=now+2;
		Save("Level\sa10.sav",3);
	}
	if(qzx==50&&now>tdy)
	{
		AddNPC("9-62");
		AddNPC("9-82");
		AddNPC("9-64");
		AddNPC("9-65");
		AddNPC("9-66");

		AddNPC("9-55-1");
		AddNPC("9-56-1");
		AddNPC("9-83-1");
		qzx=51;
		tdy=now+2;
	}
	if(qzx==51&&now>tdy)
	{
		if(c82>=0&&c55>=0)
		{
			ZMJAI_MoveLocate(-1094,-1339,48);
			qzx=52;
			tdy=now+2;
		}		
	}
	if(qzx==52&&now>tdy)
	{
		SetTarget(0, "waypoint", 290);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=500)
		{
			Perform(c62,"say", "如今这群反贼已成困兽，在疯狂反扑！");
		    Perform(c62,"guard",3);
			Perform(c62,"say", "岳大哥，粮仓已被我们摧毁……");
			
			PlayerPerform("say", "杨兄罗兄，一起诛灭这帮反贼！");
		    PlayerPerform("pause",6);
			PlayerPerform("say", "极好！恩师何在？");
		    PlayerPerform("pause",6);
			
			Perform(c82,"say", "宗老爷已率军直扑高文才营帐。");
		    Perform(c82,"guard",9);
			qzx=53;
			q2x1=1;
            q2x2=1;
            q2x3=1;
            q2x4=1;
            q2x5=1;
            q2x6=1;
            q2x7=1;
			tdy=now+15;
		}
	}
	if(qzx==53&&now>tdy)
	{
		Perform(c65,"say", "......俺打不过你......");
		Perform(c65,"guard",9);
		Perform(c65,"say", "哇呀~！是京中小校场上的两个直娘贼！");
		
		Perform(c56,"say", "黑炭头！待杀完了贼兵，是好汉便再来较量较量。");
		Perform(c56,"guard",6);
		
		PlayerPerform("say", "（擒贼先擒王，先解决【振威校尉】！）");
		PlayerPerform("pause",15);
		PlayerPerform("say", "牛兄弟休得无礼！");
		PlayerPerform("pause",3);
		qzx=54;
	}
	if(qzx==54)
	{
		qzx=55;
	}
	if(qzx==55&&GetHP(c66)<=0&&GetHP(c67)<=0&&GetHP(c68)<=0&&GetHP(c69)<=0&&GetHP(c70)<=0&&GetHP(c71)<=0&&GetHP(c72)<=0&&GetHP(c73)<=0)
	{
		ChangeBehavior(c83,"follow", player);
		ChangeBehavior(c55,"follow", player);
		ChangeBehavior(c56,"follow", player);
		ChangeBehavior(c62,"follow", player);
		ChangeBehavior(c82,"follow", player);
		ChangeBehavior(c64,"follow", player);
		ChangeBehavior(c65,"follow", player);
		PlayerPerform("block", 1);
		PlayerPerform("pause",1);
		PlayerPerform("block", 1);
		PlayerPerform("pause",1);
		PlayerPerform("block", 1);
		PlayerPerform("pause",1);
		PlayerPerform("block", 1);
		qzx=56;
		tdy=now+3;
	}
	if(qzx==56&&now>tdy)
	{
		ChangeBehavior(c83,"idle");
		ChangeBehavior(c55,"idle");
		ChangeBehavior(c56,"idle");
		ChangeBehavior(c62,"idle");
		ChangeBehavior(c82,"idle");
		ChangeBehavior(c64,"idle");
		ChangeBehavior(c65,"idle");
		qzx=57;
	}
	if(qzx==57)
	{
		Perform(c82,"say", "岳大哥……");
		Perform(c82,"pause",27);
		
		Perform(c65,"say", "这个自然不在话下。");
		Perform(c65, "faceto", player);
		Perform(c65,"pause",6);
		Perform(c65,"say", "杨兄弟、罗兄弟，俺老牛日前多有得罪，还望海涵！");
		Perform(c65,"pause",3);
		Perform(c65,"say", "俺老牛生平最敬重英雄好汉……");
		Perform(c65, "faceto", c55);
		Perform(c65,"pause",3);
		
		PlayerPerform("block", 0);
		PlayerPerform("say", "【注意！加血奖励结束！】");
		PlayerPerform("pause",1);
		PlayerPerform("say", "【注意！加血奖励结束！】");
		PlayerPerform("pause",2);
		PlayerPerform("say", "诸位兄弟，事不宜迟，大家开始行动！");
		PlayerPerform("pause",3);
		PlayerPerform("say", "我找到恩师，剿灭了高文才后，便来跟你汇合。");
		PlayerPerform("pause",3);
		PlayerPerform("say", "知言，你多有劳累，便先随汤兄弟撤出外围。");
		PlayerPerform("pause",6);
		PlayerPerform("say", "届时三路齐攻，一举铲除八公遗迹所有叛贼！");
		PlayerPerform("pause",3);
		PlayerPerform("say", "愚兄前往高文才营帐与恩师汇合。");
		PlayerPerform("pause",3);
		PlayerPerform("say", "诸位兄弟，眼下你们兵分东西两路，将余党全部诛灭。");
		PlayerPerform("pause",6);
		PlayerPerform("say", "待剿灭了高文才叛党，牛兄可好好陪两位兄弟吃上几碗酒赔不是。");
		PlayerPerform("pause",9);
		PlayerPerform("say", "杨兄，罗兄，这些俱是我的好兄弟，你们多亲近亲近。");
		PlayerPerform("block", 1);
		
		Perform(c83, "faceto", player);
		Perform(c55, "faceto", player);
		Perform(c56, "faceto", player);
		Perform(c62, "faceto", player);
		Perform(c82, "faceto", player);
		Perform(c64, "faceto", player);
		Perform(c65, "faceto", player);
		qzx=58;
		qjx=9;
		tdy=now+30;
	}
	if(qzx==58&&now>tdy)
	{
		RemoveNPC(c83);
		RemoveNPC(c55);
		RemoveNPC(c56);
		RemoveNPC(c62);
		RemoveNPC(c82);
		RemoveNPC(c64);
		RemoveNPC(c65);
		RemoveNPC(c66);
		RemoveNPC(c67);
		RemoveNPC(c68);
		RemoveNPC(c69);
		RemoveNPC(c70);
		RemoveNPC(c71);
		RemoveNPC(c72);
		RemoveNPC(c73);
		qzx=99;
		q=42;
		t=now+2;
		mc1=1;
		mc8=9;
	}	
	
		
	if(qjx==1&&now>tjx)
	{
		PlayerPerform("use", 16);
		PlayerPerform("use", 16);
		qjx=1;
		tjx=now+60;
	}
	if(qay==1&&GetHP(c84)<=0)
	{
		Perform(c88,"guard",30);
		Perform(c87,"guard",30);
		Perform(c86,"guard",30);
		Perform(c85,"guard",30);
		
		PlayerPerform("say", "我岳飞竟连一名女子都救不了！");
		qay=2;
		qjx=9;
		qayx1=9;
		qayx2=9;
		qayx3=9;
		qayx4=9;
		tay=now+3;
	}
	if(qay==2&&now>tay)
	{
		RemoveNPC(c84);
		RemoveNPC(c85);
		RemoveNPC(c86);
		RemoveNPC(c87);
		RemoveNPC(c88);
		qay=9;
	}
	if(qayx1==1&&now>tx)
	{
		AddNPC("9-85");
		qayx1=2;
	}
	if(qayx1==2&&c85>=0)
	{
		qayx1=3;
	}
	if(qayx1==3&&GetHP(c85)<=0)
	{
		tx=now+1;
		qayx1=4;
	}
	if(qayx1==4&&now>tx)
	{
		RemoveNPC(c85);
		qayx1=1;
        tx=now+1;		
	}
	if(qayx2==1&&now>tx)
	{
		AddNPC("9-86");
		qayx2=2;
	}
	if(qayx2==2&&c86>=0)
	{
		qayx2=3;
	}
	if(qayx2==3&&GetHP(c86)<=0)
	{
		tx=now+1;
		qayx2=4;
	}
	if(qayx2==4&&now>tx)
	{
		RemoveNPC(c86);
		qayx2=1;
        tx=now+1;		
	}
	if(qayx3==1&&now>tx)
	{
		AddNPC("9-87");
		qayx3=2;
	}
	if(qayx3==2&&c87>=0)
	{
		qayx3=3;
	}
	if(qayx3==3&&GetHP(c87)<=0)
	{
		tx=now+1;
		qayx3=4;
	}
	if(qayx3==4&&now>tx)
	{
		RemoveNPC(c87);
		qayx3=1;
        tx=now+1;		
	}
	if(qayx4==1&&now>tx)
	{
		AddNPC("9-88");
		qayx4=2;
	}
	if(qayx4==2&&c88>=0)
	{
		qayx4=3;
	}
	if(qayx4==3&&GetHP(c88)<=0)
	{
		tx=now+1;
		qayx4=4;
	}
	if(qayx4==4&&now>tx)
	{
		RemoveNPC(c88);
		qayx4=1;
        tx=now+1;		
	}
	if(qth==1)
	{
		SetTarget(0, "char", player);
		SetTarget(2, "waypoint", 114);
		if (Distance(0, 2) <=50)
		{
			Perform(c37,"say", "岳大哥，汤怀随你并肩作战！");
			
			PlayerPerform("block", 0);
			PlayerPerform("say", "【确定请【攻击一次】。】");
			PlayerPerform("pause", 1);
			PlayerPerform("say", "【确定选择【汤怀】吗？】");
			PlayerPerform("pause", 3);
		    PlayerPerform("block", 1);
			qth=2;
		}
	}
	if(qth==2&&GetHP(c37)<10000)
	{
		PlayerPerform("use", 15);
		qth=3;
		qzx=99;
		qwg=99;
		qng=99;
		qlzy=99;
		mc1=9;
		mc7=1;
		Save("Level\sa10-4.sav",1);
		Save("Level\sa10-2.sav",0);
		Save("Level\sa10-3.sav",0);
		Save("Level\sa10-1.sav",0);
		Save("Level\sa10-5.sav",0);
	}
	if(qth==3)
	{
		Perform(c41,"say", "贤契，此处敌军虽已被杀退，但难免还有增援，需万分当心。");
	    Perform(c41,"pause",12);
		
		Perform(c38,"say", "既然岳大哥如此说了，兄弟们自当领命。");
	    Perform(c38,"pause",9);
		
		
		PlayerPerform("say", "恩师不必担忧，门生省得。");
		PlayerPerform("pause", 9);
		PlayerPerform("say", "因此烦请诸位先去，我与汤怀兄弟稍后便赶来。");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "各位随恩师率军诛杀叛贼高文才才是首要。");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "诸位兄弟，捣毁兵器库乃小事一桩……");
		
		Perform(c36, "faceto", player);
		Perform(c37, "faceto", player);
		Perform(c38, "faceto", player);
		Perform(c39, "faceto", player);
		Perform(c40, "faceto", player);
		Perform(c41, "faceto", player);
		qth=4;
		tdy=now+12;
	}
	if(qth==4&&now>tdy)
	{
		RemoveNPC(c36);
		RemoveNPC(c37);
		RemoveNPC(c38);
		RemoveNPC(c39);
		RemoveNPC(c40);
		RemoveNPC(c41);
		qth=5;
		tdy=now+1;
	}
	if(qth==5&&now>tdy)
	{
		AddNPC("9-74");
		AddNPC("9-75");
		qth=6;
		tdy=now+1;
	}
	if(qth==6&&c74>=0&&c75>=0&&now>tdy)
	{
		Perform(c74,"say", "岳大哥你快来看，这是个什么玩意儿？");
		Perform(c74, "faceto", c75);
		qth=7;
	}
	if(qth==7)
	{
		SetTarget(0, "char", player);
		SetTarget(1, "waypoint", 150);
		if (Distance(0, 1) <=150)
		{
			Perform(c74,"say", "它在说什么？");
	        Perform(c74,"pause",3);
			
			Perform(c75,"say", "咕噜~*&%@竹爷！");
			
			PlayerPerform("say", "当真是大千世界无奇不有。");
		    PlayerPerform("pause", 6);
			PlayerPerform("block", 1);
			qth=8;
			tdy=now+5;
		}
	}
	if(qth==8&&now>tdy)
	{
		Perform(c74,"say", "岳大哥！这东西要跑！");
	    Perform(c74,"pause",3);
		
		Perform(c75,"use",45);
		Perform(c75,"say", "咕咕！！%￥%#竹爷！！");
		
		PlayerPerform("block", 0);
		PlayerPerform("say", "汤兄稍等，我追去看看。");
		PlayerPerform("pause", 5);
		PlayerPerform("block", 1);
		qth=9;
		tdy=now+4;
	}
	if(qth==9&&now>tdy)
	{
		SetTarget(0, "waypoint", 366);
		ChangeBehavior(c75, "attacktarget", 0);
		qth=10;
	}
	if(qth==10)
	{
		PlayerPerform("say", "【计时开始！】");
		PlayerPerform("pause", 2);
		PlayerPerform("say", "【加气奖励：每20秒加25%怒气！】");
		PlayerPerform("pause", 2);
		PlayerPerform("say", "【请在【一分钟内找到竹爷】，可获得【加气奖励】。】");
		qth=11;
		qjq1=1;
		qjq2=1;
		tjq1=now+30;
	}
	if(qth==11&&c75<=0)
	{
		SetTarget(0, "char", player);
		SetTarget(1, "waypoint", 150);
		if (Distance(0, 1) <=200)
		{
			PlayerPerform("say", "眼下趁敌军增援未到，咱们得尽快找出兵器库入口。");
	   	    PlayerPerform("pause", 3);
		    PlayerPerform("say", "汤兄，据张兄言道，兵器库乃是藏于地下。");
			Perform(c74, "faceto", player);
			qth=12;
			tdy=now+3;
		}	
	}
	if(qth==12&&now>tdy)
	{
		ChangeBehavior(c74,"follow", player);
		qth=13;
		tdy=now+2;
	}
	if(qth==13&&now>tdy)
	{
		AddNPC("9-55");
		AddNPC("9-56");
		AddNPC("9-76");
		AddNPC("9-77");
		AddNPC("9-78");
		AddNPC("9-79");
		AddNPC("9-80");
		AddNPC("9-81");
		qth=14;
	}
	if(qth==14&&c55>=0&&c56>=0&&c76>=0&&c77>=0&&c78>=0&&c79>=0&&c80>=0&&c81>=0)
	{
		ChangeBehavior(c55,"follow", c76);
		ChangeBehavior(c56,"follow", c76);
		qth=15;
		tdy=now+2;
	}
	if(qth==15&&now>tdy)
	{
		PlayerPerform("say", "从那边传来，似乎有人在拼杀。汤兄，加快脚步！");
	   	PlayerPerform("pause", 3);
			
		Perform(c74,"say", "岳大哥你听，什么声音！");
		qth=16;
	}
	if(qth==16)
	{
		SetTarget(0, "char", player);
		SetTarget(1, "waypoint", 415);
		if (Distance(0, 1) <=700)
		{
			PlayerPerform("say", "是他们！汤兄，先杀敌！");
			qth=17;
		}
	}
	if(qth==17&&GetHP(c76)<=0&&GetHP(c77)<=0&&GetHP(c78)<=0&&GetHP(c79)<=0&&GetHP(c80)<=0&&GetHP(c81)<=0)
	{
		ChangeBehavior(c55,"idle");
		ChangeBehavior(c56,"idle");
		ChangeBehavior(c74,"idle");
		qth=18;
		tdy=now+2;
	}
	if(qth==18&&now>tdy)
	{
		Perform(c55,"say", "这群反贼狡猾至极，将兵器库藏于地下，【佛塔】便是其入口。");
		Perform(c55,"pause",3);
		Perform(c55,"say", "岳兄，除恶务尽，眼下须将最后一处兵器库摧毁了。");
		Perform(c55,"pause",3);
		Perform(c55,"say", "杨再兴、罗延庆万死不辞！");
		Perform(c55,"pause",12);
		Perform(c55,"say", "岳兄屈尊，我二人受宠若惊！");
		Perform(c55,"pause",9);
		Perform(c55,"say", "岳兄何须如此！岂不折煞我等？");
		Perform(c55,"pause",6);
		Perform(c55,"say", "是以我二人才与之缠斗。");
		Perform(c55,"pause",3);
		Perform(c55,"say", "不料还剩下最后一处时，不知从何处冒出了一队贼兵，上来就动手。");
		Perform(c55,"pause",3);
		Perform(c55,"say", "于是我二人一不做二不休，索性将他兵器库的入口捣毁。");
		Perform(c55,"pause",3);
		Perform(c55,"say", "查到了此处，得知曾是那柴桂的兵器库。");
		Perform(c55,"pause",3);
		Perform(c55,"say", "幸喜这贼子死于岳兄枪下，连日来我二人明察暗访，");
		Perform(c55,"pause",3);
		Perform(c55,"say", "我与罗兄一合计，断不能让他得逞。");
		Perform(c55,"pause",3);
		Perform(c55,"say", "那日我二人离京之后，道上听到传言，小梁王柴桂意欲谋反。");
		Perform(c55,"pause",16);
		Perform(c55,"say", "哪个不赞一声岳兄乃真英雄、好汉子！");
		Perform(c55,"pause",3);
		Perform(c55,"say", "岳兄别来无恙。京中校场上岳兄枪挑小梁王，一战成名天下皆知。");
		Perform(c55,"pause",9);
		
		Perform(c56,"say", "你......你是岳飞！");
		Perform(c56,"pause",3);
		
		Perform(c74,"say", "杨兄罗兄，汤怀有礼。");
		Perform(c74,"pause",21);
		
		PlayerPerform("block", 0);
		PlayerPerform("say", "如此只需将【佛塔摧毁】，掩埋入口便是。");
		PlayerPerform("pause", 12);
		PlayerPerform("say", "繁文缛节却也不必了，两位兄弟，可愿随岳某一同锄奸？");
		PlayerPerform("pause", 6);
		PlayerPerform("say", "今日复得相见，岳某欲与两位义结金兰，不知可高攀否？");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "那日京城之中匆匆一晤，岳某时常念起两位兄台英雄侠义……");
		PlayerPerform("pause", 6);
		PlayerPerform("say", "两位兄台为国除奸侠肝义胆，请受岳某一拜！");
		PlayerPerform("pause", 24);
		PlayerPerform("say", "二位何故到此，又怎会与叛军缠斗？");
		PlayerPerform("pause", 6);
		PlayerPerform("say", "都是顶天立地的英雄好汉。");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "杨兄谬赞！汤兄，这两位是“杨再兴”、“罗延庆”。");
		PlayerPerform("pause", 9);
		PlayerPerform("say", "不才正是在下。");
		PlayerPerform("pause", 6);
		PlayerPerform("say", "杨兄，罗兄，别来无恙？");
		PlayerPerform("block", 1);
		
		Perform(c74, "faceto", player);
		Perform(c55, "faceto", player);
		Perform(c56, "faceto", player);
		qth=19;
		tdy=now+68;
	}
	if(qth==19&&now>tdy)
	{
		RemoveNPC(c76);
		RemoveNPC(c77);
		RemoveNPC(c78);
		RemoveNPC(c79);
		RemoveNPC(c80);
		RemoveNPC(c81);
		qth=20;
		tdy=now+1;
	}
	if(qth==20&&now>tdy)
	{
		AddNPC("9-44");
		qth=21;
	}
	if(qth==21&&c44>=0)
	{
		Perform(c44,"use",46);
		ChangeBehavior(c74,"follow", player);
		ChangeBehavior(c56,"follow", player);
		ChangeBehavior(c55,"follow", player);
		qth=22;
	}
	if(qth==22)
	{
		PlayerPerform("say", "【提示：找到并摧毁佛塔】。");
		PlayerPerform("pause", 1);
		PlayerPerform("say", "【提示：找到并摧毁佛塔】。");
		qth=23;
	}
	if(qth==23)
	{
		SetTarget(0, "char", player);
		SetTarget(1, "waypoint", 128);
		if (Distance(0, 1) <=100)
		{
			qth=24;
		}
	}
	if(qth==24)
	{
		PlayerPerform("say", "【提示：攻击佛塔】。");
		PlayerPerform("say", "【提示：攻击佛塔】。");
		qth=25;
	}
	if(qth==25&&GetHP(c44)<=13000)
	{
		AddNPC("9-48");
		qth=26;
	}
	if(qth==26&&c48>=0)
	{
		Perform(c48,"say", "给我杀！");
		
		PlayerPerform("say", "众兄弟，御敌！");
		PlayerPerform("pause", 3);
		qth=27;
		q1x1=1;
        q1x2=1;
        q1x3=1;
        q1x4=1;
        q1x5=1;
        q1x6=1;
		qyhxw=1;
	}
	if(qth==27)
	{
		qth=28;
		tdy=now+60;
	}
	if(qth==28&&now>tdy)
	{
		PlayerPerform("say", "【注意！优先攻击佛塔】");
		PlayerPerform("pause", 1);
		PlayerPerform("say", "【注意！优先攻击佛塔】");
		PlayerPerform("pause", 1);
		PlayerPerform("say", "【注意！优先攻击佛塔】");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "（我须尽快【摧毁佛塔】，以免夜长梦多。）");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "（贼兵源源不绝，也不知恩师那边情况如何……）");
		qth=29;
	}
	if(qth==29&&GetHP(c44)<=0)
	{
		PlayerPerform("say", "（总算毁了兵器库！尽快杀出重围。）");
		qth=30;
		q1x1=9;
        q1x2=9;
        q1x3=9;
        q1x4=9;
        q1x5=9;
        q1x6=9;
		qyhxw=9;
		tdy=now+2;
	}
	if(qth==30&&now>tdy)
	{
		Perform(c48,"guard",10);
		Perform(c48,"say", "塔在人在，塔毁人亡！呃啊~！");
		qth=31;
		tdy=now+2;
	}
	if(qth==31&&now>tdy)
	{
		Perform(c55,"say", "好手段！擒贼先擒王。兄弟，杀呀！");
		Perform(c55,"pause",1);
		Perform(c48,"use",35);
		qth=32;
	}
	if(qth==32&&GetHP(c49)<=0&&GetHP(c50)<=0&&GetHP(c51)<=0&&GetHP(c52)<=0&&GetHP(c53)<=0&&GetHP(c54)<=0)
	{
		Perform(c56,"say", "好歹是杀完了！");
		Perform(c56,"pause",1);
		qth=33;
		tdy=now+2;
    }
	if(qth==33&&now>tdy)
	{
		RemoveNPC(c44);
		RemoveNPC(c48);
		RemoveNPC(c49);
		RemoveNPC(c50);
		RemoveNPC(c51);
		RemoveNPC(c52);
		RemoveNPC(c53);
		RemoveNPC(c54);
		
		Perform(c56,"use",15);
		Perform(c55,"use",15);
		Perform(c74,"use",15);
		PlayerPerform("use", 15);
		qth=34;
	}
	if(qth==34)
	{
		PlayerPerform("say", "众兄弟，继续冲！");
		qth=35;
	}
	if(qth==35)
	{
		ChangeBehavior(c74,"follow", player);
		ChangeBehavior(c55,"follow", player);
		ChangeBehavior(c56,"follow", player);
		qth=36;
	}
	if(qth==36)
	{
		SetTarget(0, "waypoint", 177);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=250)
		{
		    AddNPC("9-57");
		    qth=37;
		}
	} 
	if(qth==37&&c57>=0)
	{
		Perform(c57,"use",45);
		Perform(c57,"say", "岳飞！有胆子你便跟来！");
		Perform(c57,"pause",1);
		Perform(c57, "faceto", player);
		
		PlayerPerform("block", 1);
		qth=38;
		tdy=now+2;
	}
	if(qth==38&&now>tdy)
	{
		SetTarget(0, "waypoint", 172);
		ChangeBehavior(c57, "attacktarget", 0);
		qth=39;
	}
	
	if(qth==39)
	{
		Perform(c56,"say", "好狗贼！给我站住！");
		
		PlayerPerform("say", "罗兄且慢，当心伏兵！");
		PlayerPerform("pause", 3);
		PlayerPerform("block", 1);
		qth=40;
		tdy=now+3;
	}
	if(qth==40&&now>tdy)
	{
		AddNPC("9-58");
		qth=41;
	}
	if(qth==41&&c58>=0)
	{
		PlayerPerform("block", 0);
		PlayerPerform("say", "【注意！与【传令兵】见面后，博渤伯将离场。】");
		PlayerPerform("pause",2);
		PlayerPerform("say", "【提示：找到“博渤伯”，可获得【永久防御加成】。】");
		PlayerPerform("pause",1);
		PlayerPerform("say", "【提示：找到“博渤伯”，可获得【永久防御加成】。】");
		PlayerPerform("pause",1);
		PlayerPerform("say", "【提示：隐藏NPC“博渤伯”出现！】");
		PlayerPerform("pause",1);
		PlayerPerform("say", "【提示：隐藏NPC“博渤伯”出现！】");
		PlayerPerform("pause",2);
		PlayerPerform("say", "【主线：追踪传令兵。】");
		PlayerPerform("pause",2);
		PlayerPerform("block", 1);
		qth=42;
		qb=1;
	}
	if(qth==42)
	{
		SetTarget(0, "waypoint", 172);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=150)
		{
			Perform(c57,"say", "岳飞，此处便是你的墓地！");
		    Perform(c57,"pause",1);
		
			Perform(c58,"say", "我是博渤伯，伯伯去也~！");
			
			Perform(c74,"guard",28);
			Perform(c55,"guard",28);
			Perform(c56,"guard",28);
			PlayerPerform("block", 1);
			qb=9;
			qth=43;
			tdy=now+2;
		}
	}
	if(qth==43&&now>tdy)
	{
		RemoveNPC(c57);
		RemoveNPC(c58);
		qth=45;
		tdy=now+1;
	}
	if(qth==45&&now>tdy)
	{
		AddNPC("9-59");
		AddNPC("9-60");
		AddNPC("9-61");
		qth=46;
	}
	if(qth==46&&c59>=0&&c60>=0&&c61>=0)
	{
		ChangeBehavior(c59, "idle");
		ChangeBehavior(c60, "idle");
		ChangeBehavior(c61, "idle");
		qth=47;
	}
	if(qth==47)
	{
		Perform(c60,"say", "你怕是不晓得，我【七曜】乃不死之身！");
		Perform(c60,"pause",3);
		Perform(c60,"say", "小子，莫非你真以为能杀得了我们？哈哈哈哈~！");
		Perform(c60,"pause",6);
		
		Perform(c59,"say", "胡吹大气！此地便是你葬身之所！");
		Perform(c59,"pause",18);
		Perform(c59,"say", "岳飞！咱们又见面了！");
		
		PlayerPerform("block", 0);
		PlayerPerform("say", "今日我便替太师父清理门户！");
		PlayerPerform("pause",3);
		PlayerPerform("say", "师闻墨！我那两位师叔被你害得身败名裂……");
		PlayerPerform("pause",6);
		PlayerPerform("say", "你们不出现则罢，既然巴巴赶来领死，我便送你们七人团聚！");
		PlayerPerform("pause",3);
		PlayerPerform("say", "咄！若是不死，七人又如何只剩下你三人？");
		PlayerPerform("pause",9);
		PlayerPerform("say", "师闻墨！还有项西楚丘长春！你们……！");
		PlayerPerform("pause",3);
		PlayerPerform("block", 1);
		
		Perform(c59, "faceto", player);
		Perform(c60, "faceto", player);
		Perform(c61, "faceto", player);
		qth=48;
		tdy=now+20;
	}
	if(qth==48&&now>tdy)
	{
		ChangeBehavior(c74,"follow", player);
		ChangeBehavior(c56,"follow", c61);
		ChangeBehavior(c55,"follow", c60);
		
		ChangeBehavior(c59,"follow", player);
		ChangeBehavior(c60,"follow", c55);
		ChangeBehavior(c61,"follow", c56);
		qth=49;
	}
	if(qth==49&&GetHP(c61)<=0)
	{
		ChangeBehavior(c56,"follow", player);
		qth=50;
	}
	if(qth==50&&GetHP(c60)<=0)
	{
		ChangeBehavior(c55,"follow", player);
		qth=51;
	}
	if(qth==51&&GetHP(c59)<=0)
	{
		Say(c59, "岳飞！你好歹叫我一声师兄！你竟如此…………呃啊！");
		qth=52;
		tdy=now+2;
	}
	if(qth==52&&GetHP(c59)<=0&&GetHP(c60)<=0&&GetHP(c61)<=0&&now>tdy)
	{
		
		Perform(c55,"say", "怎料如今却倒行逆施，甘为柴桂走狗。");
		Perform(c55,"pause",3);
		Perform(c55,"say", "项西楚，当年一杆霸王枪震慑群雄，原是一条响当当的汉子……");
		Perform(c55,"pause",3);
		
		Perform(c56,"say", "金人？！原来做了叛贼！如此死了倒也不冤！");
		Perform(c56,"pause",15);
		Perform(c56,"say", "这三个贼厮鸟当真厉害！大哥，我看那人的枪法不在你之下。");
		
		PlayerPerform("block", 0);
		PlayerPerform("say", "诸位兄弟，咱们继续前行。");
		PlayerPerform("pause",3);
		PlayerPerform("say", "这些过节日后详说，眼下先去同宗泽留守汇合才是。");
		PlayerPerform("pause",6);
		PlayerPerform("say", "他们背后实则是投靠了金人！");
		PlayerPerform("pause",3);
		PlayerPerform("say", "杨兄只知其一，项西楚丘长春诸人武艺超群，并非小梁王所能驱策。");
		PlayerPerform("pause",9);
		PlayerPerform("block", 1);
		qth=53;
		tdy=now+18;
	}
	if(qth==53&&now>tdy)
	{
		RemoveNPC(c59);
		RemoveNPC(c60);
		RemoveNPC(c61);
		RemoveNPC(c55);
		RemoveNPC(c56);
		RemoveNPC(c74);
		qth=54;
	}
	if(qth==54)
	{
		PlayerPerform("block", 0);
		PlayerPerform("say", "【关卡进度已保存】");
		PlayerPerform("pause", 1);
		PlayerPerform("say", "【关卡进度已保存】");
		PlayerPerform("block", 1);
		PlayerPerform("use",15);
		qth=56;
		tdy=now+2;
		Save("Level\sa10.sav",3);
	}
	if(qth==56&&now>tdy)
	{
		AddNPC("9-82");
		AddNPC("9-63");
		AddNPC("9-64");
		AddNPC("9-65");
		AddNPC("9-66");

		AddNPC("9-55-1");
		AddNPC("9-56-1");
		AddNPC("9-74-1");
		qth=57;
		tdy=now+2;
	}
	if(qth==57&&now>tdy)
	{
		if(c82>=0&&c55>=0)
		{
			ZMJAI_MoveLocate(-1094,-1339,48);
			qth=58;
			tdy=now+2;
		}		
	}
	if(qth==58&&now>tdy)
	{
		SetTarget(0, "waypoint", 290);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=500)
		{
			ChangeBehavior(c65,"follow", player);
			Perform(c63,"say", "如今这群反贼已成困兽，在疯狂反扑！");
		    Perform(c63,"guard",3);
			Perform(c63,"say", "岳大哥，粮仓已被我们摧毁……");
			
			PlayerPerform("say", "杨兄罗兄，一起诛灭这帮反贼！");
		    PlayerPerform("pause",6);
			PlayerPerform("say", "极好！恩师何在？");
		    PlayerPerform("pause",6);
			
			Perform(c82,"say", "宗老爷已率军直扑高文才营帐。");
		    Perform(c82,"guard",9);
			qth=59;
			q2x1=1;
            q2x2=1;
            q2x3=1;
            q2x4=1;
            q2x5=1;
            q2x6=1;
            q2x7=1;
			tdy=now+15;
		}
	}
	if(qth==59&&now>tdy)
	{
		Perform(c65,"say", "......俺打不过你......");
		Perform(c65,"guard",9);
		Perform(c65,"say", "哇呀~！是京中小校场上的两个直娘贼！");
		
		Perform(c56,"say", "黑炭头！待杀完了贼兵，是好汉便再来较量较量。");
		Perform(c56,"guard",6);
		
		PlayerPerform("say", "（擒贼先擒王，先解决【振威校尉】！）");
		PlayerPerform("pause",15);
		PlayerPerform("say", "牛兄弟休得无礼！");
		PlayerPerform("pause",3);
		qth=60;
	}
	if(qth==60)
	{
		
		qth=61;
	}
	if(qth==61&&GetHP(c66)<=0&&GetHP(c67)<=0&&GetHP(c68)<=0&&GetHP(c69)<=0&&GetHP(c70)<=0&&GetHP(c71)<=0&&GetHP(c72)<=0&&GetHP(c73)<=0)
	{
		ChangeBehavior(c74,"follow", player);
		ChangeBehavior(c55,"follow", player);
		ChangeBehavior(c56,"follow", player);
		ChangeBehavior(c82,"follow", player);
		ChangeBehavior(c63,"follow", player);
		ChangeBehavior(c64,"follow", player);
		ChangeBehavior(c65,"follow", player);
		PlayerPerform("block", 1);
		PlayerPerform("pause",1);
		PlayerPerform("block", 1);
		PlayerPerform("pause",1);
		PlayerPerform("block", 1);
		PlayerPerform("pause",1);
		PlayerPerform("block", 1);
		qth=62;
		tdy=now+3;
	}
	if(qth==62&&now>tdy)
	{
		ChangeBehavior(c74,"idle");
		ChangeBehavior(c55,"idle");
		ChangeBehavior(c56,"idle");
		ChangeBehavior(c82,"idle");
		ChangeBehavior(c63,"idle");
		ChangeBehavior(c64,"idle");
		ChangeBehavior(c65,"idle");
		qth=63;
	}
	if(qth==63)
	{
		Perform(c82,"say", "岳大哥……");
		Perform(c82,"pause",27);
		
		Perform(c65,"say", "这个自然不在话下。");
		Perform(c65, "faceto", player);
		Perform(c65,"pause",6);
		Perform(c65,"say", "杨兄弟、罗兄弟，俺老牛日前多有得罪，还望海涵！");
		Perform(c65,"pause",3);
		Perform(c65,"say", "俺老牛生平最敬重英雄好汉……");
		Perform(c65, "faceto", c55);
		Perform(c65,"pause",3);
		
		PlayerPerform("block", 0);
		PlayerPerform("say", "诸位兄弟，事不宜迟，大家开始行动！");
		PlayerPerform("pause",3);
		PlayerPerform("say", "我找到恩师，剿灭了高文才后，便来跟你汇合。");
		PlayerPerform("pause",3);
		PlayerPerform("say", "知言，你多有劳累，便先随汤兄弟撤出外围。");
		PlayerPerform("pause",6);
		PlayerPerform("say", "届时三路齐攻，一举铲除八公遗迹所有叛贼！");
		PlayerPerform("pause",3);
		PlayerPerform("say", "愚兄前往高文才营帐与恩师汇合。");
		PlayerPerform("pause",3);
		PlayerPerform("say", "诸位兄弟，眼下你们兵分东西两路，将余党全部诛灭。");
		PlayerPerform("pause",6);
		PlayerPerform("say", "待剿灭了高文才叛党，牛兄可好好陪两位兄弟吃上几碗酒赔不是。");
		PlayerPerform("pause",9);
		PlayerPerform("say", "杨兄，罗兄，这些俱是我的好兄弟，你们多亲近亲近。");
		PlayerPerform("block", 1);
		
		Perform(c74, "faceto", player);
		Perform(c55, "faceto", player);
		Perform(c56, "faceto", player);
		Perform(c82, "faceto", player);
		Perform(c63, "faceto", player);
		Perform(c64, "faceto", player);
		Perform(c65, "faceto", player);
		qth=64;
		tdy=now+30;
	}
	if(qth==64&&now>tdy)
	{
		RemoveNPC(c74);
		RemoveNPC(c55);
		RemoveNPC(c56);
		RemoveNPC(c82);
		RemoveNPC(c63);
		RemoveNPC(c64);
		RemoveNPC(c65);
		RemoveNPC(c66);
		RemoveNPC(c67);
		RemoveNPC(c68);
		RemoveNPC(c69);
		RemoveNPC(c70);
		RemoveNPC(c71);
		RemoveNPC(c72);
		RemoveNPC(c73);
		qth=65;
		tdy=now+1;
	} 
	if(qth==65&&now>tdy)
	{
		PlayerPerform("say", "【注意！加气奖励结束。】");
		PlayerPerform("say", "【注意！加气奖励结束。】");
		qth=99;
		qjq3=9;
		q=42;
		mc1=1;
		mc7=9;
		t=now+2;
	}
	if(qjq2==1)
	{
		SetTarget(0, "char", player);
		SetTarget(1, "waypoint", 366);
		if (Distance(0, 1) <=80)
		{
			Perform(c75,"say", "咕噜咕噜~~饶~竹爷~~");
			Perform(c75, "faceto", player);
			PlayerPerform("block", 1);
			qjq2=2;
			tjq2=now+3;
		}
	}
	if(qjq2==2&&now>tjq2)
	{
		RemoveNPC(c75);
		qjq2=3;
	}
	if(qjq2==3)
	{
		PlayerPerform("block", 0);
		PlayerPerform("say", "【直到与大军汇合后，奖励结束。】");
		PlayerPerform("pause", 2);
		PlayerPerform("say", "【获得加气奖励：平均20秒增加25%怒气。】");
		PlayerPerform("block", 1);
		qjq1=9;
		qjq2=9;
		qjq3=1;
	}
	if(qjq3==1&&now>tjq3)
	{
		PlayerPerform("use", 28);
		qjq3=1;
		tjq3=now+20;
	}
	
	if(qjq1==1&&now>tjq1)
	{
		PlayerPerform("say", "【时间已过半！】");
		PlayerPerform("say", "【时间已过半！】");
		qjq1=2;
		tjq1=now+15;
	}
	if(qjq1==2&&now>tjq1)
	{
		PlayerPerform("say", "【时间还剩15秒！】");
		PlayerPerform("say", "【时间还剩15秒！】");
		qjq1=3;
		tjq1=now+15;
	}
	if(qjq1==3&&now>tjq1)
	{
		Perform(c75,"say", "咕噜噜~~%￥…没用竹爷~%@！");
	    Perform(c75,"pause",3);
		
		PlayerPerform("block", 0);
		PlayerPerform("pause", 3);
		PlayerPerform("say", "【时间已耗尽！】");
		PlayerPerform("block", 1);
		qjq1=4;
		qjq2=9;
		tjq1=now+3;
	}
	if(qjq1==4&&now>tjq1)
	{
		RemoveNPC(c75);
		qjq1=9;
	}
	if(qlzy==1)
	{
		SetTarget(0, "char", player);
		SetTarget(1, "waypoint", 113);
		if (Distance(0, 1) <=50)
		{
			Perform(c36,"say", "岳大哥，从今往后，你去往何处，知言……知言便去往何处！");
			
			PlayerPerform("block", 0);
			PlayerPerform("say", "【确定请【攻击一次】。】");
			PlayerPerform("pause", 1);
			PlayerPerform("say", "【确定选择【李知言】吗？】");
			PlayerPerform("pause", 3);
		    PlayerPerform("block", 1);
			qlzy=2;
		}
	}
	if(qlzy==2&&GetHP(c36)<10000)
	{
		PlayerPerform("use", 15);
		qth=99;
		qzx=99;
		qwg=99;
		qng=99;
		qlzy=3;
		mc1=9;
		mc6=1;
		Save("Level\sa10-5.sav",1);
		Save("Level\sa10-2.sav",0);
		Save("Level\sa10-3.sav",0);
		Save("Level\sa10-4.sav",0);
		Save("Level\sa10-1.sav",0);
	}
	if(qlzy==3)
	{
		Perform(c41,"say", "贤契，此处敌军虽已被杀退，但难免还有增援，需万分当心。");
	    Perform(c41,"pause",18);
		
		Perform(c37,"say", "既然岳大哥如此说了，兄弟们自当领命。");
	    Perform(c37,"pause",15);
		
		Perform(c40,"say", "“知言妹子”？岳大哥，这才半晌不见，称呼都改了？");
	    Perform(c40,"pause",9);
		
		PlayerPerform("say", "恩师不必担忧，门生省得。");
		PlayerPerform("pause", 9);
		PlayerPerform("say", "牛兄弟莫要取笑。");
		PlayerPerform("pause", 6);
		PlayerPerform("say", "因此烦请诸位先去，我与知言妹子稍后便赶来。");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "各位随恩师率军诛杀高文才叛贼才是首要。");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "诸位兄弟，捣毁兵器库乃小事一桩……");
		
		Perform(c36, "faceto", player);
		Perform(c37, "faceto", player);
		Perform(c38, "faceto", player);
		Perform(c39, "faceto", player);
		Perform(c40, "faceto", player);
		Perform(c41, "faceto", player);
		qlzy=4;
		tdy=now+18;
	}
	if(qlzy==4&&now>tdy)
	{
		RemoveNPC(c36);
		RemoveNPC(c37);
		RemoveNPC(c38);
		RemoveNPC(c39);
		RemoveNPC(c40);
		RemoveNPC(c41);
		qlzy=5;
		tdy=now+1;
	}
	if(qlzy==5&&now>tdy)
	{
		AddNPC("9-42");
		qlzy=6;
		tdy=now+1;
	}
	if(qlzy==6&&c42>=0&&now>tdy)
	{
		Perform(c42,"say", "那贼兵神色慌张，估计不是俗物，【你随我来】。");
	    Perform(c42,"pause",3);
		Perform(c42,"say", "岳大哥稍等，先前我被困于高塔之时，看见一名贼兵偷藏了些物事。");
	    Perform(c42,"pause",6);
		Perform(c42, "faceto", player);
		
		PlayerPerform("say", "眼下趁敌军增援未到，咱们得尽快找出兵器库入口。");
	   	PlayerPerform("pause", 3);
		PlayerPerform("say", "知言妹子，据张兄言道，兵器库乃是藏于地下。");
		qlzy=7;
		tdy=now+9;
	}
	if(qlzy==7&&now>tdy)
	{
		ChangeBehavior(c42,"patrol",122);
		qlzy=8;
	}
	if(qlzy==8)
	{
		SetTarget(0, "char", c42);
		SetTarget(1, "waypoint", 122);
		if (Distance(0, 1) <=30)
		{
		    PlayerPerform("block", 0);
		    PlayerPerform("say", "【提示：下到河沟遗迹中，取得宝物。】");
		    PlayerPerform("pause", 3);
		    PlayerPerform("block", 1);
		
		    Perform(c42,"say", "那东西就在【下方河沟遗迹之中】，岳大哥不妨去取来，或许大有裨益。");
		    Perform(c42, "faceto", player);
		    qlzy=9;
		}
	}
	if(qlzy==9)
	{
		SetTarget(0, "waypoint", 123);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=20)
		{
			PlayerPerform("say", "你我速去摧毁兵器库，当心贼兵增援。");
		    PlayerPerform("pause", 3);
			PlayerPerform("say", "此物果然不俗，妹子有心了。");
		    PlayerPerform("pause", 1);
			PlayerPerform("use", 39);
			qlzy=10;
		}
	}
	if(qlzy==10)
	{
		SetTarget(0, "waypoint", 122);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=100)
		{
			PlayerPerform("say", "【提示：调查倾斜的佛像】");
		    PlayerPerform("pause", 1);
			
			ChangeBehavior(c42,"patrol",126);
			Perform(c42,"pause",2);
			Perform(c42,"say", "岳大哥，我见那尊【倾斜的佛像】似乎有异，或可前去一查。");
		    Perform(c42, "faceto", player);
			qlzy=11;
		}
	}
	if(qlzy==11)
	{
		SetTarget(0, "waypoint", 124);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=100)
		{
			PlayerPerform("say", "这佛像也看不出有何异常之处。");
		    qlzy=12;
			tdy=now+3;
		}
	}
	if(qlzy==12&&now>tdy)
	{
		AddNPC("9-43");
		qlzy=13;
	}
	if(qlzy==13&&c43>=0)
	{
		PlayerPerform("say", "【提示：攻击佛头】");
		PlayerPerform("pause", 1);
		
		Perform(c42,"say", "岳大哥，上面！佛头！");
		qlzy=14;
	}
	if(qlzy==14&&GetHP(c43)<10000)
	{
		qlzy=15;
	}
	if(qlzy==15)
	{
		Perform(c42,"pause",3);
		Perform(c42,"say", "似乎是从【佛塔】那边传来的。");
		Perform(c42,"pause",6);
		Perform(c42,"say", "有声音！");
		
		PlayerPerform("say", "只要【摧毁佛塔】，将兵器库掩埋就行。");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "甚好！想必佛塔便是兵器库入口。");
		PlayerPerform("pause", 6);
		PlayerPerform("say", "应当是触发了机关。");
		PlayerPerform("pause", 3);
		PlayerPerform("block", 1);
		qlzy=16;
		tdy=now+10;
	}
	if(qlzy==16&&now>tdy)
	{
		AddNPC("9-45");
		qlzy=17;
	}
	if(qlzy==17)
	{
		RemoveNPC(c43);
		qlzy=18;
		tdy=now+1;
	}
	if(qlzy==18&&c45>=0&&now>tdy)
	{
		ChangeBehavior(c45,"idle");
		qlzy=19;
	}
	if(qlzy==19)
	{
		Perform(c45,"say", "岳飞！你枪挑小梁王，本事不小哇！");
		Perform(c45, "faceto", player);
		PlayerPerform("block", 1);
		qlzy=20;
		tdy=now+1;
	}
	if(qlzy==20&&now>tdy)
	{
		Perform(c45,"say", "哼哼，痴人说梦！");
		Perform(c45,"pause",6);
		
		Perform(c42,"say", "岳大哥你千万当心！");
		Perform(c42,"pause",3);
		
		PlayerPerform("say", "知言，你快去摧毁佛塔！我来拖住他！");
		PlayerPerform("block", 1);
		qlzy=21;
		tdy=now+6;
	}
	if(qlzy==21)
	{
		SetTarget(0, "waypoint", 128);
		ChangeBehavior(c42, "attacktarget", 0);
		qlzy=22;
	}
	if(qlzy==22&&now>tdy)
	{
		PlayerPerform("block", 0);
		ChangeBehavior(c45,"follow", player);
		qlzy=23;
	}
	if(qlzy==23)
	{
		SetTarget(0, "waypoint", 128);
		SetTarget(1, "char", c42);
		if (Distance(0, 1) <=80)
		{
			AddNPC("9-46");
			AddNPC("9-47");
			qlzy=24;
		}
	}
	if(qlzy==24&&c46>=0&&c47>=0)
	{
		Perform(c42,"say", "恶贼！看剑！");
		
		PlayerPerform("say", "（叛军增援已到，须得速战速决！）");
		PlayerPerform("pause", 4);
		qlzy=25;
	}
	if(qlzy==25&&GetHP(c46)<=0&&GetHP(c47)<=0)
	{
		ChangeBehavior(c42,"follow", player);
		qlzy=26;
	}
	if(qlzy==26&&GetHP(c46)<=0&&GetHP(c46)<=0&&GetHP(c45)<=0)
	{
		Perform(c42,"use",15);
		Perform(c42,"say", "我没事。");
		Perform(c42,"pause",3);
		
		PlayerPerform("block", 0);
		PlayerPerform("say", "咱们赶紧把【佛塔摧毁】，好去跟恩师汇合。");
		PlayerPerform("pause", 6);
		PlayerPerform("say", "知言，你可还好！");
		PlayerPerform("block", 1);
		qlzy=27;
		tdy=now+5;
	}
	if(qlzy==27&&now>tdy)
	{
		AddNPC("9-44");
		qlzy=28;
	}
	if(qlzy==28&&c44>=0&&now>tdy)
	{
		Perform(c44,"use",46);
		RemoveNPC(c45);
		RemoveNPC(c46);
		RemoveNPC(c47);
		qlzy=29;
	}
	if(qlzy==29&&GetHP(c44)<=13000)
	{
		AddNPC("9-48");
		qlzy=30;
	}
	if(qlzy==30&&c48>=0)
	{
		Perform(c48,"say", "给我杀！");
		
		PlayerPerform("say", "知言妹子，跟紧我！");
		PlayerPerform("pause", 3);
		qlzy=31;
		q1x1=1;
        q1x2=1;
        q1x3=1;
        q1x4=1;
        q1x5=1;
        q1x6=1;
		qyhxw=1;
		tdy=now+60;
	}
	if(qlzy==31&&now>tdy)
	{
		AddNPC("9-55");
		AddNPC("9-56");
		qlzy=32;
	}
	if(qlzy==32&&c55>=0&&c56>=0)
	{
		Perform(c55,"say", "传言他枪挑了小梁王，如此看来，与他敌对的定是小梁王的叛军！");
		Perform(c55,"pause",2);
		Perform(c55,"say", "果真是岳飞！");
		Perform(c55,"pause",6);
		Perform(c55,"say", "看着都是宋兵，不知闹什么玄虚。");
		Perform(c55,"pause",3);
		
		Perform(c56,"say", "那还看什么！咱们也冲下去助他杀敌！");
		Perform(c56,"pause",8);
		Perform(c56,"say", "大哥你快看！那人像是京中校场上的岳飞！");
		Perform(c56,"pause",6);
		Perform(c56,"say", "呀！大哥你瞧，这下面打得相当热闹。");
		qlzy=33;
		tdy=now+15;
	}
	if(qlzy==33&&now>tdy)
	{
		Perform(c42,"use",15);
		
		Perform(c56,"say", "贼子休得猖狂！湖广罗延庆来也！");
		Perform(c56,"pause",1);
		Perform(c55,"say", "岳飞！山后杨再兴来助你杀敌了！。");
		qlzy=34;
		tdy=now+3;
	}
	if(qlzy==34&&now>tdy)
	{
	    ChangeBehavior(c55,"follow", player);
		ChangeBehavior(c56,"follow", player);
		PlayerPerform("say", "两位兄台来得正好！先杀退了贼兵！");
		qlzy=35;
		tdy=now+30;
	}
	if(qlzy==35&&now>tdy)
	{
		PlayerPerform("say", "【注意！优先攻击佛塔】");
		PlayerPerform("pause", 1);
		PlayerPerform("say", "【注意！优先攻击佛塔】");
		PlayerPerform("pause", 1);
		PlayerPerform("say", "【注意！优先攻击佛塔】");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "（我须尽快【摧毁佛塔】，以免夜长梦多。）");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "（贼兵源源不绝，也不知恩师那边情况如何……）");
		qlzy=36;
	}
	if(qlzy==36&&GetHP(c44)<=0)
	{
		PlayerPerform("say", "（总算毁了兵器库！尽快杀出重围。）");
		qlzy=37;
		q1x1=9;
        q1x2=9;
        q1x3=9;
        q1x4=9;
        q1x5=9;
        q1x6=9;
		qyhxw=9;
		tdy=now+2;
	}
	if(qlzy==37&&now>tdy)
	{
		Perform(c48,"guard",10);
		Perform(c48,"say", "塔在人在，塔毁人亡！呃啊~！");
		qlzy=38;
		tdy=now+2;
	}
	if(qlzy==38&&now>tdy)
	{
		Perform(c55,"say", "好手段！擒贼先擒王。兄弟，杀呀！");
		Perform(c55,"pause",1);
		Perform(c48,"use",35);
		qlzy=39;
	}
	if(qlzy==39&&GetHP(c49)<=0&&GetHP(c50)<=0&&GetHP(c51)<=0&&GetHP(c52)<=0&&GetHP(c53)<=0&&GetHP(c54)<=0)
	{
		ChangeBehavior(c42,"idle");
		ChangeBehavior(c55,"idle");
		ChangeBehavior(c56,"idle");
		qlzy=40;
		tdy=now+2;
    }
    if(qlzy==40&&now>tdy)
	{
		Perform(c42, "faceto", player);
		Perform(c42,"pause",5);
		Perform(c42,"say", "杨公子、罗公子，小女子李知言问安。");
		Perform(c42, "faceto", c55);
		Perform(c42,"pause",21);
		
		Perform(c55,"say", "杨再兴、罗延庆万死不辞！");
		Perform(c55,"pause",6);
		Perform(c55,"say", "岳兄屈尊，我二人受宠若惊……");
		Perform(c55,"pause",12);
		Perform(c55,"say", "岳兄当真洪福齐天，前有一战扬威，后有红颜相伴，怎不令人羡慕？");
		Perform(c55, "faceto",player );
		Perform(c55,"pause",6);
		Perform(c55,"say", "岳兄，这位姑娘是？");
		Perform(c55, "faceto", c42);
		Perform(c55,"pause",6);
		Perform(c55,"say", "哪个不赞一声岳兄乃真英雄、好汉子？");
		Perform(c55,"pause",3);
		Perform(c55,"say", "京中校场上，岳兄枪挑小梁王，一战成名天下皆知，");
		Perform(c55,"pause",9);
		
		Perform(c56,"say", "托岳兄宏福，没在校场上死于岳兄枪下。");
		Perform(c56,"pause",3);
		
		PlayerPerform("say", "繁文缛节却也不必了，两位兄弟，眼下可愿随愚兄一同锄奸？");
		PlayerPerform("pause", 6);
		PlayerPerform("say", "今日复得相见，岳某欲与两位义结金兰，不知可高攀否？");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "那日京城之中匆匆一晤，岳某时常念起两位兄台英雄侠义……");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "杨兄再谬赞，岳某可就要飞上天了。");
		PlayerPerform("pause", 12);
		PlayerPerform("say", "着实过誉，岳某愧不敢当。");
		PlayerPerform("pause", 9);
		PlayerPerform("say", "罗兄说笑了。");
		PlayerPerform("pause", 6);
		PlayerPerform("say", "杨兄，罗兄，别来无恙？");
		PlayerPerform("block", 1);
		Perform(c42, "faceto", player);
		Perform(c55, "faceto", player);
		Perform(c56, "faceto", player);
		qlzy=41;
		tdy=now+38;
	}    
	if(qlzy==41&&now>tdy)
	{
		RemoveNPC(c44);
		RemoveNPC(c48);
		RemoveNPC(c49);
		RemoveNPC(c50);
		RemoveNPC(c51);
		RemoveNPC(c52);
		RemoveNPC(c53);
		RemoveNPC(c54);
		
		Perform(c56,"use",15);
		Perform(c55,"use",15);
		Perform(c42,"use",15);
		PlayerPerform("use", 15);
		qlzy=42;
	}
	if(qlzy==42)
	{
		PlayerPerform("block", 0);
		ChangeBehavior(c42,"follow", player);
		ChangeBehavior(c55,"follow", player);
		ChangeBehavior(c56,"follow", player);
		qlzy=43;
	}
    if(qlzy==43)
	{
		SetTarget(0, "waypoint", 177);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=250)
		{
		    AddNPC("9-57");
		    qlzy=44;
		}
	} 
	if(qlzy==44&&c57>=0)
	{
		Perform(c57,"use",45);
		Perform(c57,"say", "岳飞！有胆子你便跟来！");
		Perform(c57,"pause",1);
		Perform(c57, "faceto", player);
		
		PlayerPerform("block", 1);
		qlzy=45;
		tdy=now+2;
	}
	if(qlzy==45&&now>tdy)
	{
		SetTarget(0, "waypoint", 172);
		ChangeBehavior(c57, "attacktarget", 0);
		qlzy=46;
	}
	
	if(qlzy==46)
	{
		Perform(c56,"say", "好狗贼！给我站住！");
		
		PlayerPerform("say", "罗兄且慢，当心伏兵！");
		PlayerPerform("pause", 3);
		PlayerPerform("block", 1);
		qlzy=47;
		tdy=now+3;
	}
	if(qlzy==47&&now>tdy)
	{
		AddNPC("9-58");
		qlzy=48;
	}
	if(qlzy==48&&c58>=0)
	{
		PlayerPerform("block", 0);
		PlayerPerform("say", "【注意！与【传令兵】见面后，博渤伯将离场。】");
		PlayerPerform("pause",2);
		PlayerPerform("say", "【提示：找到“博渤伯”，可获得【永久防御加成】。】");
		PlayerPerform("pause",1);
		PlayerPerform("say", "【提示：找到“博渤伯”，可获得【永久防御加成】。】");
		PlayerPerform("pause",1);
		PlayerPerform("say", "【提示：隐藏NPC“博渤伯”出现！】");
		PlayerPerform("pause",1);
		PlayerPerform("say", "【提示：隐藏NPC“博渤伯”出现！】");
		PlayerPerform("pause",2);
		PlayerPerform("say", "【主线：追踪传令兵。】");
		PlayerPerform("pause",2);
		PlayerPerform("block", 1);
		qlzy=49;
		qb=1;
	}
	if(qlzy==49)
	{
		SetTarget(0, "waypoint", 172);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=150)
		{
			Perform(c57,"say", "岳飞，此处便是你的墓地！");
		    Perform(c57,"pause",1);
		
			Perform(c58,"say", "我是博渤伯，伯伯去也~！");
			
			Perform(c42,"guard",28);
			Perform(c55,"guard",28);
			Perform(c56,"guard",28);
			PlayerPerform("block", 1);
			qb=9;
			qlzy=50;
			tdy=now+2;
		}
	}
	if(qlzy==50&&now>tdy)
	{
		RemoveNPC(c57);
		RemoveNPC(c58);
		qlzy=51;
		tdy=now+1;
	}
	if(qlzy==51&&now>tdy)
	{
		AddNPC("9-59");
		AddNPC("9-60");
		AddNPC("9-61");
		qlzy=52;
	}
	if(qlzy==52&&c59>=0&&c60>=0&&c61>=0)
	{
		ChangeBehavior(c59, "idle");
		ChangeBehavior(c60, "idle");
		ChangeBehavior(c61, "idle");
		qlzy=53;
	}
	if(qlzy==53)
	{
		Perform(c60,"say", "你怕是不晓得，我【七曜】乃不死之身！");
		Perform(c60,"pause",3);
		Perform(c60,"say", "小子，莫非你真以为能杀得了我们？哈哈哈哈~！");
		Perform(c60,"pause",6);
		
		Perform(c59,"say", "胡吹大气！此地便是你葬身之所！");
		Perform(c59,"pause",18);
		Perform(c59,"say", "岳飞！咱们又见面了！");
		
		PlayerPerform("block", 0);
		PlayerPerform("say", "今日我便替太师父清理门户！");
		PlayerPerform("pause",3);
		PlayerPerform("say", "师闻墨！我那两位师叔被你害得身败名裂……");
		PlayerPerform("pause",6);
		PlayerPerform("say", "你们不出现则罢，既然巴巴赶来领死，我便送你们七人团聚！");
		PlayerPerform("pause",3);
		PlayerPerform("say", "咄！若是不死，七人又如何只剩下你三人？");
		PlayerPerform("pause",9);
		PlayerPerform("say", "师闻墨！还有项西楚丘长春！你们……！");
		PlayerPerform("pause",3);
		PlayerPerform("block", 1);
		
		Perform(c59, "faceto", player);
		Perform(c60, "faceto", player);
		Perform(c61, "faceto", player);
		qlzy=54;
		tdy=now+20;
	}
	if(qlzy==54&&now>tdy)
	{
		ChangeBehavior(c42,"follow", player);
		ChangeBehavior(c56,"follow", c61);
		ChangeBehavior(c55,"follow", c60);
		
		ChangeBehavior(c59,"follow", player);
		ChangeBehavior(c60,"follow", c55);
		ChangeBehavior(c61,"follow", c56);
		qlzy=55;
	}
	if(qlzy==55&&GetHP(c61)<=0)
	{
		ChangeBehavior(c56,"follow", player);
		qlzy=56;
	}
	if(qlzy==56&&GetHP(c60)<=0)
	{
		ChangeBehavior(c55,"follow", player);
		qlzy=57;
	}
	if(qlzy==57&&GetHP(c59)<=0)
	{
		Say(c59, "岳飞！你好歹叫我一声师兄！你竟如此…………呃啊！");
		qlzy=58;
		tdy=now+2;
	}
	if(qlzy==58&&GetHP(c59)<=0&&GetHP(c60)<=0&&GetHP(c61)<=0&&now>tdy)
	{
		
		Perform(c55,"say", "怎料如今却倒行逆施，甘为柴桂走狗。");
		Perform(c55,"pause",3);
		Perform(c55,"say", "项西楚，当年一杆霸王枪震慑群雄，原是一条响当当的汉子……");
		Perform(c55,"pause",3);
		
		Perform(c56,"say", "金人？！原来做了叛贼！如此死了倒也不冤！");
		Perform(c56,"pause",15);
		Perform(c56,"say", "这三个贼厮鸟当真厉害！大哥，我看那人的枪法不在你之下。");
		
		PlayerPerform("block", 0);
		PlayerPerform("say", "诸位兄弟，咱们继续前行。");
		PlayerPerform("pause",3);
		PlayerPerform("say", "这些过节日后详说，眼下先去同宗泽留守汇合才是。");
		PlayerPerform("pause",6);
		PlayerPerform("say", "他们背后实则是投靠了金人！");
		PlayerPerform("pause",3);
		PlayerPerform("say", "杨兄只知其一，项西楚丘长春诸人武艺超群，并非小梁王所能驱策。");
		PlayerPerform("pause",9);
		PlayerPerform("block", 1);
		qlzy=59;
		tdy=now+18;
	}
	if(qlzy==59&&now>tdy)
	{
		RemoveNPC(c59);
		RemoveNPC(c60);
		RemoveNPC(c61);

		RemoveNPC(c55);
		RemoveNPC(c56);
		RemoveNPC(c42);
		qlzy=60;
	}
	if(qlzy==60)
	{
		PlayerPerform("block", 0);
		PlayerPerform("say", "【关卡进度已保存】");
		PlayerPerform("pause", 1);
		PlayerPerform("say", "【关卡进度已保存】");
		PlayerPerform("block", 1);
		PlayerPerform("use",15);
		qlzy=61;
		tdy=now+2;
		Save("Level\sa10.sav",3);
	}
	if(qlzy==61&&now>tdy)
	{
		AddNPC("9-62");
		AddNPC("9-63");
		AddNPC("9-64");
		AddNPC("9-65");
		AddNPC("9-66");

		AddNPC("9-55-1");
		AddNPC("9-56-1");
		AddNPC("9-42-1");
		qlzy=62;
		tdy=now+2;
	}
	if(qlzy==62&&now>tdy)
	{
		if(c82>=0&&c55>=0)
		{
			ZMJAI_MoveLocate(-1094,-1339,48);
			qlzy=63;
			tdy=now+2;
		}		
	}
	if(qlzy==63&&now>tdy)
	{
		SetTarget(0, "waypoint", 290);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=500)
		{
			ChangeBehavior(c65,"follow", player);
			Perform(c62,"say", "如今这群反贼已成困兽，在疯狂反扑！");
			Perform(c62,"guard",3);
			Perform(c62,"say", "岳大哥，粮仓已被我们摧毁……");
			
			PlayerPerform("say", "杨兄罗兄，一起诛灭这帮反贼！");
			PlayerPerform("pause",6);
			PlayerPerform("say", "极好！恩师何在？");
			PlayerPerform("pause",6);
			
			Perform(c63,"say", "宗老爷已率军直扑高文才营帐。");
			Perform(c63,"guard",9);
			qlzy=64;
			q2x1=1;
			q2x2=1;
			q2x3=1;
			q2x4=1;
			q2x5=1;
			q2x6=1;
			q2x7=1;
			tdy=now+15;
		}
	}
	if(qlzy==64&&now>tdy)
	{
		Perform(c65,"say", "......俺打不过你......");
		Perform(c65,"guard",9);
		Perform(c65,"say", "哇呀~！是京中小校场上的两个直娘贼！");
		
		Perform(c56,"say", "黑炭头！待杀完了贼兵，是好汉便再来较量较量。");
		Perform(c56,"guard",6);
		
		PlayerPerform("say", "（擒贼先擒王，先解决【振威校尉】！）");
		PlayerPerform("pause",15);
		PlayerPerform("say", "牛兄弟休得无礼！");
		PlayerPerform("pause",3);
		qlzy=65;
	}
	if(qlzy==65)
	{
		qlzy=66;
	}
	if(qlzy==66&&GetHP(c66)<=0&&GetHP(c67)<=0&&GetHP(c68)<=0&&GetHP(c69)<=0&&GetHP(c70)<=0&&GetHP(c71)<=0&&GetHP(c72)<=0&&GetHP(c73)<=0)
	{
		ChangeBehavior(c42,"follow", player);
		ChangeBehavior(c55,"follow", player);
		ChangeBehavior(c56,"follow", player);
		ChangeBehavior(c62,"follow", player);
		ChangeBehavior(c63,"follow", player);
		ChangeBehavior(c64,"follow", player);
		ChangeBehavior(c65,"follow", player);
		PlayerPerform("block", 1);
		PlayerPerform("pause",1);
		PlayerPerform("block", 1);
		PlayerPerform("pause",1);
		PlayerPerform("block", 1);
		PlayerPerform("pause",1);
		PlayerPerform("block", 1);
		qlzy=67;
		tdy=now+3;
	}
	if(qlzy==67&&now>tdy)
	{
		ChangeBehavior(c42,"idle");
		ChangeBehavior(c55,"idle");
		ChangeBehavior(c56,"idle");
		ChangeBehavior(c62,"idle");
		ChangeBehavior(c63,"idle");
		ChangeBehavior(c64,"idle");
		ChangeBehavior(c65,"idle");
		qlzy=68;
	}
	if(qlzy==68)
	{
		Perform(c42,"say", "岳大哥……");
		Perform(c42,"pause",27);
		
		Perform(c65,"say", "这个自然不在话下。");
		Perform(c65, "faceto", player);
		Perform(c65,"pause",6);
		Perform(c65,"say", "杨兄弟、罗兄弟，俺老牛日前多有得罪，还望海涵！");
		Perform(c65,"pause",3);
		Perform(c65,"say", "俺老牛生平最敬重英雄好汉……");
		Perform(c65, "faceto", c55);
		Perform(c65,"pause",3);
		
		PlayerPerform("block", 0);
		PlayerPerform("say", "诸位兄弟，事不宜迟，大家开始行动！");
		PlayerPerform("pause",3);
		PlayerPerform("say", "我找到恩师，剿灭了高文才后，便来跟你汇合。");
		PlayerPerform("pause",3);
		PlayerPerform("say", "知言，你多有劳累，便先随汤兄弟撤出外围。");
		PlayerPerform("pause",6);
		PlayerPerform("say", "届时三路齐攻，一举铲除八公遗迹所有叛贼！");
		PlayerPerform("pause",3);
		PlayerPerform("say", "愚兄前往高文才营帐与恩师汇合。");
		PlayerPerform("pause",3);
		PlayerPerform("say", "诸位兄弟，眼下你们兵分东西两路，将余党全部诛灭。");
		PlayerPerform("pause",6);
		PlayerPerform("say", "待剿灭了高文才叛党，牛兄可好好陪两位兄弟吃上几碗酒赔不是。");
		PlayerPerform("pause",9);
		PlayerPerform("say", "杨兄，罗兄，这些俱是我的好兄弟，你们多亲近亲近。");
		PlayerPerform("block", 1);
		
		Perform(c42, "faceto", player);
		Perform(c55, "faceto", player);
		Perform(c56, "faceto", player);
		Perform(c62, "faceto", player);
		Perform(c63, "faceto", player);
		Perform(c64, "faceto", player);
		Perform(c65, "faceto", player);
		qlzy=69;
		tdy=now+30;
	}
	if(qlzy==69&&now>tdy)
	{
		RemoveNPC(c42);
		RemoveNPC(c55);
		RemoveNPC(c56);
		RemoveNPC(c62);
		RemoveNPC(c63);
		RemoveNPC(c64);
		RemoveNPC(c65);
		RemoveNPC(c66);
		RemoveNPC(c67);
		RemoveNPC(c68);
		RemoveNPC(c69);
		RemoveNPC(c70);
		RemoveNPC(c71);
		RemoveNPC(c72);
		RemoveNPC(c73);
		qlzy=99;
		q=42;
		t=now+2;
		mc1=1;
		mc6=9;
	}	
	if(q2x1==1&&now>tx)
	{
		AddNPC("9-67");
		q2x1=2;
	}
	
	if(q2x2==1&&now>tx)
	{
		AddNPC("9-68");
		q2x2=2;
	}
	
	if(q2x3==1&&now>tx)
	{
		AddNPC("9-69");
		q2x3=2;
	}
	
	if(q2x4==1&&now>tx)
	{
		AddNPC("9-70");
		q2x4=2;
	}
	
	if(q2x5==1&&now>tx)
	{
		AddNPC("9-71");
		q2x5=2;
	}
	
	if(q2x6==1&&now>tx)
	{
		AddNPC("9-72");
		q2x6=2;
	}
	
	if(q2x7==1&&now>tx)
	{
		AddNPC("9-73");
		q2x7=2;
	}
	
	if(qb==1)
	{
		SetTarget(0, "waypoint", 173);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=80)
		{
			Perform(c58,"say", "罢了，这件物事便送与你吧。");
			Perform(c58,"pause",6);
			Perform(c58,"say", "倒也并不为何，伯伯只是跟你闹着玩儿。");
			Perform(c58,"pause",6);
			Perform(c58,"say", "我是博渤伯，如果你高兴的话，可以叫我“博伯伯”。");
			Perform(c58, "faceto", player);
			
			PlayerPerform("block", 0);
			PlayerPerform("use",44);
			PlayerPerform("pause",6);
			PlayerPerform("say", "......");
		    PlayerPerform("pause",6);
			PlayerPerform("say", "为何我要高兴叫你伯伯？");
		    PlayerPerform("pause",3);
			PlayerPerform("block", 1);
			qb=2;
			tb=now+13;
		}
	}
	if(qb==2&&now>tb)
	{
		RemoveNPC(c58);
		qb=9;
	}
	if(qyhxw==1&&GetHP(c48)<=5000)
	{
		Perform(c48,"use",15);
		qyhxw=1;
	}
	if(q1x1==1&&now>tx)
	{
		AddNPC("9-49");
		q1x1=2;
	}
	if(q1x1==2&&c49>=0)
	{
		q1x1=3;
	}
	if(q1x1==3&&GetHP(c49)<=0)
	{
		tx=now+1;
		q1x1=4;
	}
	if(q1x1==4&&now>tx)
	{
		RemoveNPC(c49);
		q1x1=1;
        tx=now+1;		
	}
	if(q1x2==1&&now>tx)
	{
		AddNPC("9-50");
		q1x2=2;
	}
	if(q1x2==2&&c50>=0)
	{
		q1x2=3;
	}
	if(q1x2==3&&GetHP(c50)<=0)
	{
		tx=now+1;
		q1x2=4;
	}
	if(q1x2==4&&now>tx)
	{
		RemoveNPC(c50);
		q1x2=1;
        tx=now+1;		
	}
	if(q1x3==1&&now>tx)
	{
		AddNPC("9-51");
		q1x3=2;
	}
	if(q1x3==2&&c51>=0)
	{
		q1x3=3;
	}
	if(q1x3==3&&GetHP(c51)<=0)
	{
		tx=now+1;
		q1x3=4;
	}
	if(q1x3==4&&now>tx)
	{
		RemoveNPC(c51);
		q1x3=1;
        tx=now+1;		
	}
	if(q1x4==1&&now>tx)
	{
		AddNPC("9-52");
		q1x4=2;
	}
	if(q1x4==2&&c52>=0)
	{
		q1x4=3;
	}
	if(q1x4==3&&GetHP(c52)<=0)
	{
		tx=now+1;
		q1x4=4;
	}
	if(q1x4==4&&now>tx)
	{
		RemoveNPC(c52);
		q1x4=1;
        tx=now+1;		
	}
	if(q1x5==1&&now>tx)
	{
		AddNPC("9-53");
		q1x5=2;
	}
	if(q1x5==2&&c53>=0)
	{
		q1x5=3;
	}
	if(q1x5==3&&GetHP(c53)<=0)
	{
		tx=now+1;
		q1x5=4;
	}
	if(q1x5==4&&now>tx)
	{
		RemoveNPC(c53);
		q1x5=1;
        tx=now+1;		
	}
	if(q1x6==1&&now>tx)
	{
		AddNPC("9-54");
		q1x6=2;
	}
	if(q1x6==2&&c54>=0)
	{
		q1x6=3;
	}
	if(q1x6==3&&GetHP(c54)<=0)
	{
		tx=now+1;
		q1x6=4;
	}
	if(q1x6==4&&now>tx)
	{
		RemoveNPC(c54);
		q1x6=1;
        tx=now+1;		
	}
	if(qzz==1&&GetHP(c18)<=0)
	{
		PlayerPerform("say", "恩师！！");
		PlayerPerform("pause",2);
		Say(c18,"江声不尽英雄恨,天意无私草木秋！恨啊！");
		tzz=now+3;
		qzz=2;
	}
	if(qzz==2&&now>tzz)
	{
		v=1;
	}
	if(qzy3==1&&GetHP(c31)<=0)
	{
		PlayerPerform("say", "知言！！");
		PlayerPerform("pause",2);
		Say(c31,"岳大哥……知言此生……唯你……");
		tzy3=now+3;
		qzy3=2;
	}
	if(qzy3==2&&now>tzy3)
	{
		v=1;
	}
	
	if(qx1==1&&now>tx)
	{
		AddNPC("9-23");
		qx1=2;
	}
	if(qx1==2&&c23>=0)
	{
		qx1=3;
	}
	if(qx1==3&&GetHP(c23)<=0)
	{
		tx=now+1;
		qx1=4;
	}
	if(qx1==4&&now>tx)
	{
		RemoveNPC(c23);
		qx1=1;
        tx=now+1;		
	}
	if(qx2==1&&now>tx)
	{
		AddNPC("9-24");
		qx2=2;
	}
	if(qx2==2&&c24>=0)
	{
		qx2=3;
	}
	if(qx2==3&&GetHP(c24)<=0)
	{
		tx=now+1;
		qx2=4;
	}
	if(qx2==4&&now>tx)
	{
		RemoveNPC(c24);
		qx2=1;
        tx=now+1;		
	}
	if(qx3==1&&now>tx)
	{
		AddNPC("9-25");
		qx3=2;
	}
	if(qx3==2&&c25>=0)
	{
		qx3=3;
	}
	if(qx3==3&&GetHP(c25)<=0)
	{
		tx=now+1;
		qx3=4;
	}
	if(qx3==4&&now>tx)
	{
		RemoveNPC(c25);
		qx3=1;
        tx=now+1;		
	}
	if(qx4==1&&now>tx)
	{
		AddNPC("9-26");
		qx4=2;
	}
	if(qx4==2&&c26>=0)
	{
		qx4=3;
	}
	if(qx4==3&&GetHP(c26)<=0)
	{
		tx=now+1;
		qx4=4;
	}
	if(qx4==4&&now>tx)
	{
		RemoveNPC(c26);
		qx4=1;
        tx=now+1;		
	}
	if(qx5==1&&now>tx)
	{
		AddNPC("9-27");
		qx5=2;
	}
	if(qx5==2&&c27>=0)
	{
		qx5=3;
	}
	if(qx5==3&&GetHP(c27)<=0)
	{
		tx=now+1;
		qx5=4;
	}
	if(qx5==4&&now>tx)
	{
		RemoveNPC(c27);
		qx5=1;
        tx=now+1;		
	}
	if(qx6==1&&now>tx)
	{
		AddNPC("9-28");
		qx6=2;
	}
	if(qx6==2&&c28>=0)
	{
		qx6=3;
	}
	if(qx6==3&&GetHP(c28)<=0)
	{
		tx=now+1;
		qx6=4;
	}
	if(qx6==4&&now>tx)
	{
		RemoveNPC(c28);
		qx6=1;
        tx=now+1;		
	}
	if(qx7==1&&now>tx)
	{
		AddNPC("9-29");
		qx7=2;
	}
	if(qx7==2&&c29>=0)
	{
		qx7=3;
	}
	if(qx7==3&&GetHP(c29)<=0)
	{
		tx=now+1;
		qx7=4;
	}
	if(qx7==4&&now>tx)
	{
		RemoveNPC(c29);
		qx7=1;
        tx=now+1;		
	}
	if(qx8==1&&now>tx)
	{
		AddNPC("9-30");
		qx8=2;
	}
	if(qx8==2&&c30>=0)
	{
		qx8=3;
	}
	if(qx8==3&&GetHP(c30)<=0)
	{
		tx=now+1;
		qx8=4;
	}
	if(qx8==4&&now>tx)
	{
		RemoveNPC(c30);
		qx8=1;
        tx=now+1;		
	}
	
	
	if(qs==1)
	{
		SetTarget(0, "waypoint", 15);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=50)
		{
			Perform(c8,"say", "罢了，这件物事便送与你吧。");
			Perform(c8,"pause",6);
			Perform(c8,"say", "倒也并不为何，叔叔只是跟你闹着玩儿。");
			Perform(c8,"pause",6);
			Perform(c8,"say", "我是舒书叔，如果你高兴的话，可以叫我“舒叔叔”。");
			Perform(c8, "faceto", player);
			
			PlayerPerform("block", 0);
			PlayerPerform("use",19);
			PlayerPerform("pause",6);
			PlayerPerform("say", "......");
			PlayerPerform("pause",6);
			PlayerPerform("say", "为何我要高兴叫你叔叔？");
			PlayerPerform("pause",3);
			PlayerPerform("block", 1);
			qs=2;
			ts=now+13;
		}
	}
	if(qs==2&&now>ts)
	{
		RemoveNPC(c8);
		qs=9;
	}
	
	if(qr==1&&(GetHP(c2)>0||GetHP(c3)>0))
	{
		qr=2;
	}
	if(qr==2&&(GetHP(c4)<=0||GetHP(c5)<=0||GetHP(c6)<=0))
	{
	    Perform(c2,"say", "有敌人！快去禀告高先生！");
	    qr=3;
	    tr=now+2;
	}
	if(qr==3&&now>tr)
	{
		v=1;
	}
	
	if(qzy2==1&&GetHP(c2)<=0&&GetHP(c3)<=0&&GetHP(c4)<=0&&GetHP(c5)<=0&&GetHP(c6)<=0)
	{
		SetTarget(0, "waypoint", 1);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=50)
		{
			qzy2=2;
			qzy1=9;
		}
	}
	if(qzy2==2)
	{
		Perform(c,"say", "（此后便是天涯海角，我亦随你去……）");
		Perform(c,"pause",1);
		Perform(c,"say", "好！");
		Perform(c,"pause",6);
		Perform(c,"say", "岳公子……");
		Perform(c,"pause",6);
		Perform(c,"say", "你……你又救了我一次……知言……知言实在不知……");
		Perform(c,"pause",3);
		Perform(c,"say", "岳公子，我……无碍。");
		Perform(c,"pause",3);
		Perform(c, "faceto", player);
		
		PlayerPerform("block", 0);
		PlayerPerform("pause",3);
		PlayerPerform("block", 1);
		PlayerPerform("say", "眼下不便说话，李姑娘，你随我一起去营救宗恩师。");
		PlayerPerform("pause",6);	
		PlayerPerform("block", 1);		
		PlayerPerform("say", "李姑娘说哪里话？便是一千次一万次，岳某也要找到你。");
		PlayerPerform("pause",9);
		PlayerPerform("block", 1);
		PlayerPerform("say", "李姑娘，你可还好？");
		PlayerPerform("block", 1);
		qzy2=3;
		tzy2=now+18;
	}
	if(qzy2==3&&now>tzy2)
	{
		RemoveNPC(c);
		RemoveNPC(c6);
		RemoveNPC(c2);
		RemoveNPC(c3);
		RemoveNPC(c4);
		RemoveNPC(c5);
		qzy2=9;
		q=5;
		t=now+1;
	}
	if(qzy1==1&&now>tzy)
	{
		PlayerPerform("say", "【时间已过了一半！】");
		PlayerPerform("say", "【时间已过了一半！】");
		qzy1=2;
		tzy=now+15;
	}
	if(qzy1==2&&now>tzy)
	{
		PlayerPerform("say", "【时间还剩15秒！】");
		PlayerPerform("say", "【时间还剩15秒！】");
		qzy1=3;
		tzy=now+10;
	}
	if(qzy1==3&&now>tzy)
	{
		PlayerPerform("say", "【时间还剩5秒！】");
		PlayerPerform("say", "【时间还剩5秒！】");
		qzy1=4;
		tzy=now+5;
	}
	if(qzy1==4&&now>tzy)
	{
		PlayerPerform("say", "李姑娘！");
		PlayerPerform("pause",2);
		
		Perform(c,"say", "呃啊~！岳公子……但求来生……");
		Perform(c,"pause",1);
		PlayerPerform("say", "【时间已耗尽！】");
		qzy1=5;
		qzy2=9;
		tzy=now+3;
	}
	if(qzy1==5&&now>tzy)
	{
		Perform(c,"use",35);
		qzy1=6;
		tzy=now+1;
	}
	if(qzy1==6&&now>tzy)
	{
		v=1;
	}
	if (qgt1==1)
	{
		if (c4>=0 &&GetEnemy(c4)==player)
		{
			Perform(c4, "say", "什么人！");
			Perform(c4, "faceto", player);
			qgt1= 2;
			tgt1= now + 2;
		}
	}
	if (qgt1== 2)
	{
		if (c4>=0 &&GetEnemy(c4)==player && GetHP(c4)>0 && now>tgt1)
		{
			Perform(c4, "guard", 10);
			Say(c4, "有敌人！快去禀告高先生！");
			Perform(c4, "faceto", player);
			
			PlayerPerform("say", "不好！行踪败露！");
			PlayerPerform("pause", 2);
			qgt1 = 3;
			tgt1 = now + 4;
		}
	}
	if(qgt1==3&&now>tgt1)
	{
		v=1;
	}
	if (qgt2==1)
	{
		if (c5>=0 &&GetEnemy(c5)==player)
		{
			Perform(c5, "say", "什么人！");
			Perform(c5, "faceto", player);
			qgt2= 2;
			tgt2= now + 2;
		}
	}
	if (qgt2== 2)
	{
		if (c5>=0 &&GetEnemy(c5)==player && GetHP(c5)>0 && now>tgt2)
		{
			Perform(c5, "guard", 10);
			Say(c5, "有敌人！快去禀告高先生！");
			Perform(c5, "faceto", player);
			
			PlayerPerform("say", "不好！行踪败露！");
			PlayerPerform("pause", 2);
			qgt2 = 3;
			tgt2 = now + 4;
		}
	}
	if(qgt2==3&&now>tgt2)
	{
		v=1;
		mc1=9;
	}


	if(v==0&&GetHP(player)==0)
	{
		PlayerPerform("say", "壮志未酬身先死……");
		v=1;t5=now+6;
		mc1=9;
	}


	if(mc1==1)
	{
		ZMJAI_SendEvent(1, 1, 0, 1);
		mc1=2;
		tm1=now+110;
	}
	if(mc1==2 && now>tm1)
	{
		mc1=1;
	}

	if(mc2==1)
	{
		ZMJAI_SendEvent(1, 2, 0, 1);
		mc2=2;
		tm2=now+92;
	}
	if(mc2==2 && now>tm2)
	{
		mc2=1;
	}
	if(mc3==1)
	{
		ZMJAI_SendEvent(1, 0, 0, 1);
		mc3=2;
	}
	if(mc4==1)
	{
		ZMJAI_SendEvent(1, 3, 0, 1);
		mc4=2;
		tm4=now+89;
	}
	if(mc4==2&&now>tm4)
	{
		mc4=1;
	}
	if(mc5==1)
	{
		ZMJAI_SendEvent(1, 4, 0, 1);
		mc5=2;
		tm5=now+153;
	}
	if(mc5==2&&now>tm5)
	{
		mc5=1;
	}
	if(mc6==1)
	{
		ZMJAI_SendEvent(1, 5, 0, 1);
		mc6=2;
		tm6=now+290;
	}
	if(mc6==2&&now>tm6)
	{
		mc6=1;
	}
	if(mc7==1)
	{
		ZMJAI_SendEvent(1, 6, 0, 1);
		mc7=2;
		tm7=now+78;
	}
	if(mc7==2&&now>tm7)
	{
		mc7=1;
	}
	if(mc8==1)
	{
		ZMJAI_SendEvent(1, 7, 0, 1);
		mc8=2;
		tm8=now+70;
	}
	if(mc8==2&&now>tm8)
	{
		mc8=1;
	}
	if(mc9==1)
	{
		ZMJAI_SendEvent(1, 8, 0, 1);
		mc9=2;
		tm9=now+85;
	}
	if(mc9==2&&now>tm9)
	{
		mc9=1;
	}
	if(mc10==1)
	{
		ZMJAI_SendEvent(1, 9, 0, 1);
		mc10=2;
		tm10=now+94;
	}
	if(mc10==2&&now>tm10)
	{
		mc10=1;
	}
	if(v==2&&now>=t5)
	{
		gameover = 1;
		
	}
	if(v==1&&now>=t5)
	{
		gameover = -1;
		
	}
	if ((gameover==1 || gameover==-1))
	{
		GameOver(gameover);
		gameover = 2;
	}
}	