// 第八章
int Rule = 1;
int RoundTime = 90;
int PlayerSpawn = 0;
int PlayerSpawnDir = -100;
int PlayerWeapon = 62;
int PlayerWeapon2 = 5;
int PlayerHP = 6000;

int q=0;
int xyc=0;
int qyc=0;
int qyc1=0;
int qwm=0;
int qj1=0;
int qj2=0;
int qj3=0;
int t=0;
int tyc=0;
int tyc1=0;
int twm=0;

int t5=0;
int v= 0;


OnUpdate()
{
	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 now=GetGameTime();
	int gameover = 0;

	if(q==0)
	{
		AddNPC("8-1");
		q=1;
	}
	if(q==1&&c>=0)
	{
		Perform(c,"say", "来人！给我宰了他！");
		Perform(c,"pause",3);
		Perform(c,"say", "岳飞！休要狂妄！这醉花荫便是你葬身之地！");
		Perform(c, "faceto", player);
		Perform(c,"pause",3);
		
		PlayerPerform("block", 1);
		PlayerPerform("say", "萧别恨，你还想逃么！");
		PlayerPerform("block", 1);
		q=2;
		t=now+6;
	}
	if(q==2&&now>t)
	{
		AddNPC("8-2");
		AddNPC("8-3");
		AddNPC("8-4");
		PlayerPerform("block", 0);
		q=3;
	}
	if(q==3&&c2>=0&&c3>=0&&c4>=0)
	{
		RemoveNPC(c);
		q=4;
	}
	if(q==4&&GetHP(c2)<=0&&GetHP(c3)<=0&&GetHP(c4)<=0)
	{
		PlayerPerform("block", 0);
		PlayerPerform("say", "无论如何，也不能再让他逃脱。");
		PlayerPerform("pause",3);
		PlayerPerform("say", "那萧别恨钻进了花荫深处，保不齐暗中设下了凶险埋伏，我须得多加谨慎。");
		PlayerPerform("pause",3);
		PlayerPerform("say", "此地风景奇幽，花香袭人，不知是何所在。");
		PlayerPerform("block", 1);
		q=5;
		t=now+6;
	}
	if(q==5&&now>t)
	{
		RemoveNPC(c2);
		RemoveNPC(c3);
		RemoveNPC(c4);
		q=6;
		t=now+1;
	}
	if(q==6&&now>t)
	{
		AddNPC("8-5");
		AddNPC("8-6");
		AddNPC("8-7");
		AddNPC("8-8");
		AddNPC("8-9");
		AddNPC("8-10");
		AddNPC("8-11");
		q=7;
	}
	if(q==7&&c5>=0&&c6>=0&&c7>=0&&c8>=0&&c9>=0&&c10>=0&&c11>=0)
	{
		q=8;
	}
	if(q==8)
	{
		SetTarget(0, "waypoint", 6);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=200)
		{
			Perform(c5,"say", "休说废话！纳命来！");
			Perform(c5,"pause",3);
		    Perform(c5, "faceto", player);
			
			PlayerPerform("block", 0);
			PlayerPerform("pause",3);
			PlayerPerform("say", "是你！");
		    PlayerPerform("block", 1);
			q=99;
			qj1=1;
			t=now+3;
		}
	}
	if(qj1==1&&now>t)
	{
		ChangeBehavior(c5, "follow", player);
		qj1=9;
		q=9;
	}
	if(q==9&&GetHP(c5)<=0)
	{
		PlayerPerform("block", 0);
		PlayerPerform("say", "这番当真大意了，我须得想法子尽快找到萧别恨。");
		PlayerPerform("pause",3);
		PlayerPerform("say", "如此看来，此地应是有高文才手下的精英把守。");
		PlayerPerform("block", 1);
		PlayerPerform("pause",3);
		PlayerPerform("say", "难怪萧别恨有恃无恐。");
		PlayerPerform("block", 1);
		q=10;
		t=now+6;
	}
	if(q==10&&now>t)
	{
		AddNPC("8-13");
		q=11;
	}
	if(q==11&&c13>=0)
	{
		Perform(c13,"say", "为师自会【在暗中保护你】.");
	    Perform(c13,"pause",3);
		Perform(c13,"say", "若你自视不惧凶险，【则继续前行罢】。");
	    Perform(c13,"pause",3);
		Perform(c13,"say", "如果需要，【请上来到为师身边】。");
	    Perform(c13,"pause",3);
		Perform(c13,"say", "可需为师助你一臂之力？");
	    Perform(c13,"pause",3);
		Perform(c13,"say", "这七人武艺非凡，你要【追击萧别恨】，实非易事。");
	    Perform(c13,"pause",3);
		Perform(c13,"say", "鹏举，此地名为【醉花荫】，一路由高文才手下【七曜】镇守。");
	    Perform(c13,"pause",6);
		Perform(c13,"say", "鹏举，看上来。");
		Perform(c13, "faceto", player);
		
		PlayerPerform("block", 1);
		PlayerPerform("pause",3);
		PlayerPerform("block", 1);
		PlayerPerform("pause",3);
		PlayerPerform("block", 1);
		PlayerPerform("pause",3);
		PlayerPerform("block", 1);
		PlayerPerform("say", "师父！是师父！您可还好？");
		PlayerPerform("pause",3);
		q=12;
		t=now+20;
	}
	if(q==12&&now>t)
	{
		PlayerPerform("block", 0);
		PlayerPerform("say", "【请自行考虑！】");
		PlayerPerform("block", 1);
		PlayerPerform("pause",3);
		PlayerPerform("say", "【以及【每击败一名敌人】，自动【恢复200血】。");
		PlayerPerform("block", 1);
		PlayerPerform("pause",2);
		PlayerPerform("say", "【提示：选择【独自闯关】，将获得【加攻、加气Buff】，");
		PlayerPerform("block", 1);
		PlayerPerform("pause",3);
		PlayerPerform("say", "【提示：选择【与师父组队】，只在【特定剧情才能回血】。");
		PlayerPerform("block", 1);
		PlayerPerform("pause",3);
		PlayerPerform("say", "【注意！当见到第二名敌人时，将视为【放弃组队，独自闯关】。】");
		PlayerPerform("block", 1);
		PlayerPerform("pause",3);
		PlayerPerform("say", "【不想组队，可继续前行。】");
		PlayerPerform("pause",3);
		PlayerPerform("say", "【提示：想与师父组队，便想办法上到他身边。】");
		PlayerPerform("block", 1);
		q=13;
		qyc=1;
		qyc1=1;
	}
	if(qyc1==1)
	{
		SetTarget(0, "waypoint", 17);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=500)
		{
			PlayerPerform("block", 0);
			PlayerPerform("say", "【确定【放弃】，请继续前行。】");
		    PlayerPerform("pause",1);
			PlayerPerform("say", "【确定【放弃与师父组队】吗？】");
		    PlayerPerform("block", 1);
			qyc1=2;
		}
	}
	if(qyc1==2)
	{
		SetTarget(0, "waypoint", 16);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=800)
		{
			PlayerPerform("use",16);
			PlayerPerform("use",16);
			PlayerPerform("use",16);
			PlayerPerform("use",16);

			PlayerPerform("use",19);
			PlayerPerform("use",39);
			PlayerPerform("pause",2);
			Perform(c13,"say", "鹏举，你多加当心！");
			qyc1=3;
			qyc=99;
			q=99;
			tyc1=now+2;
		}
	}
	if(qyc1==3&&now>tyc1)
	{
		RemoveNPC(c13);
		qyc1=4;
	}
	if(qyc1==4)
	{
		SetTarget(0, "waypoint", 18);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=200)
		{
			Perform(c6,"say", "小贼！不要走，看剑！");
			qyc1=5;
		}
	}
	if(qyc1==5&&GetHP(c6)<=0)
	{
		PlayerPerform("say", "听师父的语气，似乎不易对付。");
		PlayerPerform("pause",3);
		PlayerPerform("say", "也不知这【七曜】究竟是何来路。");
		PlayerPerform("use",16);
		PlayerPerform("use",16);
		PlayerPerform("use",16);
		PlayerPerform("use",16);
		qyc1=6;
	}
	if(qyc1==6)
	{
		SetTarget(0, "waypoint", 235);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=200)
		{
			Perform(c7,"say", "小贼！看剑！");
		    Perform(c7,"pause",6);
			Perform(c7,"say", "姓岳的，你可真有能耐。");
			Perform(c7, "faceto", player);
			
			PlayerPerform("say", "又是你这恶女人！");
		    PlayerPerform("pause",3);
			qyc1=7;
		}
	}
	if(qyc1==7&&GetHP(c7)<=0)
	{
		Say(c7, "姓岳的，你……");
		
		PlayerPerform("use",16);
		PlayerPerform("use",16);
		PlayerPerform("use",16);
		PlayerPerform("use",16);
		PlayerPerform("say", "这女人武功着实不弱，后面须得更加当心。");
		PlayerPerform("pause",3);
		qyc1=8;
	}
	if(qyc1==8)
	{
		SetTarget(0, "waypoint", 166);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=200)
		{
			Perform(c8,"say", "哇哈哈哈，小贼，等你多时了！来尝尝大爷的霸王枪！");
			Perform(c8, "faceto", player);
			qyc1=9;
		}
	}
	if(qyc1==9&&GetHP(c8)<=1500)
	{
		Say(c8, "想不到我项西楚竟然……臭小子……咱们走着瞧!");
		ChangeBehavior(c8,"idle");

		PlayerPerform("use",16);
		PlayerPerform("use",16);
		PlayerPerform("use",16);
		PlayerPerform("use",16);
		PlayerPerform("say", "此人枪法如神，竟也为高文才所用……");
		PlayerPerform("pause",3);
		qyc1=99;
		qj2=1;
		tyc1=now+2;
	}
	if(qj2==1&&now>tyc1)
	{
		RemoveNPC(c8);
		qj2=9;
		qyc1=10;
	}
	if(qyc1==10)
	{
		SetTarget(0, "waypoint", 236);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=200)
		{
			Perform(c9,"say", "黄口小儿，看招罢！");
		    Perform(c9,"pause",6);
			Perform(c9,"say", "道爷乃是龙门“三木派”丘长春，看你一表人才，何苦巴巴赶来送命？");
		    Perform(c9,"pause",6);
			Perform(c9,"say", "岳飞，再往前走，性命堪忧。道爷劝你还是及早回头才是。");
			Perform(c9, "faceto", player);
			
			PlayerPerform("block", 0);
			PlayerPerform("pause",3);
			PlayerPerform("say", "你既为方外之人，却助纣为虐，真武大帝也容不得你！");
		    PlayerPerform("pause",6);
			PlayerPerform("say", "你是何人！");
		    PlayerPerform("pause",3);
			PlayerPerform("block", 1);
			qyc1=11;
		}
	}
	if(qyc1==11&&GetHP(c9)<=0)
	{
		Say(c9, "好俊的功夫！无量……寿佛……");
		
		PlayerPerform("use",16);
		PlayerPerform("use",16);
		PlayerPerform("use",16);
		PlayerPerform("use",16);
		PlayerPerform("say", "还剩两人，也不知那萧别恨躲往了何处。");
		PlayerPerform("pause",3);
		qyc1=12;
	}
	if(qyc1==12)
	{
		SetTarget(0, "waypoint", 131);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=200)
		{
			Perform(c10,"say", "......");
		    Perform(c10,"pause",6);
			Perform(c10,"say", "......");
		    Perform(c10,"pause",3);
			Perform(c10, "faceto", player);
			
			PlayerPerform("block", 0);
			PlayerPerform("say", "既如此，出招罢。");
		    PlayerPerform("pause",6);
			PlayerPerform("say", "你这姑娘倒挺面善，莫非也想阻我？");
			PlayerPerform("block", 1);
			qyc1=13;
		}
	}
	if(qyc1==13&&GetHP(c10)<=0)
	{
		PlayerPerform("say", "只可惜同样认贼作父，杀了倒也不冤。");
		PlayerPerform("pause",3);
		PlayerPerform("say", "这女子的身手好生诡异,不知师从何人。");
		PlayerPerform("block", 1);
		qyc1=14;
		tyc1=now+3;
	}
	if(qyc1==14&&now>tyc1)
	{
		AddNPC("8-19");
		qyc1=15;
	}
	if(qyc1==15&&c19>=0)
	{
		ChangeBehavior(c11, "idle");
		ChangeBehavior(c19, "idle");
		qyc1=16;
		tyc1=now+3;
	}
	if(qyc1==16&&now>tyc1)
	{
		Perform(c19,"say", "鹏举，怎地如此磨蹭？还不快过来。");
		
		PlayerPerform("block", 0);
		PlayerPerform("say", "是！徒儿这便来！");
		PlayerPerform("pause",3);
		PlayerPerform("say", "啊！师父！");
		PlayerPerform("pause",3);
		PlayerPerform("block", 1);
		qyc1=17;
		xyc=1;
	}
	if(qyc1==17)
	{
		SetTarget(0, "waypoint", 90);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=200)
		{
			Perform(c19,"say", "鹏举，服下伤药。");
			Perform(c19,"pause",2);
			Perform(c11, "faceto", player);

			PlayerPerform("use",15);
			Perform(c19, "faceto", c11);
			
			PlayerPerform("say", "【注意！对话中请勿偷袭！】");
			PlayerPerform("say", "【注意！对话中请勿偷袭！】");
			PlayerPerform("block", 1);
			qyc1=18;
			tyc1=now+2;
		}
	}
	if(qyc1==18&&now>tyc1)
	{
		Perform(c11,"say", "她们名义上是我师父，实则乃是妻妾，于你这牛鼻子何干？");
		Perform(c11,"pause",3);
		Perform(c11,"say", "若非我相救，她二人焉能活至今日？");
		Perform(c11,"pause",3);
		Perform(c11,"say", "当年若不是你这当师兄的铁石心肠，她二人又何至于流落江湖？");
		Perform(c11,"pause",3);
		Perform(c11,"say", "呸！她二人早被老头子逐出师门，还谈什么“入你门下”？");
		Perform(c11,"pause",6);
		Perform(c11,"say", "我两位师父说，若某天云尘师伯归西了，她们定会来送你一程。");
		Perform(c11,"pause",9);
		Perform(c11,"say", "原来是【云尘师伯】，你老人家还没归天呐？");
		Perform(c11,"pause",3);
		
		Perform(c19,"say", "强词夺理！孽畜！如此人神共愤之事，贫道岂能饶你！");
		Perform(c19,"pause",15);
		Perform(c19,"say", "无耻之徒！你既入我门下，却与你两个师父行那苟且之事，真乃畜生！");
		Perform(c19,"pause",6);
		Perform(c19,"say", "你的两个师父呢？叫她们来见我。");
		Perform(c19,"pause",9);
		Perform(c19,"say", "师闻墨，可还记得老道？");
		
		PlayerPerform("block", 1);
		PlayerPerform("pause",2);	
		PlayerPerform("block", 1);
		PlayerPerform("pause",2);	
		PlayerPerform("block", 1);
		PlayerPerform("pause",2);	
		PlayerPerform("block", 1);
		PlayerPerform("pause",2);	
		PlayerPerform("block", 1);
		PlayerPerform("pause",2);	
		PlayerPerform("block", 1);
		PlayerPerform("say", "恶贼！休得胡言！");
		PlayerPerform("pause",6);	
		PlayerPerform("block", 1);
		qyc1=19;
		qwm=1;
		tyc1=now+26;
	}
	if(qyc1==19&&now>tyc1)
	{
		ChangeBehavior(c19,"follow", c11);
		ChangeBehavior(c11,"follow", player);
		PlayerPerform("block", 0);
		qwm=9;
		qyc1=20;
	}
	if(qyc1==20&&GetHP(c11)<=0)
	{
		Perform(c19,"say", "先去寻那萧别恨要紧。");
		Perform(c19,"pause",3);
		Perform(c19,"say", "鹏举，不必多思，事后为师自会告知于你。");
		Perform(c19,"pause",9);
		Perform(c19,"say", "衣冠禽兽，死不足惜！");
		Perform(c19,"pause",3);
		
		PlayerPerform("block", 0);
		PlayerPerform("pause",6);
		PlayerPerform("say", "（可我这两个师叔为何却……）");
		PlayerPerform("pause",3);
		PlayerPerform("say", "（原来师父还有两个师妹，这么多年来，师父却从未提起。）");
		PlayerPerform("pause",6);	
		PlayerPerform("say", "师父，此人……");
		PlayerPerform("block", 1);
		qyc1=21;
		tyc1=now+18;
	}
	if(qyc1==21&&now>tyc1)
	{
		Perform(c19,"use",15);
		PlayerPerform("use",16);
		PlayerPerform("use",16);
		PlayerPerform("use",16);
		PlayerPerform("use",16);
		ChangeBehavior(c19,"follow", player);
		qyc1=22;
	}
	if(qyc1==22&&GetHP(c5)<=0&&GetHP(c6)<=0&&GetHP(c7)<=0&&GetHP(c8)<=0&&GetHP(c9)<=0&&GetHP(c10)<=0&&GetHP(c11)<=0)
	{
		RemoveNPC(c5);
		RemoveNPC(c6);
		RemoveNPC(c7);
		RemoveNPC(c8);
		RemoveNPC(c9);
		RemoveNPC(c10);
		RemoveNPC(c11);
		qyc1=23;
		tyc1=now+1;
	}
	if(qyc1==23&&now>tyc1)
	{
		AddNPC("8-12");
		AddNPC("8-15");
		AddNPC("8-16");
		AddNPC("8-17");
		AddNPC("8-18");
		qyc1=24;
	}
	if (qyc1==24&&c12>=0&&c15>=0&&c16>=0&&c17>=0&&c18>=0&&GetEnemy(c12)==player)
		{
			Perform(c12,"say", "给我砍下他的首级！！");
		    Perform(c12,"pause",3);
			Perform(c12,"say", "岳飞！你屡次坏我大事！今日有你没我！");
		    Perform(c12,"pause",3);
			
			PlayerPerform("block", 0);
			PlayerPerform("pause",6);
			PlayerPerform("say", "萧别恨！你已无路可逃，还不束手就擒！");	
		    PlayerPerform("block", 1);
			
			Perform(c18, "guard", 6);
			Perform(c17, "guard", 6);
			Perform(c16, "guard", 6);
			Perform(c15, "guard", 6);
			Perform(c12, "faceto", player);
			Perform(c15, "faceto", player);
			Perform(c16, "faceto", player);
			Perform(c17, "faceto", player);
			Perform(c18, "faceto", player);
			qyc1=25;
			xyc=1;
		}
	
	if(qyc1==25&&GetHP(c12)<=0&&GetHP(c15)<=0&&GetHP(c16)<=0&&GetHP(c17)<=0&&GetHP(c18)<=0)
	{
		v=2;
	}
	
	
	
	/////////////
	if(qyc==1)
	{
		SetTarget(0, "waypoint", 15);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=80)
		{
			Perform(c13,"say", "眼下不是说话的所在，为师助你剿灭了这班乱贼。");
	        Perform(c13,"pause",3);
			Perform(c13,"say", "尽忠报国四字你已牢记于心，为师大是畅慰。");
	        Perform(c13,"pause",3);
			Perform(c13,"say", "鹏举，这一路走来，你的所作所为，为师尽收眼底。");
	        Perform(c13,"pause",3);
			Perform(c13,"say", "为师其实一直在暗中跟着你。");
	        Perform(c13,"pause",3);
			Perform(c13, "faceto", player);
			
			PlayerPerform("block", 0);
			PlayerPerform("say", "是！师父！");
		    PlayerPerform("pause",18);
			PlayerPerform("say", "师父！您……您怎会来此处？");
			PlayerPerform("block", 1);
			qyc=2;
			qyc1=99;
			q=99;
			tyc=now+13;
		}
	}
	if(qyc==2&&now>tyc)
	{
		RemoveNPC(c13);
		qyc=3;
		tyc=now+1;
	}
	if(qyc==3&&now>tyc)
	{
		AddNPC("8-14");
		qyc=4;
	}
	if(qyc==4&&c14>=0)
	{
		PlayerPerform("use",16);
		PlayerPerform("use",16);
		PlayerPerform("use",16);
		PlayerPerform("use",16);
		PlayerPerform("pause",2);

		ChangeBehavior(c14,"follow", player);
		Perform(c14,"use",43);
		Perform(c14,"say", "鹏举，还不快来！");
		qyc=5;
		xyc=1;
	}
	if(qyc==5)
	{
		SetTarget(0, "waypoint", 18);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=200)
		{
			Perform(c6,"say", "小贼！不要走，看剑！");
			qyc=6;
		}
	}
	if(qyc==6&&GetHP(c6)<=0)
	{
		Perform(c14,"say", "为师既然插手了此事，必将这七个贼子全部诛杀了。");
		Perform(c14,"pause",3);
		Perform(c14,"say", "此事说来话长，待解决了眼下的事，为师详细说与你知。");
		Perform(c14, "faceto", player);
		Perform(c14,"pause",3);
		
		PlayerPerform("block", 0);
		PlayerPerform("pause",5);
		PlayerPerform("say", "师父，这【七曜】到底是什么来路？");
		PlayerPerform("block", 1);
		qyc=7;
	}
	if(qyc==7)
	{
		SetTarget(0, "waypoint", 235);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=200)
		{
			Perform(c14,"say", "鹏举，记住了，锄奸必下狠手！");
			Perform(c14, "faceto", c7);
		    Perform(c14,"pause",3);
			
			Perform(c7,"say", "老道士，你是何人！");
		    Perform(c7,"pause",6);
			Perform(c7,"say", "姓岳的，你可真有能耐。");
			Perform(c7, "faceto", player);
			
			PlayerPerform("block", 0);
		    PlayerPerform("pause",5);
			PlayerPerform("block", 1);
			qyc=8;
		}
	}
	if(qyc==8&&GetHP(c7)<=0)
	{
		Perform(c14,"use",16);
		Perform(c14,"say", "为师带有干粮，你我胡乱应付一口，继续追击。");
		Perform(c14,"pause",3);
		Perform(c14,"say", "连毙三名敌人尚且气韵坦然，鹏举，这些时日你果真长进了不少。");
		Perform(c14, "faceto", player);
		
		PlayerPerform("block", 0);
		PlayerPerform("use",16);
		PlayerPerform("pause",1);
		PlayerPerform("say", "多谢师父！");
		PlayerPerform("pause",9);
		PlayerPerform("block", 1);
		qyc=9;
	}
	if(qyc==9)
	{
		SetTarget(0, "waypoint", 166);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=200)
		{
			Perform(c14,"say", "莽夫休要逞强！");
			Perform(c14, "faceto", c8);
		    Perform(c14,"pause",3);
			
			Perform(c8,"say", "何处冒出的牛鼻子老道？讨打！");
		    Perform(c8,"pause",6);
			Perform(c8,"say", "哇哈哈哈，小贼，等你多时了！来尝尝大爷的霸王枪！");
			Perform(c8, "faceto", player);
			
			PlayerPerform("block", 0);
		    PlayerPerform("pause",5);
			PlayerPerform("block", 1);
			qyc=10;
		}
	}
	if(qyc==10&&GetHP(c8)<=1500)
	{
		Say(c8, "牛鼻子、臭小子！咱们走着瞧！");
		ChangeBehavior(c8,"idle");
		
		Perform(c14,"say", "不要停，继续往前。");
		Perform(c14,"pause",3);
		Perform(c14,"say", "（连“项西楚”这类枪法大家，也甘愿为你所用，【师妹】，你当真厉害。）");
		Perform(c14,"pause",6);
		
		PlayerPerform("say", "师父，此人枪法何其霸道！");
		PlayerPerform("pause",3);
		qyc=99;
		qj3=1;
		tyc=now+2;
	}
	if(qj3==1&&now>tyc)
	{
		RemoveNPC(c8);
		qj3=9;
		qyc=11;
	}
	if(qyc==11)
	{
		SetTarget(0, "waypoint", 236);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=200)
		{
			Perform(c14,"say", "想必尊驾便是“三木派”的丘长春罢？雕虫小技也敢口出狂言？");
			Perform(c14, "faceto", c9);
		    Perform(c14,"pause",3);
			
			Perform(c9,"say", "你……你是云……！哼，看剑罢！");
		    Perform(c9,"pause",6);
			Perform(c9,"say", "岳飞，再往前走，性命堪忧。道爷劝你还是及早回头才是。");
			Perform(c9, "faceto", player);
			
			PlayerPerform("block", 0);
		    PlayerPerform("pause",5);
			PlayerPerform("block", 1);
			qyc=12;
		}
	}
	if(qyc==12&&GetHP(c9)<=0)
	{
		Perform(c14,"use",16);
		Perform(c14,"use",16);
		Perform(c14,"say", "暂且包扎一下，继续走。");
		Perform(c14,"pause",3);
		Perform(c14,"say", "你被他剑气所伤，也不足为异。");
		Perform(c14,"pause",3);
		Perform(c14,"say", "丘长春剑法造诣极高，乃是三木派数一数二的人物。");
		Perform(c14,"pause",3);
		Perform(c14, "faceto", player);
		Say(c14, "鹏举，你受伤了。");
		
		PlayerPerform("use",16);
		PlayerPerform("use",16);
		PlayerPerform("block", 0);
		PlayerPerform("pause",3);
        PlayerPerform("block", 1);
		PlayerPerform("pause",3);		
		PlayerPerform("say", "师父徒儿惭愧……");
		PlayerPerform("pause",3);	
		PlayerPerform("block", 1);
		qyc=13;
	}
	if(qyc==13)
	{
		SetTarget(0, "waypoint", 131);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=200)
		{
			Perform(c14,"say", "动手罢！");
			Perform(c14, "faceto", c10);
		    Perform(c14,"pause",3);
			
			Perform(c10,"say", "......");
		    Perform(c10,"pause",6);
			Perform(c10,"say", "......");
			Perform(c10, "faceto", player);
			
			PlayerPerform("block", 0);
		    PlayerPerform("pause",5);
			PlayerPerform("block", 1);
			qyc=14;
		}
	}
	if(qyc==14&&GetHP(c10)<=0)
	{
		Perform(c14,"say", "跟紧为师。");
		Perform(c14,"pause",3);
		Perform(c14,"use",16);
		Perform(c14,"use",16);
		Perform(c14,"use",16);
		Perform(c14,"use",16);
		Perform(c14,"use",16);
		Perform(c14,"say", "鹏举，为师这里有一枚药丸，可暂时固体培元，你且服下。");
		Perform(c14,"pause",3);
		Perform(c14,"say", "如今【七曜】已诛灭六个，剩下这个更不易对付。");
		Perform(c14,"pause",3);
		Perform(c14,"say", "不错，这女娃和丘长春确实不易打发。");
		Perform(c14,"pause",3);
		Perform(c14, "faceto", player);
		
		PlayerPerform("use",15);	
		PlayerPerform("block", 0);
		PlayerPerform("say", "多谢师父！");
		PlayerPerform("pause",15);	
		PlayerPerform("say", "师父，这女子的身手好生诡异。");
		PlayerPerform("block", 1);
		qyc=15;
		tyc=now+15;
	}
	if(qyc==15&&now>tyc)
	{
		ChangeBehavior(c14, "idle");
		SetTarget(0, "waypoint", 89);
		ChangeBehavior(c14, "attacktarget", 0);
		qyc=16;
	}
	if(qyc==16)
	{
		ChangeBehavior(c11, "idle");
		qyc=17;
	}
	
	if(qyc==17)
	{
		SetTarget(0, "waypoint", 90);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=200)
		{
			Perform(c11, "faceto", player);
			
			Perform(c14, "faceto", c11);
			
			PlayerPerform("say", "【注意！对话中请勿偷袭！】");
			PlayerPerform("say", "【注意！对话中请勿偷袭！】");
			PlayerPerform("block", 1);
			qyc=18;
			tyc=now+2;
		}
	}
	if(qyc==18&&now>tyc)
	{
		Perform(c11,"say", "她们名义上是我师父，实则乃是妻妾，于你这牛鼻子何干？");
		Perform(c11,"pause",3);
		Perform(c11,"say", "若非我相救，她二人焉能活至今日？");
		Perform(c11,"pause",3);
		Perform(c11,"say", "当年若不是你这当师兄的铁石心肠，她二人又何至于流落江湖？");
		Perform(c11,"pause",3);
		Perform(c11,"say", "呸！她二人早被老头子逐出师门，还谈什么“入你门下”？");
		Perform(c11,"pause",6);
		Perform(c11,"say", "我两位师父说，若某天云尘师伯归西了，她们定会来送你一程。");
		Perform(c11,"pause",9);
		Perform(c11,"say", "原来是【云尘师伯】，你老人家还没归天呐？");
		Perform(c11,"pause",3);
		
		Perform(c14,"say", "强词夺理！孽畜！如此人神共愤之事，贫道岂能饶你！");
		Perform(c14,"pause",15);
		Perform(c14,"say", "无耻之徒！你既入我门下，却与你两个师父行那苟且之事，真乃畜生！");
		Perform(c14,"pause",6);
		Perform(c14,"say", "你的两个师父呢？叫她们来见我。");
		Perform(c14,"pause",9);
		Perform(c14,"say", "师闻墨，可还记得老道？");
		
		PlayerPerform("block", 1);
		PlayerPerform("pause",2);	
		PlayerPerform("block", 1);
		PlayerPerform("pause",2);	
		PlayerPerform("block", 1);
		PlayerPerform("pause",2);	
		PlayerPerform("block", 1);
		PlayerPerform("pause",2);	
		PlayerPerform("block", 1);
		PlayerPerform("pause",2);	
		PlayerPerform("block", 1);
		PlayerPerform("say", "恶贼！休得胡言！");
		PlayerPerform("pause",6);	
		PlayerPerform("block", 1);
		qyc=19;
		xyc=1;
		qwm=1;
		tyc=now+26;
	}
	if(qyc==19&&now>tyc)
	{
		ChangeBehavior(c14,"follow", c11);
		ChangeBehavior(c11,"follow", player);
		PlayerPerform("block", 0);
		qwm=9;
		qyc=20;
	}
	if(qyc==20&&GetHP(c11)<=0)
	{
		Perform(c14,"say", "先去寻那萧别恨要紧。");
		Perform(c14,"pause",3);
		Perform(c14,"say", "鹏举，不必多思，事后为师自会告知于你。");
		Perform(c14,"pause",9);
		Perform(c14,"say", "衣冠禽兽，死不足惜！");
		Perform(c14,"pause",3);
		
		PlayerPerform("block", 0);
		PlayerPerform("pause",6);
		PlayerPerform("say", "（可我这两个师叔为何却……）");
		PlayerPerform("pause",3);
		PlayerPerform("say", "（原来师父还有两个师妹，这么多年来，师父却从未提起。）");
		PlayerPerform("pause",6);	
		PlayerPerform("say", "师父，此人……");
		PlayerPerform("block", 1);
		qyc=21;
		tyc=now+18;
	}
	if(qyc==21&&now>tyc)
	{
		ChangeBehavior(c14,"follow", player);
		qyc=22;
		tyc=now+1;
	}
	if(qyc==22&&now>tyc)
	{
		if(GetHP(c5)<=0&&GetHP(c6)<=0&&GetHP(c7)<=0&&GetHP(c8)<=0&&GetHP(c9)<=0&&GetHP(c10)<=0&&GetHP(c11)<=0)
		{
			RemoveNPC(c5);
			RemoveNPC(c6);
			RemoveNPC(c7);
			RemoveNPC(c8);
			RemoveNPC(c9);
			RemoveNPC(c10);
			RemoveNPC(c11);

			Perform(c14,"use",15);

			PlayerPerform("use",16);
			PlayerPerform("use",16);
			PlayerPerform("use",16);
			PlayerPerform("use",16);
			qyc=23;
			tyc=now+3;
		}

	}
	if(qyc==23&&now>tyc)
	{
		AddNPC("8-12");
		AddNPC("8-15");
		AddNPC("8-16");
		AddNPC("8-17");
		AddNPC("8-18");
		qyc=24;
	}
	if (qyc==24)
		{
		    if(c12>=0&&c15>=0&&c16>=0&&c17>=0&&c18>=0&&GetEnemy(c12)==player)
			{
			    Perform(c12,"say", "给我砍下他的首级！！");
		        Perform(c12,"pause",3);
			    Perform(c12,"say", "岳飞！你屡次坏我大事！今日有你没我！");
		        Perform(c12,"pause",3);
			
			    PlayerPerform("block", 0);
			    PlayerPerform("pause",6);
			    PlayerPerform("say", "萧别恨！你已无路可逃，还不束手就擒！");	
		        PlayerPerform("block", 1);
			
			    Perform(c18, "guard", 6);
			    Perform(c17, "guard", 6);
			    Perform(c16, "guard", 6);
			    Perform(c15, "guard", 6);
			    Perform(c12, "faceto", player);
			    Perform(c15, "faceto", player);
			    Perform(c16, "faceto", player);
			    Perform(c17, "faceto", player);
			    Perform(c18, "faceto", player);
			    qyc=25;
				xyc=1;
			}
		}
	
	if(qyc==25&&GetHP(c12)<=0&&GetHP(c15)<=0&&GetHP(c16)<=0&&GetHP(c17)<=0&&GetHP(c18)<=0)
	{
		v=2;
	}
	



	if(qwm==1&&GetHP(c11)<14000)
	{
		Perform(c11,"say", "好狗头！竟敢偷袭！");
		qwm=2;
		twm=now+2;
	}
	if(qwm==2&&now>twm)
	{
		v=1;
	}
		/////
	if(v==0&&GetHP(player)<=0)
	{
		PlayerPerform("say", "师父……徒儿学艺不精……");
		v=1;t5=now+5;
	}
	if(xyc==1&&GetHP(c14)<=4000)
	{
		Say(c14, "【剩余血量：400】");
		xyc=2;
	}
	if(xyc==2&&GetHP(c14)<=2000)
	{
		Say(c14, "【剩余血量：200】");
		xyc=3;
	}
	if(xyc==3&&GetHP(c14)<=1000)
	{
		Say(c14, "【剩余血量：100】");
		xyc=4;
	}
	if(xyc==4&&GetHP(c14)<=0)
	{
		PlayerPerform("say", "师父！！");
		PlayerPerform("pause",2);

		xyc=5;
		gameover = -1;
		t5=now+4;
	}
	
	if(v==2&&now>=t5)
	{
		gameover = 1;
		
	}
	if(v==1&&now>=t5)
	{
		gameover = -1;
		
	}
	if ((gameover==1 || gameover==-1))
	{
		GameOver(gameover);
		gameover = 2;
	}
}