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 = 90;
int PlayerSpawn = 0;
int PlayerSpawnDir = 90;
int PlayerWeapon = 5;
int PlayerWeapon2 = 0;
int PlayerHP = 5000;

int q=0;
int cd=0;
int qxn=0;
int qxn1=0;
int qxn2=0;
int qxn3=0;
int hp1;
int hp2;
int hp3;
int hp4;
int qhg=0;
int qhg1=0;
int qhg11=0;
int qhg22=0;
int qhg2=0;
int qdx=0;
int qdx1=0;
int qdx2=0;
int qyc=0;
int qyc1=0;
int qzy=0;

int qjm=0;
int qtj=0;
int qlx=0;
int qhm=0;
int qjy=0;
int qtz=0;
int jcf=0;
int qth=0;
int qth1=0;
int qth2=0;
int qqp1=0;
int qqp2=0;
int qwg=0;
int qwg1=0;
int qwg2=0;

int t=0;
int txn=0;
int txn1=0;
int txn2=0;
int thg=0;
int thg11=0;
int tdx1=0;
int tdx2=0;
int tyc=0;
int tyc1=0;
int tjm=0;
int tlx=0;
int thm=0;
int tjy=0;
int ttz=0;
int tzy=0;
int tjcf=0;
int tth=0;
int tth1=0;
int tth2=0;
int tqp1=0;
int tqp2=0;
int twg=0;
int twg1=0;
int twg2=0;

int wqpd= 0;
int wqt= 0;

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


	if(cd==0)
	{
		if(Load("Level\sa05.sav")==0)
		{
			cd = 9;
			q = 0;
		}
		if(Load("Level\sa05.sav")==1)
		{
			cd=9;
			q=7;
			t=now+1;
		}
		if(Load("Level\sa05.sav")==2)
		{
			cd=9;
			q=9;
			t=now+1;
		}
		if(Load("Level\sa05.sav")==3)
		{
			cd=9;
			q=37;
			t=now+2;
		}
	}	
	
	if(q==0)
	{
		AddNPC("7-1");
		q=1;
	}
	if(q==1&&c>=0)
	{
		ChangeBehavior(c,"follow", player);
		Perform(c,"pause",2);
		Perform(c, "faceto", player);
		q=2;
	}
	if(q==2&&GetHP(c)<=1500)
	{
		Perform(c,"guard",30);
		Perform(c,"say", "岳飞，我家公子爷颇为看重你，劝你三思。告辞。");
		Perform(c,"pause",3);
		Perform(c,"say", "高某今日已试过你的身手，原想送你一场富贵，可惜你鼠目寸光，实难称英雄。");
		Perform(c,"pause",7);
		Say(c, "且慢！岳飞，你果然好武艺，何不效忠梁王，指日便可飞黄腾达？");
		ChangeBehavior(c, "idle");
		
		PlayerPerform("say", "你空有一身本领，却不思忠君报国，岳飞不屑与你多言，再来打过！");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "乱臣贼子焉敢口出狂言？常言道‘学成文武艺，货卖帝王家’。");
		PlayerPerform("pause", 3);
		PlayerPerform("block", 1);
		
		q=3;
		t=now+12;
	}
	if(q==3&&now>t)
	{
		RemoveNPC(c);
		q=4;
		t=now+2;
	}
	if(q==4&&now>t)
	{
		PlayerPerform("say", "【提示：本关含多条支线，每条支线均有不同奖励，可随君自由选择。】");
		PlayerPerform("pause", 2);
		PlayerPerform("say", "【提示：本关含多条支线，每条支线均有不同奖励，可随君自由选择。】");
		PlayerPerform("pause", 3);
		PlayerPerform("block", 0);
		PlayerPerform("say", "校场武考乃未时举行，眼下尚有几个时辰，不如先去找到众位兄弟。");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "此人武功高深，适才显然未出全力，日后再遇上，须得当心。");
		PlayerPerform("block", 1);
		q=5;
		t=now+3;
	}
	if(q==5&&now>t)
	{
		AddNPC("7-2");
		AddNPC("7-3");
		AddNPC("7-5");
		AddNPC("7-16");
		AddNPC("7-17");
		AddNPC("7-18");
		q=6;
	}
	if(q==6&&c2>=0&&c3>=0&&c5>=0&&c16>=0&&c17>=0&&c18>=0)
	{
		q=7;
		qxn=1;
		qhg=1;
		qdx=1;
		qyc=1;
		qjm=1;
		
	}
	if(q==7&&c16<0)
	{
		AddNPC("7-32");
		AddNPC("7-33");
		AddNPC("7-34");
		AddNPC("7-35");
		AddNPC("7-45");
		PlayerPerform("say", "【存档已生成！】");
		PlayerPerform("pause", 1);
		PlayerPerform("say", "【存档已生成！】");
		PlayerPerform("pause", 4);
		PlayerPerform("say", "【正在存档...】");
		PlayerPerform("pause", 1);
		PlayerPerform("say", "【正在存档...】");
		q=8;
		Save("Level\sa05.sav",1);
	}
	if(q==8&&c32>=0&&c33>=0&&c34>=0&&c35>=0&&c45>=0)
	{
		q=9;
		qzy=1;
		qth=1;
		qqp1=1;
		qqp2=1;
		qwg=1;
	}
	if(q==9&&c32<0&&c33<0&&c34<0&&c35<0)
	{
		PlayerPerform("say", "【存档已生成！】");
		PlayerPerform("pause", 1);
		PlayerPerform("say", "【存档已生成！】");
		PlayerPerform("pause", 4);
		PlayerPerform("say", "【正在存档...】");
		PlayerPerform("pause", 1);
		PlayerPerform("say", "【正在存档...】");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "（时候差不多了，武考即将开始，我得【前往大校场】。）");
		q=10;
		Save("Level\sa05.sav",2);
	}
	if(q==10&&c45<0)
	{
		SetTarget(0, "waypoint", 74);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=100)
		{
			AddNPC("7-73");
			t=now+1;
			q=11;
		}
	}
	if(q==11&&c73>=0&&now>t)
	{
		Perform(c73,"say", "应考武生请上前，站到【校场中央】。");
		q=12;
	}
	if(q==12)
	{
		SetTarget(0, "waypoint", 156);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=20)
		{
			Perform(c73,"say", "从【西门】到【东门】，突破层层围敌。考生请至【西门】准备！");
			Perform(c73,"pause",3);
			Perform(c73,"say", "考生准备第一场，【突围战】。");
			Perform(c73,"pause",8);
			Perform(c73,"say", "考生可听明白了？");
			Perform(c73,"pause",3);
			Perform(c73,"say", "其三为【个人战】，一夫当关技压群雄，方为豪杰。");
			Perform(c73,"pause",3);
			Perform(c73,"say", "其二为【团队战】，协同指挥率军破敌，方为将才。");
			Perform(c73,"pause",3);
			Perform(c73,"say", "其一为【突围战】，乱军之中来去自如，方显本领。");
			Perform(c73,"pause",3);
			Perform(c73,"say", "今科武考，共分三场。");
			
			PlayerPerform("block", 0);
			PlayerPerform("say", "【提示：请到西门处。】");
			PlayerPerform("pause", 2);
			PlayerPerform("say", "【提示：请到西门处。】");
			PlayerPerform("pause", 10);
			PlayerPerform("say", "武生明白！");
			PlayerPerform("pause", 18);
			PlayerPerform("use", 15);
		    PlayerPerform("block", 1);
			q=13;
		}
	}
	if(q==13)
	{
		SetTarget(0, "waypoint", 158);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=100)
		{
			AddNPC("7-74");
		    AddNPC("7-75");
		    AddNPC("7-76");
			q=14;
		}
	}
	if(q==14&&c74>=0&&c75>=0&&c76>=0)
	{
		q=15;
	}
	if(q==15&&GetHP(c74)<=0&&GetHP(c75)<=0&&GetHP(c76)<=0)
	{
		PlayerPerform("use", 16);
		q=16;
		t=now+2;
	}
	if(q==16&&now>t)
	{
		RemoveNPC(c74);
		RemoveNPC(c75);
		RemoveNPC(c76);
		q=17;
		t=now+2;
	}
	if(q==17&&now>t)
	{
		AddNPC("7-77");
		AddNPC("7-78");
	    AddNPC("7-79");
		AddNPC("7-80");
		q=18;
	}
	if(q==18&&c77>=0&&c78>=0&&c79>=0&&c80>=0)
	{
		q=19;
	}
	if(q==19&&GetHP(c77)<=0&&GetHP(c78)<=0&&GetHP(c79)<=0&&GetHP(c80)<=0)
	{
		PlayerPerform("use", 16);
		q=20;
		t=now+2;
	}
	if(q==20&&now>t)
	{
		RemoveNPC(c77);
		RemoveNPC(c78);
		RemoveNPC(c79);
		RemoveNPC(c80);
		q=21;
		t=now+2;
	}
	if(q==21&&now>t)
	{
		AddNPC("7-81");
		AddNPC("7-82");
	    AddNPC("7-83");
		AddNPC("7-84");
		AddNPC("7-85");
		AddNPC("7-86");
		q=22;
	}
	if(q==22&&c81>=0&&c82>=0&&c83>=0&&c84>=0&&c85>=0&&c86>=0)
	{
		q=23;
	}
	if(q==23&&GetHP(c81)<=0&&GetHP(c82)<=0&&GetHP(c83)<=0&&GetHP(c84)<=0&&GetHP(c85)<=0&&GetHP(c86)<=0)
	{
		PlayerPerform("use", 16);
		q=24;
		t=now+2;
	}
	if(q==24&&now>t)
	{
		RemoveNPC(c81);
		RemoveNPC(c82);
		RemoveNPC(c83);
		RemoveNPC(c84);
		RemoveNPC(c85);
		RemoveNPC(c86);
		q=25;
		t=now+2;
	}
	if(q==25&&now>t)
	{
		AddNPC("7-87");
		AddNPC("7-88");
	    AddNPC("7-89");
		AddNPC("7-90");
		AddNPC("7-91");
		AddNPC("7-92");
		AddNPC("7-93");
		AddNPC("7-94");
		q=26;
	}
	if(q==26&&c87>=0&&c88>=0&&c89>=0&&c90>=0&&c91>=0&&c92>=0&&c93>=0&&c94>=0)
	{
		q=27;
	}
	if(q==27&&GetHP(c87)<=0&&GetHP(c88)<=0&&GetHP(c89)<=0&&GetHP(c90)<=0&&GetHP(c91)<=0&&GetHP(c92)<=0&&GetHP(c93)<=0&&GetHP(c94)<=0)
	{
		q=28;
		t=now+2;
	}
	if(q==28&&now>t)
	{
		RemoveNPC(c87);
		RemoveNPC(c88);
		RemoveNPC(c89);
		RemoveNPC(c90);
		RemoveNPC(c91);
		RemoveNPC(c92);
		RemoveNPC(c93);
		RemoveNPC(c94);
		q=29;
		t=now+1;
	}
	if(q==29&&now>t)
	{
		Perform(c73,"say", "武生返回【校场中央】，准备【第二场】。");
		PlayerPerform("use", 15);
		q=30;
		t=now+1;
	}
	if(q==30&&now>t)
	{
		AddNPC("7-95");
		AddNPC("7-96");
	    AddNPC("7-97");
		AddNPC("7-98");
		AddNPC("7-99");
		AddNPC("7-100");
		AddNPC("7-101");
		AddNPC("7-102");
		AddNPC("7-103");
		AddNPC("7-104");
		AddNPC("7-105");
		q=31;
	}
	if(q==31&&c95>=0&&c96>=0&&c97>=0&&c98>=0&&c99>=0&&c100>=0&&c101>=0&&c102>=0&&c103>=0&&c104>=0&&c105>=0)
	{
		
		Perform(c98, "faceto", c105);
		Perform(c105, "faceto", c98);
		Perform(c97, "faceto", c104);
		Perform(c104, "faceto", c97);
		Perform(c96, "faceto", c103);
		Perform(c103, "faceto", c96);
		Perform(c95, "faceto", c102);
		Perform(c102, "faceto", c95);
		Perform(c101, "faceto", c96);
		Perform(c100, "faceto", c97);
		Perform(c99, "faceto", c97);
		q=32;
	}
	if(q==32)
	{
		SetTarget(0, "waypoint", 156);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=20)
		{
			ZMJAI_SendEvent(0, 18, 0, 1);
			Perform(c73,"say", "第二场【团队战】，武生请准备！");
            q=33;
			t=now+2;
		}
	}
	if(q==33&&now>t)
	{
		ChangeBehavior(c95,"follow", player);
		ChangeBehavior(c96,"follow", player);
		ChangeBehavior(c97,"follow", player);
		ChangeBehavior(c98,"follow", player);
		ChangeBehavior(c99,"follow", player);
		ChangeBehavior(c100,"follow", player);
		ChangeBehavior(c101,"follow", player);
		ChangeBehavior(c102,"follow", player);
		ChangeBehavior(c103,"follow", player);
		ChangeBehavior(c104,"follow", player);
		ChangeBehavior(c105,"follow", player);
		q=34;
	}
	if(q==34&&GetHP(c99)<=0&&GetHP(c100)<=0&&GetHP(c101)<=0&&GetHP(c102)<=0&&GetHP(c103)<=0&&GetHP(c104)<=0&&GetHP(c105)<=0)
	{
		ChangeBehavior(c95,"idle");
		ChangeBehavior(c96,"idle");
		ChangeBehavior(c97,"idle");
		ChangeBehavior(c98,"idle");
		q=35;
	}
	if(q==35)
	{
		PlayerPerform("use", 15);
		PlayerPerform("say", "多承诸兄弟吉言，愚兄定当全力以赴。");
		PlayerPerform("pause", 15);
		
		Perform(c98,"say", "不消多说，今科武状元非岳大哥莫属。");
		Perform(c98,"pause",12);
		
		Perform(c95,"say", "岳大哥，我等在场外等候，预祝你一举夺魁！");
		Perform(c95,"pause",9);
		
		Perform(c73,"say", "余人请退场，岳考生准备第三场【个人战】。");
		Perform(c73,"pause",3);
		Perform(c73,"say", "岳考生果然有大将之风！");
		Perform(c73,"pause",2);
		Perform(c95, "faceto", c73);
		Perform(c96, "faceto", c73);
		Perform(c97, "faceto", c73);
		Perform(c98, "faceto", c73);
		q=36;
		t=now+12;
	}
	if(q==36&&now>t)
	{
		RemoveNPC(c95);
		RemoveNPC(c96);
		RemoveNPC(c97);
		RemoveNPC(c98);
		RemoveNPC(c99);
		RemoveNPC(c100);
		RemoveNPC(c101);
		RemoveNPC(c102);
		RemoveNPC(c103);
		RemoveNPC(c104);
		RemoveNPC(c105);
		q=37;
		t=now+2;
		Save("Level\sa05.sav",3);
	}
	if(q==37&&now>t)
	{
		ZMJAI_SendEvent(0, 18, 0, 1);
		ZMJAI_MoveLocate(-50,1000,-300);

		AddNPC("7-106");
		q=38;
	}
	if(q==38&&c106>=0)
	{
		PlayerPerform("say", "柴桂！如今你自降尊位，已跟岳某一般身为武举，焉敢自称本王？");
		PlayerPerform("pause", 3);

		Perform(c106,"use",43);
		Perform(c106,"use",33);		
		Perform(c106,"say", "好狗头！看本王的刀罢！");
		Perform(c106,"pause",6);
		Perform(c106,"say", "岳飞！本王原爱你之才，怎奈你如此不识抬举！");
		q=39;
		wqpd=1;
		wqt=now+10;
	}

	if (wqpd==1 && now>wqt)
	{
		if (GetWeaponType(player)==5||GetWeaponType(player)==7||GetWeaponType(player)==4)
		{
			PlayerPerform("say", "（挥动重武器会使我仅存的内力更快的消耗……）");
			PlayerPerform("pause", 3);
			PlayerPerform("say", "（可恶…经过前期的战斗，我现已无多少内力……）");
			PlayerPerform("use", 38);
			PlayerPerform("use", 38);

			Perform(c106,"use",29);
			wqpd = 2;		
			wqt=now+2;
		}
	}
	if (wqpd==2 && now>wqt)
	{
		wqpd = 1;	
		wqt=now+27;	
	}

	if(q==39&&GetHP(c106)<=1500)
	{
		Perform(c106,"guard", 15);
		Say(c106, "呃啊~！岳飞！你好大的胆子！");
		ChangeBehavior(c106,"idle");
		
		PlayerPerform("block", 1);
		q=40;
		t=now+3;
		Save("Level\sa05.sav",0);
	}
	if(q==40&&now>t)
	{
		v=2;
	}
	
	
	
	if(qwg==1)
	{
		SetTarget(0, "waypoint", 49);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=80)
		{
			Perform(c33,"say", "是……岳大哥随我来。");
		    Perform(c33,"pause",12);
			Perform(c33,"say", "俺劝不住，只得偷隙出来找你。");
		    Perform(c33,"pause",3);
			Perform(c33,"say", "如果比输了，就乖乖出城去。");
		    Perform(c33,"pause",3);
			Perform(c33,"say", "那二人哂笑不已，牛兄弟便约他们去小校场比试。");
		    Perform(c33,"pause",3);
			Perform(c33,"say", "牛兄弟听了不忿，说‘武状元是俺岳大哥的’。");
		    Perform(c33,"pause",3);
			Perform(c33,"say", "恰巧酒肆中有二人，言道要抢了今科武状元。");
		    Perform(c33,"pause",3);
			Perform(c33,"say", "不曾想牛兄弟贪杯，多吃了些。");
		    Perform(c33,"pause",3);
			Perform(c33,"say", "早间牛兄弟来找俺，说酒虫勾人，要俺陪他吃两盅去。");
		    Perform(c33,"pause",6);
			Perform(c33,"say", "岳……岳大哥，兄弟该死……");
		    Perform(c33,"pause",3);
			
			PlayerPerform("block", 0);
			PlayerPerform("pause", 3);
			PlayerPerform("say", "他们在何处，还不快带我去！");
		    PlayerPerform("pause", 3);
			PlayerPerform("say", "胡闹！那武状元乃是朝廷选拔人才之举，岂是能私下哄抢的！");
		    PlayerPerform("pause", 30);
			PlayerPerform("say", "发生何事？");
		    PlayerPerform("pause", 6);
			PlayerPerform("say", "王兄弟，你怎地独自一人在此？牛兄弟何在？");
			Perform(c33, "faceto", player);
			PlayerPerform("block", 1);
			qwg=2;
			twg=now+33;
		}
	}
	if(qwg==2&&now>twg)
	{
		SetTarget(0, "waypoint", 155);
		ChangeBehavior(c33, "attacktarget", 0);
		qwg=3;
		
	}	
	
	if(qwg==3)
	{
		AddNPC("7-66a");
		AddNPC("7-67a");
		AddNPC("7-68");
		qwg=4;
	}
	if(qwg==4)
	{
		SetTarget(0, "waypoint", 146);
		SetTarget(1, "char", player);
		if (c66>=0&&c67>=0&&c68>=0&&Distance(0, 1) <=100)
		{
			ChangeBehavior(c66, "idle");
			ChangeBehavior(c67, "idle");
			ChangeBehavior(c68, "idle");
			qwg=5;
		}
	}
	if(qwg==5)
	{
		Perform(c66,"say", "闲话休说，过来着枪便是！");
		Perform(c66,"pause",12);
		
		Perform(c68,"say", "岳大哥你怎地向这两个贼子讨饶！");
		Perform(c68,"pause",6);
		Perform(c68,"say", "岳大哥快来！这两个贼厮鸟要抢了武状元！");
		Perform(c68,"pause",3);
		
		PlayerPerform("block", 0);
		PlayerPerform("say", "牛兄弟王兄弟，你们暂且退下，待愚兄与他们交涉。");
		PlayerPerform("pause", 6);
		PlayerPerform("say", "二位兄台，在下汤阴岳飞，我这兄弟鲁莽，冲撞了二位，还望高抬贵手！");
		PlayerPerform("pause", 6);
		PlayerPerform("say", "牛兄弟快住手！");
		Perform(c66, "faceto", player);
		Perform(c67, "faceto", player);
		Perform(c68, "faceto", player);
		Perform(c33, "faceto", c68);
		PlayerPerform("block", 1);
		qwg=6;
		twg=now+12;
	}
	if(qwg==6&&now>twg)
	{
		RemoveNPC(c68);
		qwg=7;
		twg=now+1;
	}
	if(qwg==7&&now>twg)
	{
		PlayerPerform("say", "【获胜后可获得【加气道具热力贴】。】");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "【分别将二人血量减至【200】以下，且自身血量不得低于【300】，即可获胜。】");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "【车轮战，连续挑战【杨再兴】与【罗延庆】。】");
		PlayerPerform("pause", 3);
		Perform(c66,"say", "岳飞，你只要【分别战胜我兄弟二人】，此事便即作罢。");
		qwg=8;
		twg=now+2;
	}
	if(qwg==8&&now>twg)
	{
		RemoveNPC(c66);
		RemoveNPC(c67);
		qwg=9;
		twg=now+1;
	}
	if(qwg==9&&now>twg)
	{
		AddNPC("7-66");
		qwg=10;
	}
	if(qwg==10&&c69>=0)
	{
		Perform(c69,"say", "出招吧！");
		qwg=11;
		qwg1=1;
	}
	if(qwg==11&&GetHP(c69)<=2000&&GetHP(c69)>0&&GetHP(player)>3000)
	{
		Perform(c69,"guard", 10);
		Perform(c69,"say", "好武艺！在下佩服！");
		qwg=12;
		qwg1=9;
		twg=now+2;
	}
	if(qwg==12&&now>twg)
	{
		RemoveNPC(c69);
		qwg=13;
		twg=now+1;
	}
	if(qwg==13&&now>twg)
	{
		AddNPC("7-67");
		qwg=14;
	}
	if(qwg==14&&c70>=0)
	{
		Perform(c70,"say", "换我来，看刀！");
		qwg=15;
		qwg2=1;
	}
	if(qwg==15&&GetHP(c70)<=2000&&GetHP(c70)>0&&GetHP(player)>3000)
	{
		Perform(c70,"guard", 10);
		Perform(c70,"say", "兄台果然厉害！");
		qwg=16;
		qwg2=9;
		twg=now+2;
	}
	if(qwg==16&&now>twg)
	{
		RemoveNPC(c70);
		qwg=17;
		twg=now+1;
	}
	if(qwg==17&&now>twg)
	{
		AddNPC("7-71");
		AddNPC("7-72");
		qwg=18;
	}
	if(qwg==18&&c71>=0&&c72>=0)
	{
		PlayerPerform("block", 0);
		PlayerPerform("pause", 9);
		PlayerPerform("say", "二位好汉且慢！请留尊姓大名！");
		PlayerPerform("pause", 3);
		
		Perform(c72,"say", "【湖广罗延庆】告辞。");
		Perform(c72,"pause",9);
		
		Perform(c71,"say", "我乃【山后杨再兴】。");
		Perform(c71,"pause",6);
		Perform(c71,"say", "兄台武艺惊人，今科武状元必定是你！在下兄弟二人就此别过！");
		Perform(c71, "faceto", player);
		Perform(c72, "faceto", player);
		PlayerPerform("block", 1);
		qwg=19;
		twg=now+9;
	}
	if(qwg==19&&now>twg)
	{
		RemoveNPC(c33);
		RemoveNPC(c71);
		RemoveNPC(c72);
		qwg=20;
		twg=now+1;
	}
	if(qwg==20&&now>twg)
	{
		PlayerPerform("use", 39);
		PlayerPerform("use", 15);
		PlayerPerform("use", 8);
		qwg=99;
	}
	if(qwg1==1&&GetHP(player)<=3000)
	{
		Perform(c69,"guard", 10);
		Perform(c69,"say", "这等武艺也来争夺武状元？简直可笑！");
		qwg1=2;
		qwg=99;
		twg1=now+2;
	}
	if(qwg1==2&&now>twg1)
	{
		RemoveNPC(c33);
		RemoveNPC(c69);
		qwg1=9;
	}
	if(qwg2==1&&GetHP(player)<=3000)
	{
		Perform(c70,"guard", 10);
		Perform(c70,"say", "阁下武艺不堪一击，还不赶快离去！");
		qwg2=2;
		qwg=99;
		twg2=now+2;
	}
	if(qwg2==2&&now>twg2)
	{
		RemoveNPC(c33);
		RemoveNPC(c69);
		qwg2=9;
	}
	
	if(qth==1)
	{
		SetTarget(0, "waypoint", 51);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=100)
		{
			Perform(c35,"say", "究其根本，原就是【九州商会】的不是。");
		    Perform(c35,"pause",3);
			Perform(c35,"say", "汤兄此言差矣，俗话说‘人命比天大’，【忠义镖局】为此损伤了三条人命。");
		    Perform(c35,"pause",10);
			
			Perform(c34,"say", "如此行径与强盗何异？张兄岂能不明实非？");
		    Perform(c34,"pause",3);
			Perform(c34,"say", "不思赔偿，却反告【九州商会】违约。");
		    Perform(c34,"pause",3);
			Perform(c34,"say", "那【忠义镖局】害得【九州商会】货物受损。");
			Perform(c34, "faceto", c35);
			
			qth=2;
			tth=now+13;
		}
	}
	if(qth==2&&now>tth)
	{
		Perform(c35,"say", "岳大哥以为如何？");
		Perform(c35,"pause",3);
		Perform(c35,"say", "货物被劫，趟子手丧命，都该是九州商会负责。");
		Perform(c35,"pause",3);
		Perform(c35,"say", "而是应当算作是九州商会与三名趟子手的雇佣关系。");
		Perform(c35,"pause",3);
		Perform(c35,"say", "那三名趟子手出镖，不算镖局的行为。");
		Perform(c35,"pause",3);
		Perform(c35,"say", "忠义镖局全程并不知情，因此责任与镖局并无干系。");
		Perform(c35,"pause",3);
		Perform(c35,"say", "九州商会的货物，并非是委托镖局，而是私下与三名趟子手达成的协议。");
		Perform(c35, "faceto",player);
		Perform(c35,"pause",3);
		Perform(c35,"say", "然而汤兄却还有最重要的一点没说。");
		Perform(c35, "faceto", c34 );
		Perform(c35,"pause",28);
		
		Perform(c34,"say", "而张兄却认为，忠义镖局不但不应赔偿货款，九州商会还该赔偿三名趟子手的丧葬费。");
		Perform(c34, "faceto", c35 );
		Perform(c34,"pause",3);
		Perform(c34,"say", "忠义镖局不但应当赔偿三名趟子手的丧葬费，还应全额赔偿九州商会的货款。");
		Perform(c34,"pause",3);
		Perform(c34,"say", "虽说忠义镖局也因此折损了三名趟子手，但此责任却与九州商会无关。");
		Perform(c34,"pause",3);
		Perform(c34,"say", "不料刚出城就被强人劫了镖，九州商会的货物损失殆尽。");
		Perform(c34,"pause",3);
		Perform(c34,"say", "委托【城西】的【忠义镖局】运输一批货物。");
		Perform(c34,"pause",3);
		Perform(c34,"say", "岳大哥来得正好，【城东】有一家【九州商会】……");
		Perform(c34,"pause",2);
		
		Perform(c34, "faceto", player);
	    Perform(c35, "faceto", player);
		
		Perform(c35,"pause",1);
		Perform(c34,"pause",1);
		PlayerPerform("say", "两位兄弟因何事争论？");
		PlayerPerform("block", 1);
		qth=3;
		tth=now+40;
	}
	if(qth==3&&now>tth)
	{
		PlayerPerform("block", 0);
		PlayerPerform("say", "【提示：若帮助【九州商会】，完成后可获得【生命上限+100】。】");
		PlayerPerform("pause", 2);
		PlayerPerform("say", "【提示：若帮助【忠义镖局】，完成后可获得【永久防御+25】。】");
		PlayerPerform("pause", 2);
		PlayerPerform("say", "【帮助【九州商会】，请攻击【汤怀】一次。】");
		PlayerPerform("pause", 2);
		PlayerPerform("say", "【帮助【忠义镖局】，请攻击【张显】一次。】");
		PlayerPerform("block", 1);
		qth=4;
		qth1=1;
		qth2=1;
	}
	if(qth2==1&&GetHP(c35)<10000)
	{
		PlayerPerform("say", "【请前往城西【忠义镖局】。】");
		PlayerPerform("say", "【请前往城西【忠义镖局】。】");
		AddNPC("7-51");
		AddNPC("7-52");
		AddNPC("7-56");
		AddNPC("7-57");
		AddNPC("7-58");
		qth2=2;
		qth1=99;
	}
	if(qth2==2&&c51>=0&&c52>=0&&c56>=0&&c57>=2&&c58>=0)
	{
		Perform(c51,"use",35);
		Perform(c52,"use",35);
		qth2=3;
	}
	if(qth2==3)
	{
		SetTarget(0, "waypoint", 84);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=100)
		{
			PlayerPerform("say", "【杀退强盗，不可让镖师殒命！】");
		    PlayerPerform("pause", 2);
			PlayerPerform("block", 0);
			PlayerPerform("say", "既然如此，看招！");
		    PlayerPerform("pause", 2);
			PlayerPerform("say", "住手！");
			PlayerPerform("block", 1);
			qth2=4;
		}
	}
	if(qth2==4&&GetHP(c56)<=0&&GetHP(c57)<=0&&GetHP(c58)>0)
	{
		Perform(c58,"pause",10);
		Perform(c58,"say", "在下有一不情之请，望英雄能前往【白马寺】协助我们总镖头，鄙镖局上下同感大恩！");
		Perform(c58,"pause",3);
		Perform(c58,"say", "幸有英雄出手，在下方才逃过一难。");
		Perform(c58,"pause",3);
		Perform(c58,"say", "不料总镖头刚走，便来了几名杀手强攻鄙镖局，他们自称是小梁王属下。");
		Perform(c58,"pause",3);
		Perform(c58,"say", "便嘱咐在下看守镖局，他独自一人追查去了。");
		Perform(c58,"pause",3);
		Perform(c58,"say", "鄙总镖头疑心他图谋不轨，不肯受他好处。");
		Perform(c58,"pause",3);
		Perform(c58,"say", "那小梁王入城两日，暗中拉拢了不少武行富商。");
		Perform(c58,"pause",3);
		Perform(c58,"say", "后来鄙镖局得到传信，那镖物原来正是小梁王所托。");
		Perform(c58,"pause",3);
		Perform(c58,"say", "所劫的镖物也不知去向。");
		Perform(c58,"pause",3);
		Perform(c58,"say", "鄙镖局总镖头出城查探，却发现这伙强人已然被人杀死。");
		Perform(c58,"pause",3);
		Perform(c58,"say", "刚出城便被一伙强人劫了去，还无端丢了性命。");
		Perform(c58,"pause",3);
		Perform(c58,"say", "英雄有所不知，日前鄙镖局有三名趟子手因贪图钱财，私接了一趟镖。");
		Perform(c58,"pause",6);
		Perform(c58,"say", "并不是。这伙人是小梁王手下的杀手。");
		Perform(c58,"pause",6);
		Perform(c58,"say", "多谢英雄出手相助！");
		Perform(c58,"pause",1);
		Perform(c58,"faceto",player);
		
		PlayerPerform("say", "！！小梁王？");
		PlayerPerform("pause", 6);
		PlayerPerform("say", "这些人便是劫镖的匪徒么？");
		PlayerPerform("pause", 4);
		PlayerPerform("block", 1);
		qth2=5;
		tth2=now+45;
	}
	if(qth2==5&&now>tth2)
	{
		PlayerPerform("block", 0);
		PlayerPerform("say", "【提示：【白马寺】在【镖局后面】。】");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "阁下勿须挂心，帮人帮到底，岳某这便去【白马寺】。");
		PlayerPerform("block", 1);
		qth2=6;
		tth2=now+3;
	}
	if(qth2==6&&now>tth2)
	{
		RemoveNPC(c51);
		RemoveNPC(c52);
		RemoveNPC(c56);
		RemoveNPC(c57);
		RemoveNPC(c58);
		qth2=7;
		tth2=now+1;
	}
	if(qth2==7&&now>tth2)
	{
		AddNPC("7-59");
		AddNPC("7-60");
		AddNPC("7-61");
		AddNPC("7-62");
		AddNPC("7-63");
		qth2=8;
	}
	if(qth2==8)
	{
		SetTarget(0, "waypoint", 135);
		SetTarget(1, "char", player);
		if (c59>=0&&c60>=0&&c61>=0&&c62>=0&&c63>=0&&Distance(0, 1) <=200)
		{
			PlayerPerform("say", "【杀退敌人，不可让赵镖头殒命！】");
		    PlayerPerform("pause", 3);
		    PlayerPerform("say", "奸贼！休得行凶！。");
			qth2=9;
		}
	}
	if(qth2==9&&GetHP(c60)<=0&&GetHP(c61)<=0&&GetHP(c62)<=0&&GetHP(c63)<=0&&GetHP(c59)>0)
	{
		Perform(c59,"say", "这批镖果然是……");
		Perform(c59,"pause",6);
		Perform(c59,"say", "多谢壮士出手相助！");
		Perform(c59,"faceto",player);
		
		PlayerPerform("say", "赵总镖头不必拘礼，事情原委岳某已知悉，总镖头可查到些什么？");
		PlayerPerform("pause", 3);
		PlayerPerform("block", 1);
		qth2=10;
		tth2=now+7;
	}
	if(qth2==10&&now>tth2)
	{
		PlayerPerform("say", "！！什么人！给我出来！");
		PlayerPerform("pause", 3);
		
		Perform(c59,"use",35);
		Perform(c59,"pause",1);
		Perform(c59,"say", "啊~！奸贼……！！");
		qth2=11;
		tth2=now+4;
	}
	if(qth2==11&&now>tth2)
	{
		AddNPC("7-64");
		qth2=12;
	}
	if(qth2==12&&c64>=0)
	{
		Perform(c64,"say", "休说废话！有胆子便跟上来！");
		Perform(c64,"pause",6);
		Perform(c64,"say", "岳飞，你好大的能耐！你管的闲事还不够多么！");
		Perform(c64,"pause",3);
		Perform(c64,"say", "我乃‘剑儒’高先生座下【七曜】之一，【玉衡】秋广寒。");
	    Perform(c64,"pause",1);
		
		PlayerPerform("block", 0);
		PlayerPerform("pause", 4);
		PlayerPerform("say", "（果然是小梁王的人！）未必便是闲事！你等倒行逆施，人人得而诛之！");
		PlayerPerform("pause", 6);
		PlayerPerform("block", 1);
		qth2=13;
		tth2=now+10;
	}
	if(qth2==13&&now>tth2)
	{
		SetTarget(0, "waypoint", 134);
		ChangeBehavior(c64, "attacktarget", 0);
		qth2=14;
	}
	if(qth2==14)
	{
		RemoveNPC(c59);
		RemoveNPC(c60);
		RemoveNPC(c61);
		RemoveNPC(c62);
		RemoveNPC(c63);
		qth2=15;
	}
	if(qth2==15&&GetHP(c64)<=1500)
	{
		Perform(c64,"say", "岳飞，你对女人心软，可非大丈夫所为，哈哈哈哈！");
		Perform(c64,"pause", 9);
		Perform(c64,"say", "岳飞，我们自家的事与你何干？你莫要欺人太甚！");
		Perform(c64,"pause", 3);
		Perform(c64,"say", "他二人办事不力，难道也不该死么！");
		Perform(c64,"pause", 3);
		Perform(c64,"say", "而九州商会的两个会长，原本就是我们的人。");
		Perform(c64,"pause", 3);
		Perform(c64,"say", "他们不思追回，还有闲心找九州商会麻烦，难道不该死么！");
		Perform(c64,"pause", 3);
		Perform(c64,"say", "忠义镖局一帮无能之辈，货物被别人劫走……");
		Perform(c64,"pause", 3);
		Perform(c64,"say", "九州商会委托忠义镖局运送的货物，原本就是我们的，何来劫镖一说！");
		Perform(c64,"pause", 3);
		Perform(c64,"say", "你待怎样！");
		Perform(c64,"faceto", player);
		Perform(c64,"pause", 3);
		
		PlayerPerform("block", 0);
		PlayerPerform("pause", 3);
		PlayerPerform("say", "（照此说，劫镖的却是另有其人……）");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "（原来九州商会的正副会长也是小梁王的人！）");
		PlayerPerform("pause", 21);
		PlayerPerform("say", "你们为何要劫镖杀人！");
		PlayerPerform("pause", 6);
		PlayerPerform("say", "住手！岳某看你是女流之辈，不忍伤你性命，还不识趣么！");
		PlayerPerform("block", 1);
		qth2=16;
		tth2=now+28;
	}
	if(qth2==16&&now>tth2)
	{
		RemoveNPC(c64);
		qth2=17;
		tth2=now+2;
	}
	if(qth2==17&&now>tth2)
	{
		AddNPC("7-65");
		qth2=18;
		tth2=now+1;
	}
	if(qth2==18&&c65>=0&&now>tth2)
	{
		Perform(c65,"say", "小小薄礼，还望英雄笑纳！");
		Perform(c65,"pause",3);
		Perform(c65,"say", "英雄义薄云天，为我们查清了此事，在下感激不尽。");
		Perform(c65,"pause",3);
		Perform(c65,"say", "总镖头他……唉……");
		Perform(c65,"pause",3);
		Perform(c65,"say", "英雄，适才的事我都听到了。");
		Perform(c65,"faceto", player);
		qth2=19;
		tth2=now+9;
	}
	if(qth2==19&&now>tth2)
	{
		PlayerPerform("use", 15);
		PlayerPerform("use", 44);
		qth2=20;
		tth2=now+1;
	}
	if(qth2==20&&now>tth2)
	{
		RemoveNPC(c65);
		RemoveNPC(c34);
		RemoveNPC(c35);
		qth2=99;
	}
	
	
	if(qth1==1&&GetHP(c34)<10000)
	{
		PlayerPerform("say", "【请前往城东【九州商会】。】");
		PlayerPerform("say", "【请前往城东【九州商会】。】");
		AddNPC("7-46");
		AddNPC("7-47");
		AddNPC("7-48");
		AddNPC("7-49");
		qth1=2;
		qth2=99;
	}
	if(qth1==2)
	{
		SetTarget(0, "waypoint", 79);
		SetTarget(1, "char", player);
		if (c46>=0&&c47>=0&&c48>=0&&c49>=0&&Distance(0, 1) <=100)
		{
			Perform(c46,"say", "忠义镖局弄丢了咱们的货，又害了会长性命，此仇非报不可！");
		    Perform(c46,"pause",6);
			
			Perform(c48,"say", "没错！决不能轻饶了忠义镖局！");
		    Perform(c48,"pause",3);
			
			Perform(c47,"say", "一定要为会长报仇！");
			Perform(c46, "faceto", c48);
			Perform(c47, "faceto", c46);
			Perform(c48, "faceto", c46);
			Perform(c49, "faceto", c46);
			
			PlayerPerform("block", 0);
			PlayerPerform("pause", 8);
			PlayerPerform("block", 1);
			qth1=3;
			tth1=now+6;
		}
	}
	if(qth1==3)
	{
		SetTarget(0, "waypoint", 75);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=200)
		{
			Perform(c46,"say", "你是何人？");
		    Perform(c46,"pause",3);
			
			Perform(c46, "faceto", player);
	        Perform(c47, "faceto", player);
			Perform(c48, "faceto", player);
	        Perform(c49, "faceto", player);
			PlayerPerform("say", "诸位！贵会的会长莫非也遭到了不测？");
			PlayerPerform("block", 1);
			qth1=4;
			tth1=now+6;
		}
	}
	if(qth1==4&&now>tth1)
	{
		Perform(c46,"say", "你们先退下，我来会会这小子！");
		Perform(c46,"pause",3);
		Perform(c46,"say", "好！我就答应你，看你能有多大能耐！");
		Perform(c46,"pause",3);
		Perform(c46,"say", "......");
		Perform(c46,"pause",18);
		Perform(c46,"say", "小子！你仗着何人的势来？想要调停，先赢过我！");
		Perform(c46,"pause",7);
		Perform(c46,"say", "这番仇怨，单凭你这小子就想居中调停？");
		Perform(c46,"pause",3);
		Perform(c46,"say", "不但不愿赔偿，还暗中雇佣杀手，害了我们会长的性命。");
		Perform(c46,"pause",3);
		Perform(c46,"say", "忠义镖局弄丢我们九州商会的货物。");
		Perform(c46,"pause",3);
		Perform(c46,"say", "调停？哼！真是笑话！");
		Perform(c46,"pause",3);
		
		PlayerPerform("block", 0);
		PlayerPerform("pause", 3);
		PlayerPerform("say", "只要在下侥幸赢过尊驾，是否便可由在下调停此事？");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "（眼下只能先稳住九州商会，再去忠义镖局询问。）");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "（九州商会的会长也突遭不测，这中间莫非……）");
		PlayerPerform("pause", 9);
		PlayerPerform("say", "在下纵然人微言轻，却也愿做和事佬，解除双方的误会。");
		PlayerPerform("pause", 17);
		PlayerPerform("say", "在下岳飞，正是为调停贵会与忠义镖局的纠纷而来。");
		PlayerPerform("block", 1);
		qth1=5;
		tth1=now+35;
	}
	if(qth1==5&&now>tth1)
	{
		RemoveNPC(c47);
		RemoveNPC(c48);
		RemoveNPC(c49);
		qth1=6;
		tth1=now+3;
	}
	if(qth1==6&&now>tth1)
	{
		ChangeBehavior(c46,"follow",player);
		qth1=7;
	}
	if(qth1==7&&GetHP(c46)<2000)
	{
		PlayerPerform("block", 0);
		PlayerPerform("say", "（看来这事并不简单，待我喘息片刻，【去忠义镖局看看】。）");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "（竟能悄无声息中同时发出两枚毒镖！）");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "（什么人如此厉害！）");
		PlayerPerform("pause", 3);
		PlayerPerform("block", 1);
		
		Say(c46, "啊！！是……是你！！");
		PlayerPerform("use", 18);
		Perform(c46,"use",35);
		qth1=8;
		tth1=now+10;
	}
	if(qth1==8&&now>tth1)
	{
		PlayerPerform("say", "【请前往城西【忠义镖局】。】");
		PlayerPerform("pause", 2);
		AddNPC("7-50");
		AddNPC("7-51");
		AddNPC("7-52");
		AddNPC("7-53");
		tth1=now+1;
		qth1=9;
	}
	if(qth1==9&&c50>=0&&c51>=0&&c52>=0&&c53>=0&&now>tth1)
	{
		Perform(c50,"use",35);
		Perform(c51,"use",35);
		Perform(c52,"use",35);
		qth1=10;
	}
	if(qth1==10)
	{
		SetTarget(0, "waypoint", 84);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=100)
		{
			Perform(c53,"use",45);
			Perform(c53,"say", "......");
			Perform(c53,"pause",1);
			
			PlayerPerform("say", "啊！大胆凶徒！");
			PlayerPerform("block", 1);
			Perform(c53, "faceto", player);
			qth1=11;
			tth1=now+3;
		}
	}
	if(qth1==11&&now>tth1)
	{
		SetTarget(0, "waypoint", 121);
		ChangeBehavior(c53, "attacktarget", 0);
		qth1=12;
	}
	if(qth1==12)
	{
		PlayerPerform("block", 0);
		PlayerPerform("say", "【追踪神秘杀手,不要击杀！】");
		PlayerPerform("block", 1);
		qth1=13;
	}
	if(qth1==13)
	{
		SetTarget(0, "waypoint", 121);
		SetTarget(1, "char", c53);
		if (Distance(0, 1) <=150)
		{
			AddNPC("7-54");
			qth1=14;
		}
	}
	if(qth1==14&&c54>=0)
	{
		Perform(c54,"say", "我知道了，你先退下。");
		Perform(c54,"pause",2);
		Perform(c54, "faceto", c53);
		Perform(c53, "faceto", c54);
		qth1=15;
		tth1=now+2;
	}
	if(qth1==15&&now>tth1)
	{
		RemoveNPC(c46);
		RemoveNPC(c50);
		RemoveNPC(c51);
		RemoveNPC(c52);
		RemoveNPC(c53);
		qth1=16;
		tth1=now+1;
	}
	if(qth1==16&&now>tth1)
	{
		SetTarget(0, "waypoint", 121);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=150)
		{
		    Perform(c54,"say", "哼，有些事你不知道更好！看剑！");
		    Perform(c54,"pause",18);
		    Perform(c54,"say", "你管的闲事还不够多么！");
		    Perform(c54,"pause",3);
		    Perform(c54,"say", "我乃‘剑儒’高先生座下【七曜】之一，【玉衡】秋广寒。");
		    Perform(c54,"pause",3);
		    Perform(c54,"say", "岳飞，哼，你好大能耐。");
		    Perform(c54,"pause",3);
		    Perform(c54,"faceto", player);
		
		    PlayerPerform("block", 0);
		    PlayerPerform("pause", 3);
		    PlayerPerform("say", "如此丧尽天良，焉敢大言不惭！");
		    PlayerPerform("pause", 3);
		    PlayerPerform("say", "又杀害货主九州商会的正副会长，");
		    PlayerPerform("pause", 3);
		    PlayerPerform("say", "未必便是闲事！你先是劫镖杀害忠义镖局的趟子手……");
		    PlayerPerform("pause", 3);
		    PlayerPerform("say", "（又是小梁王的人！）");
		    PlayerPerform("pause", 15);
		    PlayerPerform("say", "你们是什么人！为何杀害九州商会与忠义镖局的人？");
		    PlayerPerform("block", 1);
		    qth1=17;
		}
	}
	if(qth1==17&&GetHP(c54)<=1500)
	{
		Perform(c54,"pause", 10);
		Perform(c54,"say", "岳飞，你对女人心软，可非大丈夫所为，哈哈哈哈！");
		Perform(c54,"pause", 9);
		Perform(c54,"say", "岳飞，我们自家的事与你何干？你莫要欺人太甚！");
		Perform(c54,"pause", 3);
		Perform(c54,"say", "他二人办事不力，难道也不该死么！");
		Perform(c54,"pause", 3);
		Perform(c54,"say", "而九州商会的两个会长，原本就是我们的人。");
		Perform(c54,"pause", 3);
		Perform(c54,"say", "他们不思追回，还有闲心找九州商会麻烦，难道不该死么！");
		Perform(c54,"pause", 3);
		Perform(c54,"say", "忠义镖局一帮无能之辈，货物被别人劫走……");
		Perform(c54,"pause", 3);
		Perform(c54,"say", "九州商会委托忠义镖局运送的货物，原本就是我们的，何来劫镖一说！");
		Perform(c54,"pause", 3);
		Perform(c54,"say", "你待怎样！");
		Perform(c54,"faceto", player);
		Perform(c54,"pause", 3);
		
		PlayerPerform("block", 0);
		PlayerPerform("pause", 3);
		PlayerPerform("say", "（照此说，劫镖的却是另有其人……）");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "（原来九州商会的正副会长也是小梁王的人！）");
		PlayerPerform("pause", 21);
		PlayerPerform("say", "你们为何要劫镖杀人！");
		PlayerPerform("pause", 6);
		PlayerPerform("say", "住手！岳某看你是女流之辈，不忍伤你性命，还不识趣么！");
		PlayerPerform("block", 1);
		
		qth1=18;
		tth1=now+28;
	}
	if(qth1==18&&now>tth1)
	{
		RemoveNPC(c54);
		qth1=19;
		tth1=now+2;
	}
	if(qth1==19&&now>tth1)
	{
		AddNPC("7-55");
		qth1=20;
		tth1=now+1;
	}
	if(qth1==20&&c55>=0&&now>tth1)
	{
		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,"faceto", player);
		qth1=21;
		tth1=now+11;
	}
	if(qth1==21&&now>tth1)
	{
		PlayerPerform("use", 15);
		PlayerPerform("use", 2);
		qth1=22;
		tth1=now+2;
	}
	if(qth1==22&&now>tth1)
	{
		RemoveNPC(c55);
		RemoveNPC(c34);
		RemoveNPC(c35);
		qth1=99;
	}
	
	
	if(qqp1==1&&now>tqp1)
	{
		SetTarget(0, "waypoint", 74);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=150)
		{
			Perform(c45,"say", "武考尚未开始，考生稍后再来。");
			qqp1=1;
			tqp1=now+5;
		}
	}
	if(qqp2==1&&c32<0&&c33<0&&c34<0&&c35<0)
	{
		qqp2=2;
		qqp1=9;
	}
	if(qqp2==2)
	{
		SetTarget(0, "waypoint", 74);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=150)
		{
			Perform(c45,"say", "武考开始，考生请入场！");
		    Perform(c45,"pause",2);
			Perform(c45,"say", "武考开始，考生请入场！");
			qqp2=3;
			tqp2=now+3;
		}
	}
	if(qqp2==3&&now>tqp2)
	{
		RemoveNPC(c45);
		qqp2=9;
	}
	
	
	
	if(qzy==1)
	{
		SetTarget(0, "waypoint", 48);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=100)
		{
			Perform(c32,"say", "太好了！岳公子请跟我来。");
		    Perform(c32,"pause",5);
			Perform(c32,"say", "也是刚认识的朋友，算不得故交。");
		    Perform(c32,"pause",6);
			Perform(c32,"say", "知言有一位朋友，近日遇上一些难处，岳公子可否施以援手？");
		    Perform(c32,"pause",3);
			Perform(c32,"say", "岳公子，你来得正好。");
			Perform(c32, "faceto", player);
		    Perform(c32,"pause",1);
			
			
			PlayerPerform("block", 0);
			PlayerPerform("say", "既是朋友，岳某义不容辞。");
		    PlayerPerform("pause", 6);
			PlayerPerform("say", "岳某只道李姑娘初次进京城，不曾想原来却有故交在此。");
		    PlayerPerform("pause", 9);
			PlayerPerform("say", "李姑娘，你玩得可还好？");
			PlayerPerform("block", 1);
			qzy=2;
			tzy=now+14;
		}
	}
	if(qzy==2&&now>tzy)
	{
		AddNPC("7-36");
		qzy=3;
	}
	if(qzy==3)
	{
		SetTarget(0, "waypoint", 53);
		ChangeBehavior(c32, "attacktarget", 0);
		qzy=4;
	}
	if(qzy==4)
	{
		SetTarget(0, "char", player);
		SetTarget(1, "waypoint", 54);
		if (c36>=0&&Distance(0, 1) <=150)
		{
			Perform(c36,"say", "全仗二位替在下主持公道！请随我来。");
		    Perform(c36,"pause",6);
			Perform(c36,"say", "在下确有此思虑。");
		    Perform(c36,"pause",6);
			Perform(c36,"say", "自然是看过，药确为假药，可绝不是在下所配。");
		    Perform(c36,"pause",6);
			Perform(c36,"say", "扬言在下今日之内若不能再配一副药，便将宝剑抵给他。");
		    Perform(c36,"pause",3);
			Perform(c36,"say", "硬说在下卖给他的是假药，不由分说，便将在下悬挂在中堂的宝剑夺走。");
		    Perform(c36,"pause",3);
			Perform(c36,"say", "可孰料一大早当铺朝奉取走药后，还不到半个时辰，那申掌柜便找上门来。");
		    Perform(c36,"pause",3);
			Perform(c36,"say", "只因当时尚缺一味药，于是约定今日来取。");
		    Perform(c36,"pause",3);
			Perform(c36,"say", "几日前，申掌柜向在下订购了一副名贵药材。");
		    Perform(c36,"pause",3);
			Perform(c36,"say", "倒也不是，乃是城中【万金当铺】的申掌柜。");
		    Perform(c36,"pause",6);
			Perform(c36,"say", "然而传至三畏手中，不料却被小人哄赚了去，在下实在愧对先祖！");
		    Perform(c36,"pause",3);
			Perform(c36,"say", "先祖曾留下一柄宝剑，三畏家中代代相传。");
		    Perform(c36,"pause",3);
			Perform(c36,"say", "不瞒二位，三畏祖上原也系世代武职，如今却已三代在汴京悬壶。");
		    Perform(c36,"pause",3);
			Perform(c36,"say", "三畏先行谢过岳公子李姑娘。");
			Perform(c36, "faceto", player);
			Perform(c36,"pause",6);
			
			Perform(c32,"say", "既然如此，咱们不妨找他当面对质。");
		    Perform(c32,"pause",53);
		    Perform(c32,"say", "你可将难处说出来，我们定会帮你妥善处理。");
		    Perform(c32,"pause",3);
		    Perform(c32,"say", "周先生，这位是岳公子，是我的......是一位英雄豪杰。");
		    Perform(c36, "faceto", c32);
		    Perform(c32, "faceto", c36);
			
			PlayerPerform("block", 0);
			PlayerPerform("pause", 6);
			PlayerPerform("say", "所以你怀疑，是他为骗取宝剑而故意调包？");
		    PlayerPerform("pause", 9);
			PlayerPerform("say", "他说是假药，周世兄可曾看过？");
		    PlayerPerform("pause", 27);
			PlayerPerform("say", "那哄赚周世兄宝剑的，可是一方恶霸？");
		    PlayerPerform("pause", 21);
			PlayerPerform("block", 1);
			qzy=5;
			tzy=now+48;
		}
	}
	if(qzy==5&&now>tzy)
	{
		AddNPC("7-37");
		qzy=6;
		
	}
	if(qzy==6)
	{
		SetTarget(0, "waypoint", 62);
		ChangeBehavior(c36, "attacktarget", 0);
		qzy=7;
	}
	if(qzy==7)
	{
		SetTarget(0, "waypoint", 63);
		ChangeBehavior(c32, "attacktarget", 0);
		qzy=8;
	}
	if(qzy==8)
	{
		SetTarget(0, "char", player);
		SetTarget(1, "waypoint", 63);
		if (c37>=0&&Distance(0, 1) <=100)
		{
			qzy=9;
		}
	}
	if(qzy==9)
	{
		Perform(c36,"say", "既如此，可请朝奉出来对质。");
		Perform(c36,"pause",6);
		Perform(c36,"say", "然则那药并非在下所配，申掌柜执意夺走在下家传宝剑，大是不妥。");
		Perform(c36,"pause",3);
		
		Perform(c37,"say", "小女娃儿，这话可不能乱说啊。我与周掌柜是有字据为证的。诸位请吧。");
		Perform(c37,"pause",6);
		Perform(c37,"say", "朝奉……朝奉刚刚出城去了。");
		Perform(c37,"pause",6);
		Perform(c37,"say", "朝奉取回来便是这样，短短几步之遥，莫非你还认为他调包了不成？");
		Perform(c37,"pause",6);
		Perform(c37,"say", "还有何话可说？药你也看过，确为假药。");
		
		Perform(c32,"say", "哪有这么巧的事！定是你想故意侵吞周先生的宝剑！");
		Perform(c32,"pause",18);
		
		Perform(c36, "faceto", c37);
		Perform(c32, "faceto", c37);
		Perform(c37, "faceto", c36);
		PlayerPerform("block", 0);
		PlayerPerform("pause", 18);
		PlayerPerform("block", 1);
		qzy=10;
		tzy=now+17;
	}
	if(qzy==10&&now>tzy)
	{
		SetTarget(0, "waypoint", 65);
		ChangeBehavior(c37, "attacktarget", 0);
		qzy=11;
		tzy=now+2;
	}
	if(qzy==11&&now>tzy)
	{
		RemoveNPC(c37);
		qzy=12;
	}
	if(qzy==12)
	{
		PlayerPerform("say", "果然解铃还须系铃人，要知真相，须得找到那朝奉。");
		qzy=13;
		tzy=now+2;
	}
	if(qzy==13&&now>tzy)
	{
		AddNPC("7-38");
		qzy=14;
	}
	if(qzy==14&&c38>=0)
	{
		PlayerPerform("say", "【提示：前往西门外的小酒桌。】");
		PlayerPerform("say", "【提示：前往西门外的小酒桌。】");
		PlayerPerform("pause", 3);
		PlayerPerform("block",0);
		PlayerPerform("say", "李姑娘，你们在此守着，我去看看。");
		PlayerPerform("pause", 15);
		PlayerPerform("say", "他因何摔下悬崖？是你将他推下去的是不是！");
		PlayerPerform("pause", 6);
		PlayerPerform("say", "你说的‘蒋师哥’，可是当铺的朝奉？他现在何处？");
		PlayerPerform("pause", 3);
		PlayerPerform("block", 1);
		
		
		Perform(c32,"say", "岳公子，那酒有问题！");
		Perform(c32,"pause",22);
		
		Perform(c38,"say", "他方才吃了半杯，就大叫着摔下去了。");
		Perform(c38,"pause",3);
		Perform(c38,"say", "不……不是啊！小的只是奉掌柜的之命陪蒋师哥吃几盅酒。");
		Perform(c38,"pause",6);
		Perform(c38,"say", "正……正是朝奉，他……就在【西门外小酒桌旁的悬崖下】。");
		Perform(c38,"pause",6);
		Perform(c38,"say", "不好了掌柜的！蒋师哥摔下悬崖啦！");
		
		Perform(c36, "faceto", c38);
		Perform(c32, "faceto", c38);
		Perform(c38, "faceto", c32);
		qzy=15;
	}
	if(qzy==15)
	{
		SetTarget(0, "waypoint", 69);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=400)
		{
			PlayerPerform("block", 0);
			PlayerPerform("say", "【靠近酒桌调查】");
			PlayerPerform("pause", 2);
			PlayerPerform("say", "（那二人应当便是在此处吃酒，近前去看看。）");
			PlayerPerform("block", 1);
			qzy=16;
		}
	}
	if(qzy==16)
	{
		SetTarget(0, "waypoint", 69);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=50)
		{
			PlayerPerform("say", "喂！蒋朝奉，你可在下面？");
			qzy=17;
			tzy=now+1;
		}
	}
	if(qzy==17&&now>tzy)
	{
		AddNPC("7-39");
		qzy=18;
	}
	if(qzy==18&&c39>=0)
	{
		Perform(c39,"use",14);
		Perform(c39,"pause",1);
		Perform(c39,"say", "救……救命……我在下面……");
		Perform(c39,"pause",1);
		
		PlayerPerform("say", "（此人果然是中了毒！）");
		PlayerPerform("pause", 3);
		qzy=19;
		tzy=now+2;
	}
	if(qzy==19&&now>tzy)
	{
		AddNPC("7-40");
		AddNPC("7-41");
		AddNPC("7-42");
		qzy=20;
		tzy=now+1;
	}
	if(qzy==20&&c40>=0&&c41>=0&&c42>=0&&now>tzy)
	{
		Perform(c40,"pause",2);
		Perform(c41,"pause",2);
		Perform(c42,"pause",2);
		Perform(c40,"say", "好小子！偏要来多管闲事！把这小子给我抓回去！");
		
		PlayerPerform("say", "【快速解决敌人，不能让朝奉毒发身亡，否则任务失败！】");
		PlayerPerform("pause", 1);
		PlayerPerform("say", "【快速解决敌人，不能让朝奉毒发身亡，否则任务失败！】");
		PlayerPerform("pause", 3);
		qzy=21;
		jcf=1;
	}
	if(qzy==21&&GetHP(c40)<=0&&GetHP(c41)<=0&&GetHP(c42)<=0)
	{
		Perform(c39,"say", "多……多谢英雄救命……");
		Perform(c39,"use",15);
		Perform(c39,"pause",1);
		Perform(c39,"use",27);
		
		PlayerPerform("block", 0);
		PlayerPerform("say", "【提示：返回【万金当铺】。】");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "（这申掌柜前有巧取豪夺，后有杀人灭口，必将他送官法办！）");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "我先救你上来。");
		PlayerPerform("pause", 4);
		PlayerPerform("block", 1);
		qzy=22;
		jcf=9;
		tzy=now+3;
	}
	if(qzy==22&&now>tzy)
	{
		RemoveNPC(c38);
		RemoveNPC(c39);
		RemoveNPC(c40);
		RemoveNPC(c41);
		RemoveNPC(c42);
		qzy=23;
		tzy=now+1;
	}
	if(qzy==23&&now>tzy)
	{
		AddNPC("7-44");
		AddNPC("7-43");
		qzy=24;
	}
	if(qzy==24)
	{
		SetTarget(0, "waypoint", 68);
		SetTarget(1, "char", player);
		if (c43>=0&&c44>=0&&Distance(0, 1) <=50)
		{
			Perform(c43,"say", "非是小人隐瞒，小人只知那柄宝剑在这当铺院内，却不知被藏于何处。");
			Perform(c43,"pause",6);
			Perform(c43,"say", "今日若非诸位英雄搭救，小人恐怕性命休矣！");
			Perform(c43,"pause",3);
			Perform(c43,"say", "小人为他做了这昧良心的事，他却要毒杀小人！");
			Perform(c43,"pause",3);
			Perform(c43,"say", "他命我调包药材，根本就是为了周掌柜的家传宝剑。");
			Perform(c43,"pause",3);
			Perform(c43,"say", "小人真是有眼无珠，跟了这样的掌柜。");
			
			Perform(c32,"say", "旁的事暂且不论，快将周先生的宝剑交出来。");
			Perform(c32,"pause",15);
			Perform(c43, "faceto", c32);
			
			PlayerPerform("say", "【在当铺内找到宝剑。】");
		    PlayerPerform("pause", 2);
			PlayerPerform("block", 0);
			PlayerPerform("say", "既如此，我来搜上一搜便是。");
		    PlayerPerform("pause", 22);
		    PlayerPerform("block", 1);
			qzy=25;
		}
	}
	if(qzy==25)
	{
		SetTarget(0, "waypoint", 66);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=30)
		{
			PlayerPerform("block", 0);
			PlayerPerform("say", "【攻击石像，取回宝剑。】");
		    PlayerPerform("pause", 2);
			PlayerPerform("say", "这申掌柜当真奸诈！");
		    PlayerPerform("block", 1);
			Perform(c44, "faceto", player);
			qzy=26;
		}
	}
	if(qzy==26)
	{
		SetTarget(0, "waypoint", 63);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=50)
		{
			Perform(c43,"say", "是！小人一定谨记！");
			Perform(c43,"pause",8);
			Perform(c43,"say", "英雄明鉴，这全是申掌柜指使，小人若不依从，他便借故克扣小人工钱。");
			
			PlayerPerform("say", "日后须得明辨是非，你去吧。");
		    PlayerPerform("pause", 4);
			Perform(c36, "faceto", player);
		    Perform(c32, "faceto", player);
		    Perform(c43, "faceto", player);
			PlayerPerform("block", 1);
			qzy=27;
			tzy=now+9;
		}
	}
	if(qzy==27&&now>tzy)
	{
		RemoveNPC(c43);
		qzy=28;
		tzy=now+2;
	}
	if(qzy==28&&now>tzy)
	{
		Perform(c32,"say", "周先生......");
		Perform(c32, "faceto", c36);
		Perform(c32,"pause",60);
		
		Perform(c36,"say", "哈哈哈，今日最为畅快！二位，告辞了。");
		Perform(c36, "faceto", player);
		Perform(c36,"pause",6);
		Perform(c36,"say", "岳兄他日建功立业,再与李姑娘成亲之日，莫忘了让三畏讨一碗喜酒便是。");
		Perform(c36, "faceto", c32);
		Perform(c36,"pause",3);
		Perform(c36,"say", "【湛泸剑】如今能在岳兄手中，三畏总算完成了使命。");
		Perform(c36,"pause",6);
		Perform(c36,"say", "此乃祖命，岳兄若是不受，岂不陷三畏于不孝？");
		Perform(c36,"pause",3);
		Perform(c36,"say", "岳兄莫要过谦，先祖有训，‘若后人有识得此剑者，可将此剑赠之，分文不可取受。’");
		Perform(c36,"pause",6);
		Perform(c36,"say", "岳兄请收好此剑，他日定当为国家之栋梁，也不负我先祖遗训。");
		Perform(c36,"pause",3);
		Perform(c36,"say", "想不到这【湛泸剑】埋没上百年，今日方遇其主。");
		Perform(c36,"pause",3);
		Perform(c36,"say", "岳兄果然博古！此剑确为【湛泸】！");
		Perform(c36,"pause",21);
		Perform(c36,"say", "岳兄识得此剑来历？");
		Perform(c36,"pause",9);
		
		PlayerPerform("say", "周兄既然如此慷慨，岳某却之不恭，拜领了！");
		PlayerPerform("pause", 9);
		PlayerPerform("say", "如何使得！他人之宝，岳某焉敢擅取？周世兄莫要取笑。");
		PlayerPerform("pause", 12);
		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", 6);
		PlayerPerform("say", "世兄当妥善收藏，莫至天物暴殄。");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "在陆可斩犀象，入水能断蛟龙，确为稀世之珍。");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "周世兄，此剑出鞘即寒气侵人。");
		PlayerPerform("block", 1);
		qzy=29;
		tzy=now+54;
	}
	if(qzy==29&&now>tzy)
	{
		RemoveNPC(c36);
		qzy=30;
		tzy=now+2;
	}
	if(qzy==30&&now>tzy)
	{
		Perform(c32,"say", "岳公子，武考还有两个时辰，我……我再去逛逛……");
		Perform(c32, "faceto", player);
		Perform(c32,"pause",2);
		
		PlayerPerform("say", "李姑娘......");
		PlayerPerform("block", 1);
		qzy=31;
		tzy=now+3;
	}
	if(qzy==31&&now>tzy)
	{
		RemoveNPC(c32);
		RemoveNPC(c44);
		qzy=32;
	}
	if(qzy==32)
	{
		PlayerPerform("block", 0);
		PlayerPerform("say", "（罢了，【先去找找其他兄弟】。）");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "......");
		PlayerPerform("block", 1);
		qzy=99;
	}
	
	
	if(jcf==1&&GetHP(c39)<=300)
	{
		Perform(c39,"say", "【蒋朝奉还剩30血！】");
		jcf=2;
	}
	if(jcf==2&&GetHP(c39)<=200)
	{
		Perform(c39,"say", "【蒋朝奉还剩20血！】");
		jcf=3;
	}
	if(jcf==3&&GetHP(c39)<=100)
	{
		Perform(c39,"say", "【蒋朝奉还剩10血！】");
		jcf=4;
	}
	if(jcf==4&&GetHP(c39)<=50)
	{
		Perform(c39,"say", "【蒋朝奉还剩5血！】");
		jcf=5;
	}
	if(jcf==5&&GetHP(c39)<=0)
	{
		Perform(c40,"pause",10);
		Perform(c41,"pause",10);
		Perform(c42,"pause",10);
		Perform(c40,"say", "哼！自不量力！咱们走！");
		Say(c39, "【蒋朝奉已毒发身亡...】");
		
		PlayerPerform("say", "我岳飞竟然没能救得他性命！还谈何尽忠报国！");
		PlayerPerform("pause", 3);
		PlayerPerform("block", 1);
		jcf=6;
		tjcf=now+5;
	}
	if(jcf==6&&now>tjcf)
	{
		v=1;
	}
	
	if(qjm==1)
	{
		SetTarget(0, "waypoint", 33);
		SetTarget(1, "char", player);
		if (c16>=0&&Distance(0, 1) <=100)
		{
			Perform(c18,"say", "你若想查此事，不如自去【集市】探访。告辞、告辞。");
			Perform(c18,"pause",4);
			Perform(c18,"say", "只是这皇城重地天子脚下，老夫可不敢信口开河。");
			Perform(c18,"pause",4);
			Perform(c18,"say", "此事说来，却与这【汴京城内一则传闻】有关。");
			Perform(c18,"pause",8);
			Perform(c18,"say", "冯铁匠之妻【陈氏】难掩悲痛，也于昨日【离家】，恐怕是欲寻短见啊。可悲……");
			Perform(c18,"pause",3);
			Perform(c18,"say", "衙门已派人寻了个遍，然而活不见人死不见尸。");
			Perform(c18,"pause",4);
			Perform(c18,"say", "两日前，【冯铁匠】的闺女儿【秀秀出城玩耍】，却至今未归。");
			Perform(c18,"pause",4);
			Perform(c18,"say", "你指的是【城东集市旁的冯铁匠】吧，这事老夫确知端倪。");
			Perform(c18,"pause",4);
			
			Perform(c17,"say", "然则那女孩【秀秀】，为何却无半点音讯？");
			Perform(c17,"pause",21);
			Perform(c17,"say", "据说城东铁匠铺前两天出件怪事了，先生可知详情？");
			Perform(c18, "faceto", c17);
			Perform(c17, "faceto", c18);
			PlayerPerform("pause", 18);
			PlayerPerform("block", 1);
			PlayerPerform("pause", 5);
			PlayerPerform("block", 1);
			PlayerPerform("pause", 5);
			PlayerPerform("block", 1);
			PlayerPerform("pause", 5);
			PlayerPerform("block", 1);
			
			qjm=2;
			tjm=now+26;
		}
	}
	if(qjm==2&&now>tjm)
	{
		RemoveNPC(c18);
		qjm=3;
		tjm=now+2;
	}
	if(qjm==3&&now>tjm)
	{

		Perform(c17,"say", "老先生慢走！晚生还有一事请教！");
		qjm=4;
		tjm=now+1;
	}
	if(qjm==4&&now>tjm)
	{
		RemoveNPC(c17);
		tjm=now+1;
		qjm=5;
	}
	if(qjm==5&&now>tjm)
	{
		PlayerPerform("block", 0);
		PlayerPerform("say", "【如果【不愿接此任务】，直接【离开】便是。】");
		PlayerPerform("pause", 2);
		PlayerPerform("say", "【若想【接受此任务】，可前往【城东铁匠铺】。】");
		PlayerPerform("pause", 4);
		PlayerPerform("say", "【【十字妖槊】攻击+130，防御+20，速度+110。】");
		PlayerPerform("pause", 2);
		PlayerPerform("say", "【提示：此支线完成后可获得【十字妖槊】（仅限本关使用）。】");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "（此事听来倒颇为蹊跷，我要不要去查探一下？）");
		PlayerPerform("block", 1);
		qjm=6;
		tjm=now+5;
	}
	if(qjm==6&&now>tjm)
	{
		AddNPC("7-19");
		AddNPC("7-20");
		AddNPC("7-21");
		AddNPC("7-22");
		AddNPC("7-23");
		qjm=7;
			
	}
	if(qjm==7&&c19>=0&&c20>=0&&c21>=0&&c22>=0&&c23>=0)
	{
		qjm=8;
		qtj=1;
        
	}
	if(qjm==8&&c19<=0&&c20<=0&&c21<=0&&c22<=0)
	{
		AddNPC("7-24");
		qjm=9;
		tjm=now+3;
	}
	if(qjm==9&&c24>=0)
	{
		PlayerPerform("say", "【若不想继续，请前去【攻击驿臣】。】");
		PlayerPerform("pause", 2);
		PlayerPerform("say", "【若要继续此支线，请前往【东郊小山坡】。】");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "（此事果真诡谲异常，看来我有必要去一趟【城外东郊的小山坡】。）");
		qjm=10;
	}
	if(qjm==10)
	{
		SetTarget(0, "waypoint", 39);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=200)
		{
			PlayerPerform("say", "大娘子且慢！万万跳不得！");
		    PlayerPerform("pause", 3);
			Perform(c24,"say", "女儿……别怕……娘亲……娘亲来陪你了……");
			qjm=11;
			tjm=now+2;
		}
	}
	if(qjm==11&&now>tjm)
	{
		AddNPC("7-25");
		qjm=12;
	}
	if(qjm==12&&c25>=0)
	{
		Perform(c25,"pause",5);
		Perform(c25,"say", "跳吧！跳下去就能见到女儿了！");
		PlayerPerform("say", "【引开敌人，保护陈氏】");
		PlayerPerform("pause", 3);
		qjm=13;
		
	}
	if(qjm==13&&GetHP(c25)<=0)
	{
		PlayerPerform("block", 0);
		PlayerPerform("use", 16);
		PlayerPerform("use", 16);
		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);
		Say(c25, "哈哈哈~~你杀死的只是我的分身！你破不了我的元神，是救不了她们的！");
		PlayerPerform("block", 1);
		qjm=14;	
		tjm=now+15;
	}
	if(qjm==14&&now>tjm)
	{
		AddNPC("7-26");
		qjm=15;
	}
	if(qjm==15)
	{
		SetTarget(0, "waypoint", 42);
		SetTarget(1, "char", player);
		if (c26>=0&&Distance(0, 1) <=250)
		{
			PlayerPerform("say", "（看来就是这片荷塘，得好好探查一下。）");
			qjm=16;
		}
	}
	if(qjm==16&&GetHP(c26)<=0)
	{
		PlayerPerform("say", "（西郊山坡，桃花树下？好，就去一趟。）");
		PlayerPerform("pause", 3);
		Say(c26, "西郊山坡……桃花树下……");
		qjm=17;
		t=tjm+3;
	}
	if(qjm==17&&now>tjm)
	{
		RemoveNPC(c26);
		qjm=18;
		tjm=now+1;
	}
	if(qjm==18&&now>tjm)
	{
		AddNPC("7-27");
		qjm=19;
	}
	if(qjm==19)
	{
		SetTarget(0, "waypoint", 43);
		SetTarget(1, "char", player);
		if (c27>=0&&Distance(0, 1) <=80)
		{
			Perform(c27,"say", "…………");
			Perform(c27,"pause",3);
			
			PlayerPerform("say", "姑娘！你可是秀秀姑娘？");
			PlayerPerform("block", 1);
			qjm=20;
			tjm=now+4;
		}
	}
	if(qjm==20&&now>tjm)
	{
		AddNPC("7-28");
		qjm=21;
	}
	if(qjm==21&&c28>=0)
	{
		PlayerPerform("say", "看来这便是真正的【神木使君】，只要消灭了他，应该就能救了秀秀姑娘。");
		PlayerPerform("block", 0);
		qjm=22;
	}
	if(qjm==22&&GetHP(c28)<=0)
	{
		Perform(c27,"say", "啊！爹~娘！");
		Perform(c27,"pause",2);
		
		PlayerPerform("say", "【提示：返回冯铁匠家】");
		PlayerPerform("pause", 3);
		PlayerPerform("say", "姑娘莫怕！那邪物已被消灭，在下这便送你回家。");
		PlayerPerform("pause", 3);
		qjm=23;
		tjm=now+4;
	}
	if(qjm==23&&now>tjm)
	{
		RemoveNPC(c24);
		RemoveNPC(c25);
		RemoveNPC(c27);
		RemoveNPC(c28);
		qjm=24;
	}
	if(qjm==24)
	{
		SetTarget(0, "waypoint", 38);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=200)
		{
			AddNPC("7-29");
			AddNPC("7-30");
			qjm=25;
		}
	}
	
	if(qjm==25&&c29>=0&&c30>=0)
	{
		Perform(c23,"say", "家中祖传了一件【十字妖槊】，如今便赠与英雄，还望英雄莫要嫌弃！");
		Perform(c23,"pause",3);
		Perform(c23,"say", "英雄大恩大德，冯铁匠无以为报！");
		Perform(c23,"crouch", 5);
		Perform(c23, "faceto", player);
		Perform(c23,"pause",3);
		Perform(c23,"say", "娘子！秀秀！你们……你们可算平安回来了！");
		Perform(c23, "faceto", c29);
		Perform(c29, "faceto", c23);
		Perform(c30, "faceto", c23);
		PlayerPerform("block", 1);
		qjm=26;
		tjm=now+5;
	}
	if(qjm==26&&now>tjm)
	{
		AddNPC("7-31");
		qjm=27;
		tjm=now+1;
	}
	if(qjm==27&&c31>=0&&now>tjm)
	{
		Perform(c23,"say", "英雄走上前去【攻击一下】即可。");
		PlayerPerform("block", 0);
		PlayerPerform("pause", 3);
		PlayerPerform("block", 1);
		qjm=28;
	}
	if(qjm==28&&GetHP(c31)<=0)
	{
		Perform(c23,"say", "英雄，我冯氏一家永感大恩！");
		
		PlayerPerform("say", "【同时将放弃现阶段未完成的支线。】");
		PlayerPerform("pause", 2);
		PlayerPerform("say", "【提示：【攻击驿臣一次】可进入下一阶段任务。】");
		PlayerPerform("pause", 3);
		PlayerPerform("use", 15);
		PlayerPerform("pause", 2);
		qjm=29;
		tjm=now+4;
	}
	if(qjm==29&&now>tjm)
	{
		RemoveNPC(c23);
		RemoveNPC(c29);
		RemoveNPC(c30);
		RemoveNPC(c31);
		qjm=99;
	}
	
	
	if(qtj==1)
	{
		SetTarget(0, "waypoint", 38);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=100)
		{
			Perform(c23,"say", "滚滚滚！老子不做买卖了，快滚！");
			Perform(c23, "faceto", player);
			Perform(c23,"pause",3);
			Perform(c23,"say", "女儿啊……夫人啊……你们在何处……");
			
			PlayerPerform("block", 0);
			PlayerPerform("say", "（看来这铁匠家中果然遭遇变故，我不妨【去集市问问】。）");
			PlayerPerform("pause", 7);
			PlayerPerform("block", 1);
			qtj=2;
			qlx=1;
            qhm=1;
            qjy=1;
            qtz=1;
		}
	}
	if(qtz==1)
	{
		SetTarget(0, "waypoint", 37);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=80)
		{
			Perform(c22,"say", "【欲破神木君，先寻混元锤】，但是却没人知道这【混元锤】是何物。");
			Perform(c22,"pause",3);
			Perform(c22,"say", "旁的事我也不甚清楚，只听到过一句传言：");
			Perform(c22,"pause",3);
			Perform(c22,"say", "后来那女子说，她自己也觉奇怪，好端端走在路上，突然就想跳下去。");
			Perform(c22,"pause",3);
			Perform(c22,"say", "我们总镖头走镖路过该处时，曾救下过一名打算跳崖的年轻女子。");
			Perform(c22,"pause",3);
			Perform(c22,"say", "这汴京城内一直有个诡异的传闻，说【城外东郊的小山坡】不干净。");
			Perform(c22,"pause",3);
			Perform(c22,"say", "冯铁匠家的事？在下确也听说了。只是不知跟【那件事】是否有关。");
			Perform(c22,"pause",3);
			Perform(c22,"say", "在下乃是‘忠义镖局’的趟子手，兄台有何贵干？");
			Perform(c22, "faceto", player);
			
			PlayerPerform("block", 0);
			PlayerPerform("say", "欲破神木君，先寻混元锤？如此多谢兄台。");
			PlayerPerform("pause", 26);
			PlayerPerform("block", 1);
			qtz=2;
			ttz=now+24;
		}
	}
	if(qtz==2&&now>ttz)
	{
		RemoveNPC(c22);
		qtz=9;
		qjm=8;
	}
	
	
	if(qjy==1)
	{
		SetTarget(0, "waypoint", 36);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=80)
		{
			Perform(c21,"say", "那大法师说那孩子已化作【神木使君】，要引够一百个年轻女孩自杀，才能化解此怨。");
			Perform(c21,"pause",3);
			Perform(c21,"say", "于是东郊村子里的人凑钱请了位大法师做法。");
			Perform(c21,"pause",3);
			Perform(c21,"say", "因此就有传闻，是那孩子因死不瞑目，在报复汴京城中的小姑娘。");
			Perform(c21,"pause",3);
			Perform(c21,"say", "从那以后，经常有人在【城外东郊的小山坡】上，见到有年轻女孩对着大松树发痴。");
			Perform(c21,"pause",3);
			Perform(c21,"say", "先是端王爷一病数月，然后是那小郡主，竟溺毙在【王府前的荷塘中】。");
			Perform(c21,"pause",3);
			Perform(c21,"say", "后来没过多久，端王府就接二连三出现怪事。");
			Perform(c21,"pause",3);
			Perform(c21,"say", "因有眼无珠竟然爱上了端王府的郡主，被端王爷活活打死扔下了山涧。");
			Perform(c21,"pause",3);
			Perform(c21,"say", "这【神木使君】，据说乃是五十年前住在城外的一户农家的孩子。");
			Perform(c21,"pause",3);
			Perform(c21,"say", "冯铁匠家？这老小子定是触怒了【神木使君】，因此遭到报应。");
			Perform(c21,"pause",3);
			Perform(c21,"say", "夏鼎商尊秦陶俑，客官想看哪样啊？");
			Perform(c21, "faceto", player);
			
			PlayerPerform("block", 0);
			PlayerPerform("say", "有这等怪事？多谢老板。");
			PlayerPerform("pause", 38);
			PlayerPerform("block", 1);
			qjy=2;
			tjy=now+30;
		}
	}
	if(qjy==2&&now>tjy)
	{
		RemoveNPC(c21);
		qjy=9;
		qjm=8;
	}
	
	
	if(qlx==1)
	{
		SetTarget(0, "waypoint", 34);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=80)
		{
			Perform(c19,"say", "我回来的第二天，才得知那丫头失踪了。");
			Perform(c19,"pause",3);
			Perform(c19,"say", "当时那丫头直愣愣站在【坡顶的大松树下】，叫也不答应。");
			Perform(c19,"pause",3);
			Perform(c19,"say", "两日前的傍晚，我还在【城外东郊的小山坡】上见过她。");
			Perform(c19,"pause",3);
			Perform(c19,"say", "一个娇滴滴的小女娃，说不见就不见了。");
			Perform(c19,"pause",3);
			Perform(c19,"say", "你是想问冯铁匠家的事？唉~造孽啊。");
			Perform(c19,"pause",3);
			Perform(c19,"say", "客官要买鱼虾吗？都是今早刚送到的新鲜货。");
			Perform(c19, "faceto", player);
			
			PlayerPerform("block", 0);
			PlayerPerform("say", "多谢小哥。");
			PlayerPerform("pause", 22);
			PlayerPerform("block", 1);
			qlx=2;
			tlx=now+20;
		}
	}
	if(qlx==2&&now>tlx)
	{
		RemoveNPC(c19);
		qlx=9;
		qjm=8;
	}
	
	if(qhm==1)
	{
		SetTarget(0, "waypoint", 35);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=80)
		{
			Perform(c20,"say", "可莫要再出啥事才好啊......");
			Perform(c20,"pause",3);
			Perform(c20,"say", "今日一早，有人见到秀秀她娘也朝那里去了，");
			Perform(c20,"pause",3);
			Perform(c20,"say", "早就听人说过，【城外东郊的小山坡】不干净。");
			Perform(c20,"pause",3);
			Perform(c20,"say", "秀秀这女娃长得甚是水灵，哪知却......");
			Perform(c20,"pause",3);
			Perform(c20,"say", "冯铁匠家么？可怜啊！");
			Perform(c20,"pause",3);
			Perform(c20,"say", "上好的西湖竹骨绸伞，客官来看看吧。");
			Perform(c20, "faceto", player);
			PlayerPerform("block", 0);
			PlayerPerform("say", "多谢了。");
			PlayerPerform("pause", 22);
			PlayerPerform("block", 1);
			qhm=2;
			thm=now+20;
			
		}
	}
	if(qhm==2&&now>thm)
	{
		RemoveNPC(c20);
		qhm=9;
		qjm=8;
	}
	
	
	//
	if(qyc==1&&now>tyc)
	{
		SetTarget(0, "waypoint", 31);
		SetTarget(1, "char", player);
		if (c16>=0&&Distance(0, 1) <=150)
		{
			Perform(c16,"say", "若想【继续支线】，直接【离开】便是。");
			Perform(c16,"pause",2);
			Perform(c16,"say", "即可【跳过支线】，继续其他任务。");
			Perform(c16,"pause",2);
			Perform(c16,"say", "如果【做完了】或是【不想做】，可【攻击我一次】。");
			Perform(c16,"pause",4);
			Perform(c16,"say", "少侠，【支线】都做完了吗？");
			Perform(c16, "faceto", player);
			PlayerPerform("block", 0);
			PlayerPerform("pause", 8);
			PlayerPerform("block", 1);
			qyc=1;
			tyc=now+10;
			qyc1=1;	
		}	
	}
	
	if(qyc1==1&&GetHP(c16)<10000)
	{
		Perform(c16,"say", "正在【撤销支线】......");
		Perform(c16,"pause",2);
		Perform(c16,"say", "正在【撤销支线】......");
		qyc1=2;
		qyc=9;
		tyc1=now+5;
	}
	if(qyc1==2&&now>tyc1)
	{
		RemoveNPC(c2);
		RemoveNPC(c3);
		RemoveNPC(c4);
		RemoveNPC(c5);
		RemoveNPC(c6);
		RemoveNPC(c7);
		RemoveNPC(c8);
		RemoveNPC(c9);
		RemoveNPC(c10);
		RemoveNPC(c11);
		RemoveNPC(c12);
		RemoveNPC(c13);
		RemoveNPC(c14);
		RemoveNPC(c15);
		RemoveNPC(c16);
		RemoveNPC(c17);
		RemoveNPC(c18);
		RemoveNPC(c19);
		RemoveNPC(c20);
		RemoveNPC(c21);
		RemoveNPC(c22);
		RemoveNPC(c23);
		RemoveNPC(c24);
		RemoveNPC(c25);
		RemoveNPC(c26);
		RemoveNPC(c27);
		RemoveNPC(c28);
		RemoveNPC(c29);
		RemoveNPC(c30);
		RemoveNPC(c31);
		qyc1=9;
		q=7;
	}
	
	//
	if(qdx==1)
	{
		SetTarget(0, "waypoint", 5);
		SetTarget(1, "char", player);
		if (c5>=0&&Distance(0, 1) <=100)
		{
			Perform(c5,"say", "【不愿意请直接离开。】");
			Perform(c5,"pause",3);
			Perform(c5,"say", "【愿意帮忙，攻击‘店小二’一次。】");
			Perform(c5,"pause",3);
			Perform(c5,"say", "任务成功可获得【永久攻击+15】。");
			Perform(c5,"pause",4);
			Perform(c5,"say", "小人担心胞弟出事，可否请客官代为查看？");
			Perform(c5,"pause",4);
			Perform(c5,"say", "原本每日寅时便要送茶过来，然而今日到此刻还未见身影。");
			Perform(c5,"pause",4);
			Perform(c5,"say", "客官不好了！小人有一胞弟唤作‘小三子’，在城外看着一间茶棚。");
			Perform(c5, "faceto", player);
			PlayerPerform("block", 0);
			PlayerPerform("pause", 18);
			PlayerPerform("block", 1);
			qdx=2;
			qdx1=1;
			
		}
	}
	if(qdx==2)
	{
		SetTarget(0, "waypoint", 6);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=200)
		{
			qdx=3;
		}
	}
	if(qdx==3)
	{
		RemoveNPC(c5);
		qdx=9;
		qdx1=9;
		qdx2=9;
	}
	
	if(qdx1==1&&GetHP(c5)<10000)
	{
		AddNPC("7-6");
		AddNPC("7-7");
		AddNPC("7-8");
		AddNPC("7-9");
		qdx1=2;
		qdx=9;
	}
	if(qdx1==2&&c6>=0&&c7>=0&&c8>=0&&c9>=0)
	{
		qdx2=1;
		qdx1=3;
	}
	if(qdx1==3&&GetHP(c7)<=0&&GetHP(c8)<=0&&GetHP(c9)<=0&&GetHP(c6)>0)
	{
		Perform(c6,"say", "多谢壮士救命之恩！");
		qdx1=4;
		qdx2=9;
		tdx1=now+2;
	}
	if(qdx1==4&&now>tdx1)
	{
		RemoveNPC(c5);
		RemoveNPC(c6);
		RemoveNPC(c7);
		RemoveNPC(c8);
		RemoveNPC(c9);
		qdx1=5;
	}
	if(qdx1==5)
	{
		PlayerPerform("use", 19);
		qdx1=9;	
	}
	
	if(qdx2==1&&GetHP(c6)<=5000)
	{
		Perform(c6,"say", "壮士快来救我啊！我就剩500血了o(╥﹏╥)o");
		qdx2=2;
	}
	if(qdx2==2&&GetHP(c6)<=3000)
	{
		Perform(c6,"say", "壮士！加把劲啊！我就剩300血了o(╥﹏╥)o");
		qdx2=3;
	}
	if(qdx2==3&&GetHP(c6)<=1500)
	{
		Perform(c6,"say", "壮士你别玩了好吗！我就剩100血了！马上就要见我佛了~~┭┮﹏┭┮");
		qdx2=4;
	}
	if(qdx2==3&&GetHP(c6)<=0)
	{
		
		Say(c6, "这下我死了你满意了吧(?﹏?)");
		qdx2=4;
		qdx1=9;
		tdx2=now+3;
	}
	if(qdx2==4&&now>tdx2)
	{
		Perform(c7,"guard",10);
		Perform(c8,"guard",10);
		Perform(c9,"guard",10);
		
		PlayerPerform("block", 0);
		PlayerPerform("say", "【救人不彻底，罚扣100血。】");
		PlayerPerform("pause", 2);
		PlayerPerform("say", "我岳飞竟然没能救得他性命！当真该罚！");
		PlayerPerform("pause", 3);
		PlayerPerform("block", 1);
		qdx2=5;
		tdx2=now+8;
	}
	if(qdx2==5&&now>tdx2)
	{
		RemoveNPC(c5);
		RemoveNPC(c6);
		RemoveNPC(c7);
		RemoveNPC(c8);
		RemoveNPC(c9);
		qdx2=6;
	}
	if(qdx2==6)
	{
		PlayerPerform("use", 42);
		PlayerPerform("use", 42);
		PlayerPerform("use", 42);
		qdx2=9;
	}
	
	
	
	//
	if(qhg==1)
	{
		SetTarget(0, "waypoint", 3);
		SetTarget(1, "char", player);
		if (c3>=0&&Distance(0, 1) <=100)
		{
			Perform(c3,"say", "【不愿意请直接离开。】");
			Perform(c3,"pause",3);
			Perform(c3,"say", "【愿意抓飞贼，攻击‘慧姑’一次。】");
			Perform(c3,"pause",3);
			Perform(c3,"say", "【注意！需在【十秒内】找到飞贼，否则没有奖励。】");
			Perform(c3,"pause",4);
			Perform(c3,"say", "那飞贼逃到了【西侧城楼上】，相公如果抓住他，可获得【永久速度+15%】。");
			Perform(c3,"pause",4);
			Perform(c3,"say", "相公请留步，奴家家中失窃，相公可否帮奴家找到那飞贼？");
			Perform(c3, "faceto", player);
			PlayerPerform("block", 0);
			PlayerPerform("pause", 15);
			PlayerPerform("block", 1);
			qhg=2;
			qhg1=1;
			qhg2=1;
		}
	}
	if(qhg1==1&&GetHP(c3)<10000)
	{
		AddNPC("7-4");
		qhg2=9;
		qhg1=2;
	}
	if(qhg1==2&&c4>=0)
	{
		Perform(c3,"say", "飞贼在【西侧城楼上】，请在【十秒内】找到。");
		qhg1=3;
		thg=now+2;
	}
	if(qhg1==3&&now>thg)
	{
		Perform(c3,"say", "【开始计时！】");
		qhg1=4;
		qhg11=1;
		qhg22=1;
		thg11=now+10;
	}
	if(qhg11==1&&now>thg11)
	{
		RemoveNPC(c4);
		qhg11=2;
	}
	if(qhg11==2)
	{
		PlayerPerform("say", "可惜！那飞贼跑了！");
		qhg11=3;
	}
	if(qhg11==3)
	{
		RemoveNPC(c3);
		qhg11=9;
	}
	if(qhg22==1)
	{
		SetTarget(0, "waypoint", 4);
		SetTarget(1, "char", player);
		if (c4>=0&&Distance(0, 1) <=80)
		{
			Perform(c3,"say", "奴家多谢相公！相公果然身轻如燕！小小薄利，还望相公笑纳。");
			Perform(c3,"pause",4);
			
			PlayerPerform("say", "小贼！快快跟我见官去！");
			PlayerPerform("block", 1);
			qhg22=2;
			qhg11=9;
			thg=now+4;
		}
	}
	if(qhg22==2&&now>thg)
	{
		RemoveNPC(c3);
		RemoveNPC(c4);
		qhg22=3;
	}
	if(qhg22==3)
	{
		PlayerPerform("block", 0);
		PlayerPerform("use", 43);
		qhg22=9;
		qhg11=9;
		qhg1=9;
		qhg=9;
	}
	if(qhg2==1)
	{
		SetTarget(0, "waypoint", 6);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=100)
		{
			qhg2=2;
			
		}
	}
	if(qhg2==2)
	{
		RemoveNPC(c3);
		qhg2=9;
		qhg22=9;
	    qhg11=9;
	    qhg1=9;
		qhg=9;
	}
	
	
	//
	if(qxn==1)
	{
		if(GetEnemy(c2)==player)
		{
			
			Perform(c2,"say", "【若不愿，可直接离开。】");
			Perform(c2,"pause",3);
			Perform(c2,"say", "【若要【点新娘】，可走到【轿子】旁。】");
			Perform(c2,"pause",3);
			Perform(c2,"say", "【完成挑战可获得【三百血量】。】");
			Perform(c2,"pause",3);
			Perform(c2,"say", "【点新娘：需在一炷香时间内，从【五名女子】中找出【真正的新娘】。】");
			Perform(c2,"pause",3);
			Perform(c2,"say", "相公可否帮我一帮？");
			Perform(c2,"pause",3);
			Perform(c2,"say", "在下今日娶亲，无奈娘子调皮，非要在下点出她来才肯拜堂。");
			Perform(c2,"pause",3);
			Perform(c2,"say", "相公请留步，可否帮帮在下？");
			
			PlayerPerform("block", 0);
			PlayerPerform("pause", 16);
			PlayerPerform("block", 1);
			qxn=2;
			qxn3=1;
		}
	}
	if(qxn==2)
	{
		
		SetTarget(0, "waypoint", 11);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=50)
		{
			AddNPC("7-10");
			qxn=3;
		}
	}
	if(qxn==3&&c10>=0)
	{
		Perform(c10,"say", "如果【找错三次】，或者【时间耗尽】，便为失败。");
		Perform(c10,"pause",3);
		Perform(c10,"say", "一分钟内在【五名女子中找出奴家】，找到后【攻击一下】即可。");
		qxn=4;
		txn=now+4;
	}
	if(qxn==4&&now>txn)
	{
		AddNPC("7-11");
		AddNPC("7-12");
		AddNPC("7-13");
		AddNPC("7-14");
		AddNPC("7-15");
		qxn=5;
	}
	if(qxn==5&&c11>=0&&c12>=0&&c13>=0&&c14>=0&&c15>=0)
	{
		qxn=6;
		qxn1=1;
		qxn2=1;
		qxn3=9;
		txn=now+30;
	}
	if(qxn1==1&&(GetHP(c11)<GetMaxHP(c11)||GetHP(c12)<GetMaxHP(c12)||GetHP(c13)<GetMaxHP(c13)||GetHP(c14)<GetMaxHP(c14)))
	{
		Say(c10, "傻瓜，找错了哦~");
		hp1=GetHP(c11);
		hp2=GetHP(c12);
		hp3=GetHP(c13);
		hp4=GetHP(c14);
		qxn1=2;
	}
	if(qxn1==2&&(GetHP(c11)<hp1||GetHP(c12)<hp2||GetHP(c13)<hp3||GetHP(c14)<hp4))
	{
		Say(c10, "傻瓜，看清楚，那是我吗？");
		hp1=GetHP(c11);
		hp2=GetHP(c12);
		hp3=GetHP(c13);
		hp4=GetHP(c14);
		qxn1=3;
	}
	if(qxn1==3&&(GetHP(c11)<hp1||GetHP(c12)<hp2||GetHP(c13)<hp3||GetHP(c14)<hp4))
	{
		Say(c10, "又错了！唉~~相公，你竟然连奴家的相貌都认不出……");
		qxn1=9;
		qxn2=9;
		qxn3=9;
		qxn=8;
	}
	if(qxn2==1&&GetHP(c15)<10000)
	{
		Perform(c10,"say", "你找到我啦~！果然好眼力！奖励【300血】。");
		qxn2=2;
		txn2=now+2;
	}
	if(qxn2==2&&now>txn2)
	{
		PlayerPerform("use", 16);
		PlayerPerform("use", 16);
		PlayerPerform("use", 16);
		PlayerPerform("use", 16);
		PlayerPerform("use", 16);
		PlayerPerform("use", 16);
		qxn1=9;
		qxn2=9;
		qxn=8;
	}
	if(qxn3==1)
	{
		
		SetTarget(0, "waypoint", 6);
		SetTarget(1, "char", player);
		if (Distance(0, 1) <=100)
		{
			qxn1=9;
			qxn2=9;
			qxn3=9;
			qxn=8;
		}
	}
	if(qxn==6&&now>txn)
	{
		Perform(c10,"say", "时间已经过半了哦~！提示：真新娘会进入马车里……");
		Perform(c10,"say", "时间已经过半了哦~！提示：真新娘会进入马车里……");
		qxn=7;
		txn=now+30;
	}
	
	if(qxn==7&&now>txn)
	{
		Perform(c10,"say", "时间已到，唉~~相公，你竟然连奴家的相貌都认不出……");
		qxn=8;
		qxn1=9;
		qxn2=9;
		qxn3=9;
		txn1=now+3;
	}
	if(qxn==8&&now>txn1)
	{
		RemoveNPC(c2);
		RemoveNPC(c10);
		RemoveNPC(c11);
		RemoveNPC(c12);
		RemoveNPC(c13);
		RemoveNPC(c14);
		RemoveNPC(c15);
		qxn=9;
	}


	
	
	
	/////
	if(v==0&&GetHP(player)==0)
	{
		PlayerPerform("say", "壮志未酬身先死……");
		v=1;t5=now+6;
		
	}
	if(v==0&&GetHP(c)==0)
	{
		Say(c, "岳飞！你好卑鄙！！");
		v=1;t5=now+3;
		
	}
	
    if(v==2&&now>=t5)
	{
		gameover = 1;
		
	}
	if(v==1&&now>=t5)
	{
		gameover = -1;
		
	}
	if ((gameover==1 || gameover==-1))
	{
		GameOver(gameover);
		gameover = 2;
	}
}