//  终极孙玉伯，故事结局
int Rule = 1;
int RoundTime = 90;
int PlayerSpawn = 353;
int PlayerSpawnDir = 30;
int PlayerWeapon = 6;
int PlayerWeapon2 = 50;
int PlayerHP = 30000;


int trg0 = 0;
int trg1 = 0;
int trg2 = 0;
int trg3 = 0;
int trg4 = 0;
int trg5 = 0;
int trg6 = 0;
int trg7 = 0;
int trg8 = 0;
int trg9 = 0;
int trg10 = 0;
int trg11 = 0;
int trg12 = 0;
int trg13 = 0;
int trg14 = 0;
int trg15 = 0;
int trg16 = 0;
int trg17 = 0;
int trg18 = 0;
int trg19 = 0;
int trg20 = 0;
int trg21 = 0;
int trg22 = 0;
int trg23 = 0;
int trg24 = 0;
int trg25 = 0;
int trg26 = 0;
int trg27 = 0;
int trg28 = 0;
int trg29 = 0;
int timer0 = 0;
int timer1 = 0;
int timer2 = 0;
int timer3 = 0;
int timer4 = 0;
int timer5 = 0;
int gameover = 0;
int reborn = -1;
string rebornName;

OnStart()
{
	AddNPC("终极蒙面镖客1");
	AddNPC("终极蒙面镖客2");
	AddNPC("终极蒙面镖客3");
	AddNPC("终极蒙面镖客4");
	AddNPC("终极蒙面镖客5");
	AddNPC("终极蒙面镖客6");
	AddNPC("终极蒙面镖客7");
	AddNPC("终极蒙面镖客8");
}


OnUpdate()
{
	int player = GetAnyChar("player");
	if (player < 0)
	{
		return 0;
	}
	if (gameover == 2)
	{
		return 0;
	}
	int now = GetGameTime();
	
	int c;
	int c1;
	int c2;
	int c3;
	int c4;
	int c5;
	int c6;
	int c7;
	int c8;
	int c9;
	int c10;
	int c11;
	int c12;

if (trg0 == 0)
	{
		c = GetChar("蒙面镖客1");
		c1 = GetChar("蒙面镖客2");
		c3 = GetChar("蒙面镖客3");
		c4 = GetChar("蒙面镖客4");
		c5 = GetChar("蒙面镖客5");
		c6 = GetChar("蒙面镖客6");
		c7 = GetChar("蒙面镖客7");
		c8 = GetChar("蒙面镖客8");
		if (c>=0 && c1>0 && c3>0 && c4>0 && c5>0 && c6>0 && c7>0 && c8>0)
		{


			Perform(c, "faceto", player);
			Perform(c, "pause", 100);	
                        Perform(c, "use", 19);
                        Perform(c, "use", 5);
			Perform(c1, "pause", 100);
                        Perform(c1, "use", 5);
                        Perform(c1, "use", 19);
			Perform(c3, "pause", 100);
                        Perform(c3, "use", 5);
                        Perform(c3, "use", 19);
			Perform(c4, "pause", 100);
                        Perform(c4, "use", 5);
                        Perform(c4, "use", 19);
			Perform(c5, "pause", 100);
                        Perform(c5, "use", 19);
                        Perform(c5, "use", 5);
			Perform(c6, "pause", 100);
                        Perform(c6, "use", 19);
                        Perform(c6, "use", 5);
			Perform(c7, "pause", 100);
                        Perform(c7, "use", 19);
                        Perform(c7, "use", 5);
			Perform(c8, "pause", 100);
                        Perform(c8, "use", 19);
                        Perform(c8, "use", 5);



			PlayerPerform("block", 0);
			PlayerPerform("use", 19);
			PlayerPerform("use", 5);
			PlayerPerform("use", 33);
			PlayerPerform("use", 34);
			PlayerPerform("use", 4);
			PlayerPerform("use", 41);
			PlayerPerform("use", 42);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 20);
		        PlayerPerform("crouch", 1);
			PlayerPerform("say", "游戏结束了。");
			PlayerPerform("pause", 1);
		        PlayerPerform("crouch", 1);
			PlayerPerform("say", "不管怎么说，今天拿掉他的人头。。。");
			PlayerPerform("pause", 1);
		        PlayerPerform("crouch", 1);
                        PlayerPerform("say", "不过想杀他并不容易。"); 
			PlayerPerform("pause", 1);
		        PlayerPerform("crouch", 1);
			PlayerPerform("say", "真这是命了，上次没要你的命。，今天不会了。");
			PlayerPerform("pause", 1);
		        PlayerPerform("crouch", 1);
                        PlayerPerform("say", "终究会在金华大战一场.。"); 
			PlayerPerform("pause", 1);
		        PlayerPerform("crouch", 1);
			PlayerPerform("say", "孙玉伯。！今天我就在这里取你的人头");
			PlayerPerform("pause", 1);
		        PlayerPerform("crouch", 1);
                        PlayerPerform("say", "这地方好阴森..看见就可怕"); 
			PlayerPerform("pause", 1);
		        PlayerPerform("crouch", 1);
			PlayerPerform("say", "一切就在这里结束..。");
			PlayerPerform("pause", 1);
		        PlayerPerform("crouch", 1);
                        PlayerPerform("say", "终于来到这了..。。"); 
			PlayerPerform("block", 1);
		        PlayerPerform("crouch", 1);
						
			trg0 = 1;
                }          
        }     


if (trg0==1)
	{
		c = GetChar("蒙面镖客1");
		c1 = GetChar("蒙面镖客2");
		c2 = GetChar("蒙面镖客3");
		c3 = GetChar("蒙面镖客4");
		c4 = GetChar("蒙面镖客5");
		c5 = GetChar("蒙面镖客6");
		c6 = GetChar("蒙面镖客7");
		c7 = GetChar("蒙面镖客8");
		SetTarget(0, "char", c);
		SetTarget(1, "char", player);
		if (c>=0 && GetEnemy(c)==player && Distance(0, 1)<150)
		{
			StopPerform(player);
			StopPerform(c);

			Perform(c, "say", "镖客。。你以为我们好惹吗？操。");
			Perform(c, "pause", 4);
			Perform(c, "faceto", player);
			Perform(c, "say", "你知道就行了。哈哈。你这家伙。。");
			Perform(c, "pause", 2);
			Perform(c, "faceto", player);

                        ChangeBehavior(c1,"follow",player);
			Perform(c1, "pause", 8);
			Perform(c1, "faceto", c);
                        ChangeBehavior(c2,"follow",player);
			Perform(c2, "pause", 8);
			Perform(c2, "faceto", c);
                        ChangeBehavior(c3,"follow",player);
			Perform(c3, "pause", 8);
			Perform(c3, "faceto", c);

                        ChangeBehavior(c4,"follow",player);
			Perform(c4, "pause", 8);
			Perform(c4, "faceto", c);

                        ChangeBehavior(c5,"follow",player);
			Perform(c5, "pause", 8);
			Perform(c5, "faceto", c);
                        ChangeBehavior(c6,"follow",player);
			Perform(c6, "pause", 8);
			Perform(c6, "faceto", c);
                        ChangeBehavior(c7,"follow",player);
			Perform(c7, "pause", 8);
			Perform(c7, "faceto", c);


			PlayerPerform("block", 0);
			PlayerPerform("say", "蛤...。");
			PlayerPerform("pause", 5);
			PlayerPerform("say", "不过你们只是送死，。无知的镖客");
			PlayerPerform("pause", 3);
			PlayerPerform("say", "我猜孙玉伯不会这么快来见我，跟孙剑一样。让我先给你们打一会。");
			PlayerPerform("block", 1);

			trg0 = 2;
		}
	}	

      if (trg0 == 2)
	{
		c = GetAnyChar("蒙面镖客1");
		c3 = GetAnyChar("蒙面镖客2");
		c4 = GetAnyChar("蒙面镖客3");
		c5 = GetAnyChar("蒙面镖客4");
		c6 = GetAnyChar("蒙面镖客5");
		c7 = GetAnyChar("蒙面镖客6");
		c8 = GetAnyChar("蒙面镖客7");
		c9 = GetAnyChar("蒙面镖客8");
		
		if (GetHP(c)<=0 && GetHP(c4)<=0 && GetHP(c3)<=0 && GetHP(c5)<=0 && GetHP(c6)<=0 &&  GetHP(c7)<=0 && GetHP(c8)<=0 && GetHP(c9)<=0 && player>=0 && GetHP(player)>0)
		{



			trg0 = 3;
		        timer0 = now + 2;
		}
	}

      if (trg0 == 3 && now>timer0)
	{


                RemoveNPC(GetAnyChar("蒙面镖客1"));
		RemoveNPC(GetAnyChar("蒙面镖客2"));
                RemoveNPC(GetAnyChar("蒙面镖客3"));
		RemoveNPC(GetAnyChar("蒙面镖客4"));
                RemoveNPC(GetAnyChar("蒙面镖客5"));
		RemoveNPC(GetAnyChar("蒙面镖客6"));
                RemoveNPC(GetAnyChar("蒙面镖客7"));
		RemoveNPC(GetAnyChar("蒙面镖客8"));
			trg0 = 4;
		        timer1 = now + 2;
		}
      if (trg0 == 4 && now>timer1)
	{

              AddNPC("终极镖客1");
              AddNPC("终极镖客2");
              AddNPC("终极镖客3");
              AddNPC("终极镖客4");
              AddNPC("终极镖客5");
              AddNPC("终极镖客6");
              AddNPC("终极镖客7");
              AddNPC("终极镖客8");
		trg0 = 5;

	}

if (trg1 == 0)
	{
		c = GetChar("镖客1");
		c1 = GetChar("镖客2");
		c3 = GetChar("镖客3");
		c4 = GetChar("镖客4");
		c5 = GetChar("镖客5");
		c6 = GetChar("镖客6");
		c7 = GetChar("镖客7");
		c8 = GetChar("镖客8");
		if (c>=0 && c1>0 && c3>0 && c4>0 && c5>0 && c6>0 && c7>0 && c8>0)
		{


			Perform(c, "faceto", player);
			Perform(c, "pause", 100);	
                        Perform(c, "use", 19);
                        Perform(c, "use", 5);
			Perform(c1, "pause", 100);
                        Perform(c1, "use", 5);
                        Perform(c1, "use", 19);
			Perform(c3, "pause", 100);
                        Perform(c3, "use", 5);
                        Perform(c3, "use", 19);
			Perform(c4, "pause", 100);
                        Perform(c4, "use", 5);
                        Perform(c4, "use", 19);
			Perform(c5, "pause", 100);
                        Perform(c5, "use", 19);
                        Perform(c5, "use", 5);
			Perform(c6, "pause", 100);
                        Perform(c6, "use", 19);
                        Perform(c6, "use", 5);
			Perform(c7, "pause", 100);
                        Perform(c7, "use", 19);
                        Perform(c7, "use", 5);
			Perform(c8, "pause", 100);
                        Perform(c8, "use", 19);
                        Perform(c8, "use", 5);


		trg1 = 1;

	}


}

if (trg1==1)
	{
		c = GetChar("镖客1");
		c1 = GetChar("镖客2");
		c2 = GetChar("镖客3");
		c3 = GetChar("镖客4");
		c4 = GetChar("镖客5");
		c5 = GetChar("镖客6");
		c6 = GetChar("镖客7");
		c7 = GetChar("镖客8");
		SetTarget(0, "char", c);
		SetTarget(1, "char", player);
		if (c>=0 && GetEnemy(c)==player && Distance(0, 1)<150)
		{
			StopPerform(player);
			StopPerform(c);

			Perform(c, "say", "嘲笑我们。上。。");
			Perform(c, "pause", 4);
			Perform(c, "faceto", player);
			Perform(c, "say", "你不是狠能杀吗。。我们让你来，来啊。");
			Perform(c, "pause", 2);
			Perform(c, "faceto", player);

                        ChangeBehavior(c1,"follow",player);
			Perform(c1, "pause", 8);
			Perform(c1, "faceto", c);
                        ChangeBehavior(c2,"follow",player);
			Perform(c2, "pause", 8);
			Perform(c2, "faceto", c);
                        ChangeBehavior(c3,"follow",player);
			Perform(c3, "pause", 8);
			Perform(c3, "faceto", c);

                        ChangeBehavior(c4,"follow",player);
			Perform(c4, "pause", 8);
			Perform(c4, "faceto", c);

                        ChangeBehavior(c5,"follow",player);
			Perform(c5, "pause", 8);
			Perform(c5, "faceto", c);
                        ChangeBehavior(c6,"follow",player);
			Perform(c6, "pause", 8);
			Perform(c6, "faceto", c);
                        ChangeBehavior(c7,"follow",player);
			Perform(c7, "pause", 8);
			Perform(c7, "faceto", c);


			PlayerPerform("block", 0);
			PlayerPerform("say", "放马过来...镖客。");
			PlayerPerform("pause", 5);
			PlayerPerform("say", "有这中的镖客，还真是少见。哈哈。");
			PlayerPerform("pause", 3);
			PlayerPerform("say", "打死蒙面镖客。又来了你们");
			PlayerPerform("block", 1);

			trg1 = 2;
		}
	}	

	if (trg1 == 2)
	{
		c = GetAnyChar("镖客1");
		if (GetHP(c) <= 0)
		{
			Say(c, "你有种。你不会活命的，就凭你杀死我们的主子。。");
			trg1 = 3;
		}

	}

      if (trg1 == 3)
	{
		c = GetAnyChar("镖客1");
		c3 = GetAnyChar("镖客2");
		c4 = GetAnyChar("镖客3");
		c5 = GetAnyChar("镖客4");
		c6 = GetAnyChar("镖客5");
		c7 = GetAnyChar("镖客6");
		c8 = GetAnyChar("镖客7");
		c9 = GetAnyChar("镖客8");
		
		if (GetHP(c)<=0 && GetHP(c4)<=0 && GetHP(c3)<=0 && GetHP(c5)<=0 && GetHP(c6)<=0 &&  GetHP(c7)<=0 && GetHP(c8)<=0 && GetHP(c9)<=0 && player>=0 && GetHP(player)>0)
		{

			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);


			trg1 = 4;
		        timer0 = now + 2;
		}
	}

      if (trg1 == 4 && now>timer0)
	{


                RemoveNPC(GetAnyChar("镖客1"));
		RemoveNPC(GetAnyChar("镖客2"));
                RemoveNPC(GetAnyChar("镖客3"));
		RemoveNPC(GetAnyChar("镖客4"));
                RemoveNPC(GetAnyChar("镖客5"));
		RemoveNPC(GetAnyChar("镖客6"));
                RemoveNPC(GetAnyChar("镖客7"));
		RemoveNPC(GetAnyChar("镖客8"));
			trg1 = 5;
		        timer1 = now + 2;
		}
      if (trg1 == 5 && now>timer1)
	{

              AddNPC("终极蒙面1");
              AddNPC("终极蒙面2");
              AddNPC("终极蒙面3");
              AddNPC("终极蒙面4");
              AddNPC("终极蒙面5");
              AddNPC("终极蒙面6");
              AddNPC("终极蒙面7");
              AddNPC("终极蒙面8");
		trg1 = 6;

	}



if (trg2 == 0)
	{
		c = GetChar("蒙面杀手1");
		c1 = GetChar("蒙面杀手2");
		c3 = GetChar("蒙面杀手3");
		c4 = GetChar("蒙面杀手4");
		c5 = GetChar("蒙面杀手5");
		c6 = GetChar("蒙面杀手6");
		c7 = GetChar("蒙面杀手7");
		c8 = GetChar("蒙面杀手8");
		if (c>=0 && c1>0 && c3>0 && c4>0 && c5>0 && c6>0 && c7>0 && c8>0)
		{


			Perform(c, "faceto", player);
			Perform(c, "pause", 100);	
                        Perform(c, "use", 19);
                        Perform(c, "use", 5);
			Perform(c1, "pause", 100);
                        Perform(c1, "use", 5);
                        Perform(c1, "use", 19);
			Perform(c3, "pause", 100);
                        Perform(c3, "use", 5);
                        Perform(c3, "use", 19);
			Perform(c4, "pause", 100);
                        Perform(c4, "use", 5);
                        Perform(c4, "use", 19);
			Perform(c5, "pause", 100);
                        Perform(c5, "use", 19);
                        Perform(c5, "use", 5);
			Perform(c6, "pause", 100);
                        Perform(c6, "use", 19);
                        Perform(c6, "use", 5);
			Perform(c7, "pause", 100);
                        Perform(c7, "use", 19);
                        Perform(c7, "use", 5);
			Perform(c8, "pause", 100);
                        Perform(c8, "use", 19);
                        Perform(c8, "use", 5);

		trg2 = 1;
                    }

                 }

if (trg2==1)
	{
		c = GetChar("蒙面杀手1");
		c1 = GetChar("蒙面杀手2");
		c2 = GetChar("蒙面杀手3");
		c3 = GetChar("蒙面杀手4");
		c4 = GetChar("蒙面杀手5");
		c5 = GetChar("蒙面杀手6");
		c6 = GetChar("蒙面杀手7");
		c7 = GetChar("蒙面杀手8");
		SetTarget(0, "char", c);
		SetTarget(1, "char", player);
		if (c>=0 && GetEnemy(c)==player && Distance(0, 1)<150)
		{
			StopPerform(player);
			StopPerform(c);

			Perform(c, "say", "那你肯定会死在这里。上。。");
			Perform(c, "pause", 2);
			Perform(c, "faceto", player);
			Perform(c, "say", "轮到我们了..。");

                        ChangeBehavior(c1,"follow",player);
			Perform(c1, "pause", 3);
			Perform(c1, "faceto", c);
                        ChangeBehavior(c2,"follow",player);
			Perform(c2, "pause", 3);
			Perform(c2, "faceto", c);
                        ChangeBehavior(c3,"follow",player);
			Perform(c3, "pause", 3);
			Perform(c3, "faceto", c);

                        ChangeBehavior(c4,"follow",player);
			Perform(c4, "pause", 3);
			Perform(c4, "faceto", c);

                        ChangeBehavior(c5,"follow",player);
			Perform(c5, "pause", 3);
			Perform(c5, "faceto", c);
                        ChangeBehavior(c6,"follow",player);
			Perform(c6, "pause", 3);
			Perform(c6, "faceto", c);
                        ChangeBehavior(c7,"follow",player);
			Perform(c7, "pause", 3);
			Perform(c7, "faceto", c);


			PlayerPerform("block", 0);
			PlayerPerform("say", "不会的..杀不了孙玉伯。。哼");
			PlayerPerform("pause", 3);
			PlayerPerform("say", "难免。，终极一战。埋伏肯定不少..");
			PlayerPerform("pause", 1);

			trg2 = 2;
		}
	}

	if (trg2 == 2)
	{
		c = GetAnyChar("蒙面杀手1");
		if (GetHP(c) <= 0)
		{
			Say(c, "为了忠心。。死也值的");
			trg2 = 3;
		}

	}
      if (trg2 == 3)
	{
		c = GetAnyChar("蒙面杀手1");
		c3 = GetAnyChar("蒙面杀手2");
		c4 = GetAnyChar("蒙面杀手3");
		c5 = GetAnyChar("蒙面杀手4");
		c6 = GetAnyChar("蒙面杀手5");
		c7 = GetAnyChar("蒙面杀手6");
		c8 = GetAnyChar("蒙面杀手7");
		c9 = GetAnyChar("蒙面杀手8");
		
		if (GetHP(c)<=0 && GetHP(c4)<=0 && GetHP(c3)<=0 && GetHP(c5)<=0 && GetHP(c6)<=0 &&  GetHP(c7)<=0 && GetHP(c8)<=0 && GetHP(c9)<=0 && player>=0 && GetHP(player)>0)
		{



			trg2 = 4;
		        timer0 = now + 2;
		}
	}

      if (trg2 == 4 && now>timer0)
	{


                RemoveNPC(GetAnyChar("蒙面杀手1"));
		RemoveNPC(GetAnyChar("蒙面杀手2"));
                RemoveNPC(GetAnyChar("蒙面杀手3"));
		RemoveNPC(GetAnyChar("蒙面杀手4"));
                RemoveNPC(GetAnyChar("蒙面杀手5"));
		RemoveNPC(GetAnyChar("蒙面杀手6"));
                RemoveNPC(GetAnyChar("蒙面杀手7"));
		RemoveNPC(GetAnyChar("蒙面杀手8"));
			trg2 = 5;
		        timer1 = now + 2;
		}
      if (trg2 == 5 && now>timer1)
	{

              AddNPC("终极守卫1");
              AddNPC("终极守卫2");
              AddNPC("终极守卫3");
              AddNPC("终极守卫4");
              AddNPC("终极守卫5");
              AddNPC("终极守卫6");
              AddNPC("终极守卫7");
              AddNPC("终极守卫8");
		trg2 = 6;

	}
if (trg3 == 0)
	{
		c = GetChar("守卫王强1");
		c1 = GetChar("守卫王强2");
		c3 = GetChar("守卫强盗1");
		c4 = GetChar("守卫强盗2");
		c5 = GetChar("守卫魔鬼1");
		c6 = GetChar("守卫野兽1");
		c7 = GetChar("守卫枪神1");
		c8 = GetChar("守卫和尚1");
		if (c>=0 && c1>0 && c3>0 && c4>0 && c5>0 && c6>0 && c7>0 && c8>0)
		{


			Perform(c, "faceto", player);
			Perform(c, "pause", 100);	
                        Perform(c, "use", 19);
                        Perform(c, "use", 5);
			Perform(c1, "pause", 100);
                        Perform(c1, "use", 5);
                        Perform(c1, "use", 19);
			Perform(c3, "pause", 100);
                        Perform(c3, "use", 5);
                        Perform(c3, "use", 19);
			Perform(c4, "pause", 100);
                        Perform(c4, "use", 5);
                        Perform(c4, "use", 19);
			Perform(c5, "pause", 100);
                        Perform(c5, "use", 19);
                        Perform(c5, "use", 5);
			Perform(c6, "pause", 100);
                        Perform(c6, "use", 19);
                        Perform(c6, "use", 5);
			Perform(c7, "pause", 100);
                        Perform(c7, "use", 19);
                        Perform(c7, "use", 5);
			Perform(c8, "pause", 100);
                        Perform(c8, "use", 19);
                        Perform(c8, "use", 5);

		trg3 = 1;
                    }

                 }

if (trg3==1)
	{
		c = GetChar("守卫王强1");
		c1 = GetChar("守卫王强2");
		c2 = GetChar("守卫强盗1");
		c3 = GetChar("守卫强盗2");
		c4 = GetChar("守卫魔鬼1");
		c5 = GetChar("守卫枪神1");
		c6 = GetChar("守卫和尚1");
		c7 = GetChar("守卫野兽1");
		SetTarget(0, "char", c);
		SetTarget(1, "char", player);
		if (c>=0 && GetEnemy(c)==player && Distance(0, 1)<150)
		{
			StopPerform(player);
			StopPerform(c);

			Perform(c, "say", "那我们上了..哈哈。。。");
			Perform(c, "pause", 2);
			Perform(c, "faceto", player);
			Perform(c, "say", "我们又见面了伊人君。..。");

                        ChangeBehavior(c1,"follow",player);
			Perform(c1, "pause", 3);
			Perform(c1, "faceto", c);
                        ChangeBehavior(c2,"follow",player);
			Perform(c2, "pause", 3);
			Perform(c2, "faceto", c);
                        ChangeBehavior(c3,"follow",player);
			Perform(c3, "pause", 3);
			Perform(c3, "faceto", c);

                        ChangeBehavior(c4,"follow",player);
			Perform(c4, "pause", 3);
			Perform(c4, "faceto", c);

                        ChangeBehavior(c5,"follow",player);
			Perform(c5, "pause", 3);
			Perform(c5, "faceto", c);
                        ChangeBehavior(c6,"follow",player);
			Perform(c6, "pause", 3);
			Perform(c6, "faceto", c);
                        ChangeBehavior(c7,"follow",player);
			Perform(c7, "pause", 3);
			Perform(c7, "faceto", c);


			PlayerPerform("block", 0);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("say", "今天不光杀孙老头..连你们这些不自量力的东西");
			PlayerPerform("pause", 3);
			PlayerPerform("say", "我料想你们会来。..");
			PlayerPerform("pause", 1);

			trg3 = 2;
		}
	}

      if (trg3 == 2)
	{
		c = GetAnyChar("守卫王强1");
		if (GetHP(c) <= 0)
		{
			Say(c, "为了忠心。。死也值的");
			trg3 = 3;
		}

	}

	if (trg4 == 0)
	{
		c = GetChar("守卫强盗1");
		if (c>=0 && GetHP(c)<GetMaxHP(c)/2)
		{			
			Perform(c, "say", "真厉害阿！越来越厉害");
			Perform(c, "faceto", player);
			trg4 = 1;
		}
	}

	if (trg4 == 1)
	{
		c = GetAnyChar("守卫强盗1");
		if (GetHP(c) <= 0)
		{
			Say(c, "靠..我不会在出现了。");
			trg4 = 2;
		}

	}
	if (trg5 == 0)
	{
		c = GetChar("守卫野兽1");
		if (c>=0 && GetHP(c)<GetMaxHP(c)/2)
		{			
			Perform(c, "say", "我不..我还要吃了你。");
			Perform(c, "faceto", player);
			trg5 = 1;
		}
	}

	if (trg5 == 1)
	{
		c = GetAnyChar("守卫野兽1");
		if (GetHP(c) <= 0)
		{
			Say(c, "我不行了..吃不了美肉了。。");
			trg5 = 2;
		}

	}
	if (trg6 == 0)
	{
		c = GetChar("守卫和尚1");
		if (c>=0 && GetHP(c)<GetMaxHP(c)/2)
		{			
			Perform(c, "say", "老衲不会在失败了。");
			Perform(c, "faceto", player);
			trg6 = 1;
		}
	}

	if (trg6 == 1)
	{
		c = GetAnyChar("守卫和尚1");
		if (GetHP(c) <= 0)
		{
			Say(c, "老衲不会在出现在这里。。");
			trg6 = 2;
		}

	}
	if (trg7 == 0)
	{
		c = GetChar("守卫枪神1");
		if (c>=0 && GetHP(c)<GetMaxHP(c)/2)
		{			
			Perform(c, "say", "不...。我不要在给老大丢脸");
			Perform(c, "faceto", player);
			trg7 = 1;
		}
	}

	if (trg7 == 1)
	{
		c = GetAnyChar("守卫枪神1");
		if (GetHP(c) <= 0)
		{
			Say(c, "我永远不是你的对手 ..。。");
			trg7 = 2;
		}

	}
	if (trg8 == 0)
	{
		c = GetChar("守卫魔鬼1");
		if (c>=0 && GetHP(c)<GetMaxHP(c)/2)
		{			
			Perform(c, "say", "身为魔鬼老大..我怎么这样阿..");
			Perform(c, "faceto", player);
			trg8 = 1;
		}
	}

	if (trg8 == 1)
	{
		c = GetAnyChar("守卫魔鬼1");
		if (GetHP(c) <= 0)
		{
			Say(c, "你小子有种..。10年后。我会回来的。");
			trg8 = 2;
		}

	}

      if (trg8 == 2)
	{
		c = GetAnyChar("守卫魔鬼1");
		c3 = GetAnyChar("守卫王强1");
		c4 = GetAnyChar("守卫王强2");
		c5 = GetAnyChar("守卫强盗1");
		c6 = GetAnyChar("守卫强盗2");
		c7 = GetAnyChar("守卫和尚1");
		c8 = GetAnyChar("守卫枪神1");
		c9 = GetAnyChar("守卫野兽1");
		
		if (GetHP(c)<=0 && GetHP(c4)<=0 && GetHP(c3)<=0 && GetHP(c5)<=0 && GetHP(c6)<=0 &&  GetHP(c7)<=0 && GetHP(c8)<=0 && GetHP(c9)<=0 && player>=0 && GetHP(player)>0)
		{



			trg8 = 3;
		        timer0 = now + 2;
		}
	}

      if (trg8 == 3 && now>timer0)
	{


                RemoveNPC(GetAnyChar("守卫魔鬼1"));
		RemoveNPC(GetAnyChar("守卫和尚1"));
                RemoveNPC(GetAnyChar("守卫野兽1"));
		RemoveNPC(GetAnyChar("守卫枪神1"));
                RemoveNPC(GetAnyChar("守卫王强1"));
		RemoveNPC(GetAnyChar("守卫王强2"));
                RemoveNPC(GetAnyChar("守卫强盗1"));
		RemoveNPC(GetAnyChar("守卫强盗2"));
			trg8 = 4;
		        timer1 = now + 2;
		}
      if (trg8 == 4 && now>timer1)
	{

              AddNPC("终极僵尸1");
              AddNPC("终极僵尸2");
              AddNPC("终极僵尸3");
              AddNPC("终极僵尸4");
              AddNPC("终极僵尸5");
              AddNPC("终极僵尸6");
              AddNPC("终极僵尸7");
              AddNPC("终极僵尸8");
		trg8 = 5;

	}
if (trg9 == 0)
	{
		c = GetChar("守关僵尸1");
		c1 = GetChar("守关僵尸2");
		c3 = GetChar("守关僵尸3");
		c4 = GetChar("守关僵尸4");
		c5 = GetChar("守关僵尸5");
		c6 = GetChar("守关僵尸6");
		c7 = GetChar("守关僵尸7");
		c8 = GetChar("守关僵尸8");
		if (c>=0 && c1>0 && c3>0 && c4>0 && c5>0 && c6>0 && c7>0 && c8>0)
		{


			Perform(c, "faceto", player);
			Perform(c, "pause", 100);	
                        Perform(c, "use", 19);
                        Perform(c, "use", 5);
			Perform(c1, "pause", 100);
                        Perform(c1, "use", 5);
                        Perform(c1, "use", 19);
			Perform(c3, "pause", 100);
                        Perform(c3, "use", 5);
                        Perform(c3, "use", 19);
			Perform(c4, "pause", 100);
                        Perform(c4, "use", 5);
                        Perform(c4, "use", 19);
			Perform(c5, "pause", 100);
                        Perform(c5, "use", 19);
                        Perform(c5, "use", 5);
			Perform(c6, "pause", 100);
                        Perform(c6, "use", 19);
                        Perform(c6, "use", 5);
			Perform(c7, "pause", 100);
                        Perform(c7, "use", 19);
                        Perform(c7, "use", 5);
			Perform(c8, "pause", 100);
                        Perform(c8, "use", 19);
                        Perform(c8, "use", 5);

		trg9 = 1;
                    }

                 }
if (trg9==1)
	{
		c = GetChar("守关僵尸1");
		c1 = GetChar("守关僵尸2");
		c2 = GetChar("守关僵尸3");
		c3 = GetChar("守关僵尸4");
		c4 = GetChar("守关僵尸5");
		c5 = GetChar("守关僵尸6");
		c6 = GetChar("守关僵尸7");
		c7 = GetChar("守关僵尸8");
		SetTarget(0, "char", c);
		SetTarget(1, "char", player);
		if (c>=0 && GetEnemy(c)==player && Distance(0, 1)<500)
		{
			StopPerform(player);
			StopPerform(c);

			Perform(c, "say", "你会死在金华0。。我们上..");
			Perform(c, "pause", 2);
			Perform(c, "faceto", player);
			Perform(c, "say", "我们是他们的奴隶.。");

                        ChangeBehavior(c1,"follow",player);
			Perform(c1, "pause", 3);
			Perform(c1, "faceto", c);
                        ChangeBehavior(c2,"follow",player);
			Perform(c2, "pause", 3);
			Perform(c2, "faceto", c);
                        ChangeBehavior(c3,"follow",player);
			Perform(c3, "pause", 3);
			Perform(c3, "faceto", c);

                        ChangeBehavior(c4,"follow",player);
			Perform(c4, "pause", 3);
			Perform(c4, "faceto", c);

                        ChangeBehavior(c5,"follow",player);
			Perform(c5, "pause", 3);
			Perform(c5, "faceto", c);
                        ChangeBehavior(c6,"follow",player);
			Perform(c6, "pause", 3);
			Perform(c6, "faceto", c);
                        ChangeBehavior(c7,"follow",player);
			Perform(c7, "pause", 3);
			Perform(c7, "faceto", c);


			PlayerPerform("block", 0);
			PlayerPerform("say", "杀你们..好玩！");
			PlayerPerform("pause", 3);
			PlayerPerform("say", "想必所有人都会出现在这里..我要用力了..");
			PlayerPerform("pause", 1);

			trg9 = 2;
		}
	}


	if (trg9 == 2)
	{
		c = GetAnyChar("守关僵尸1");
		if (GetHP(c) <= 0)
		{
			Say(c, "我是一万年的僵尸。我还会回来的");
			trg9 = 3;
		}

	}

      if (trg9 == 3)
	{
		c = GetAnyChar("守关僵尸1");
		c3 = GetAnyChar("守关僵尸2");
		c4 = GetAnyChar("守关僵尸3");
		c5 = GetAnyChar("守关僵尸4");
		c6 = GetAnyChar("守关僵尸5");
		c7 = GetAnyChar("守关僵尸6");
		c8 = GetAnyChar("守关僵尸7");
		c9 = GetAnyChar("守关僵尸8");
		
		if (GetHP(c)<=0 && GetHP(c4)<=0 && GetHP(c3)<=0 && GetHP(c5)<=0 && GetHP(c6)<=0 &&  GetHP(c7)<=0 && GetHP(c8)<=0 && GetHP(c9)<=0 && player>=0 && GetHP(player)>0)
		{



			trg9 = 4;
		        timer0 = now + 2;
		}
	}

      if (trg9 == 4 && now>timer0)
	{


                RemoveNPC(GetAnyChar("守关僵尸1"));
		RemoveNPC(GetAnyChar("守关僵尸2"));
                RemoveNPC(GetAnyChar("守关僵尸3"));
		RemoveNPC(GetAnyChar("守关僵尸4"));
                RemoveNPC(GetAnyChar("守关僵尸5"));
		RemoveNPC(GetAnyChar("守关僵尸6"));
                RemoveNPC(GetAnyChar("守关僵尸7"));
		RemoveNPC(GetAnyChar("守关僵尸8"));
			trg9 = 5;
		        timer1 = now + 2;
		}
      if (trg9 == 5 && now>timer1)
	{

              AddNPC("终极刺客1");
              AddNPC("终极刺客2");
              AddNPC("终极刺客3");
              AddNPC("终极刺客4");
              AddNPC("终极刺客5");
              AddNPC("终极刺客6");
              AddNPC("终极刺客7");
              AddNPC("终极刺客8");
		trg9 = 6;

	}
if (trg10 == 0)
	{
		c = GetChar("刺客1");
		c1 = GetChar("刺客2");
		c3 = GetChar("刺客3");
		c4 = GetChar("刺客4");
		c5 = GetChar("刺客5");
		c6 = GetChar("刺客6");
		c7 = GetChar("刺客7");
		c8 = GetChar("刺客8");
		if (c>=0 && c1>0 && c3>0 && c4>0 && c5>0 && c6>0 && c7>0 && c8>0)
		{


			Perform(c, "faceto", player);
                        Perform(c, "use", 19);
                        Perform(c, "use", 5);
                        Perform(c1, "use", 5);
                        Perform(c1, "use", 19);
                        Perform(c3, "use", 5);
                        Perform(c3, "use", 19);
                        Perform(c4, "use", 5);
                        Perform(c4, "use", 19);
                        Perform(c5, "use", 19);
                        Perform(c5, "use", 5);
                        Perform(c6, "use", 19);
                        Perform(c6, "use", 5);
                        Perform(c7, "use", 19);
                        Perform(c7, "use", 5);
                        Perform(c8, "use", 19);
                        Perform(c8, "use", 5);

		trg10 = 1;
                    }

                 }


        if (trg10 == 1)
	{
		c = GetChar("刺客1");
		c1 = GetChar("刺客2");
		c2 = GetChar("刺客3");
		c3 = GetChar("刺客4");
		c4 = GetChar("刺客5");
		c5 = GetChar("刺客6");
		c6 = GetChar("刺客7");
		c7 = GetChar("刺客8");		
		if (c>=0 && GetEnemy(c)==player)
		{
                    	Perform(c, "say", "让你尝尝我快剑的威力，小子。。");
			Perform(c, "faceto", player);

		       ChangeBehavior(c1, "kill", player);
		       ChangeBehavior(c2, "kill", player);
		       ChangeBehavior(c3, "kill", player);
		       ChangeBehavior(c4, "kill", player);
		       ChangeBehavior(c5, "kill", player);
		       ChangeBehavior(c6, "kill", player);
		       ChangeBehavior(c7, "kill", player);		
						
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 20);				
			PlayerPerform("block", 0);
			PlayerPerform("say", "刺客。屡次败给我N次了，还敢来。");
			PlayerPerform("pause", 1);

			trg10 = 2;
		}
	}

	if (trg10 == 2)
	{
		c = GetAnyChar("刺客1");
		if (GetHP(c) <= 0)
		{
			Say(c, "可恶..又失败了");
			trg10 = 3;
		}

	}
      if (trg10 == 3)
	{
		c = GetAnyChar("刺客1");
		c3 = GetAnyChar("刺客2");
		c4 = GetAnyChar("刺客3");
		c5 = GetAnyChar("刺客4");
		c6 = GetAnyChar("刺客5");
		c7 = GetAnyChar("刺客6");
		c8 = GetAnyChar("刺客7");
		c9 = GetAnyChar("刺客8");
		
		if (GetHP(c)<=0 && GetHP(c4)<=0 && GetHP(c3)<=0 && GetHP(c5)<=0 && GetHP(c6)<=0 &&  GetHP(c7)<=0 && GetHP(c8)<=0 && GetHP(c9)<=0 && player>=0 && GetHP(player)>0)
		{



			trg10 = 4;
		        timer0 = now + 2;
		}
	}

      if (trg10 == 4 && now>timer0)
	{


                RemoveNPC(GetAnyChar("刺客1"));
		RemoveNPC(GetAnyChar("刺客2"));
                RemoveNPC(GetAnyChar("刺客3"));
		RemoveNPC(GetAnyChar("刺客4"));
                RemoveNPC(GetAnyChar("刺客5"));
		RemoveNPC(GetAnyChar("刺客6"));
                RemoveNPC(GetAnyChar("刺客7"));
		RemoveNPC(GetAnyChar("刺客8"));
			trg10 = 5;
		        timer1 = now + 2;
		}
      if (trg10 == 5 && now>timer1)
	{

              AddNPC("终极玉女1");
              AddNPC("终极玉女2");
              AddNPC("终极玉女3");
              AddNPC("终极玉女4");
              AddNPC("终极玉女5");
              AddNPC("终极玉女6");
              AddNPC("终极玉女7");
              AddNPC("终极玉女8");
		trg10 = 6;

	}
if (trg11 == 0)
	{
		c = GetChar("玉女1");
		c1 = GetChar("玉女2");
		c3 = GetChar("玉女3");
		c4 = GetChar("玉女4");
		c5 = GetChar("玉女5");
		c6 = GetChar("玉女6");
		c7 = GetChar("玉女7");
		c8 = GetChar("玉女8");
		if (c>=0 && c1>0 && c3>0 && c4>0 && c5>0 && c6>0 && c7>0 && c8>0)
		{


			Perform(c, "faceto", player);
                        Perform(c, "use", 19);
                        Perform(c, "use", 5);
                        Perform(c1, "use", 5);
                        Perform(c1, "use", 19);
                        Perform(c3, "use", 5);
                        Perform(c3, "use", 19);
                        Perform(c4, "use", 5);
                        Perform(c4, "use", 19);
                        Perform(c5, "use", 19);
                        Perform(c5, "use", 5);
                        Perform(c6, "use", 19);
                        Perform(c6, "use", 5);
                        Perform(c7, "use", 19);
                        Perform(c7, "use", 5);
                        Perform(c8, "use", 19);
                        Perform(c8, "use", 5);

		trg11 = 1;
                    }

                 }

if (trg11 == 1)
	{
		c = GetChar("玉女1");
		if (c>=0 && GetHP(c)<GetMaxHP(c)/2)
		{			
			Perform(c, "guard", 4);
			Perform(c, "say", "你这小子。有两下子阿。。");
			Perform(c, "faceto", player);

			PlayerPerform("say", "过奖....。");
			PlayerPerform("pause", 4);
			trg11 = 2;
		}
	}

	if (trg11 == 2)
	{
		c = GetAnyChar("玉女1");
		if (GetHP(c) <= 0)
		{
			Say(c, "玉女心胫.....");
			trg11 = 3;
		}

	}

      if (trg11 == 3)
	{
		c = GetAnyChar("玉女1");
		c3 = GetAnyChar("玉女2");
		c4 = GetAnyChar("玉女3");
		c5 = GetAnyChar("玉女4");
		c6 = GetAnyChar("玉女5");
		c7 = GetAnyChar("玉女6");
		c8 = GetAnyChar("玉女7");
		c9 = GetAnyChar("玉女8");
		
		if (GetHP(c)<=0 && GetHP(c4)<=0 && GetHP(c3)<=0 && GetHP(c5)<=0 && GetHP(c6)<=0 &&  GetHP(c7)<=0 && GetHP(c8)<=0 && GetHP(c9)<=0 && player>=0 && GetHP(player)>0)
		{

			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);

			trg11 = 4;
		        timer0 = now + 2;
		}
	}

      if (trg11 == 4 && now>timer0)
	{


                RemoveNPC(GetAnyChar("玉女1"));
		RemoveNPC(GetAnyChar("玉女2"));
                RemoveNPC(GetAnyChar("玉女3"));
		RemoveNPC(GetAnyChar("玉女4"));
                RemoveNPC(GetAnyChar("玉女5"));
		RemoveNPC(GetAnyChar("玉女6"));
                RemoveNPC(GetAnyChar("玉女7"));
		RemoveNPC(GetAnyChar("玉女8"));
			trg11 = 5;
		        timer1 = now + 2;
		}
      if (trg11 == 5 && now>timer1)
	{

              AddNPC("终极女神1");
              AddNPC("终极女神2");
              AddNPC("终极女神3");
              AddNPC("终极女神4");
              AddNPC("终极女神5");
              AddNPC("终极女神6");
              AddNPC("终极女神7");
              AddNPC("终极女神8");
		trg11 = 6;

	}

	
        if (trg12 == 0)
	{
		c = GetChar("女神1");
		c1 = GetChar("女神2");
		c2 = GetChar("女神3");
		c3 = GetChar("女神4");
		c4 = GetChar("女神5");
		c5 = GetChar("女神6");
		c6 = GetChar("女神7");
		c7 = GetChar("女神8");		
		if (c>=0 && GetEnemy(c)==player)
		{
                    	Perform(c, "say", "连杀这么多人。不知道能不能解决我们...");
			Perform(c, "faceto", player);


		       ChangeBehavior(c1, "kill", player);
                        Perform(c1, "use", 19);
                        Perform(c1, "use", 5);
		       ChangeBehavior(c2, "kill", player);
                        Perform(c2, "use", 19);
                        Perform(c2, "use", 5);
		       ChangeBehavior(c3, "kill", player);
                        Perform(c3, "use", 19);
                        Perform(c3, "use", 5);
		       ChangeBehavior(c4, "kill", player);
                        Perform(c4, "use", 19);
                        Perform(c4, "use", 5);
		       ChangeBehavior(c5, "kill", player);
                        Perform(c5, "use", 19);
                        Perform(c5, "use", 5);
		       ChangeBehavior(c6, "kill", player);
                        Perform(c6, "use", 19);
                        Perform(c6, "use", 5);
		       ChangeBehavior(c7, "kill", player);
                        Perform(c7, "use", 19);
                        Perform(c7, "use", 5);			
						

			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 20);				
			PlayerPerform("block", 0);
			PlayerPerform("say", "笑话。看你们是怎么死的");
			PlayerPerform("pause", 1);

			trg12 = 1;
		}
	}
if (trg12 == 1)
	{
		c = GetChar("女神1");
		if (c>=0 && GetHP(c)<GetMaxHP(c)/2)
		{			
			Perform(c, "guard", 4);
			Perform(c, "say", "你这小子。有两下子阿。。");
			Perform(c, "faceto", player);

			PlayerPerform("say", "快不行了吧。....。");
			PlayerPerform("pause", 4);
			trg12 = 2;
		}
	}

	if (trg12 == 2)
	{
		c = GetAnyChar("女神1");
		if (GetHP(c) <= 0)
		{
			Say(c, "果然牛比....小女子佩服");
			trg12 = 3;
		}

	}
      if (trg12 == 3)
	{
		c = GetAnyChar("女神1");
		c3 = GetAnyChar("女神2");
		c4 = GetAnyChar("女神3");
		c5 = GetAnyChar("女神4");
		c6 = GetAnyChar("女神5");
		c7 = GetAnyChar("女神6");
		c8 = GetAnyChar("女神7");
		c9 = GetAnyChar("女神8");
		
		if (GetHP(c)<=0 && GetHP(c4)<=0 && GetHP(c3)<=0 && GetHP(c5)<=0 && GetHP(c6)<=0 &&  GetHP(c7)<=0 && GetHP(c8)<=0 && GetHP(c9)<=0 && player>=0 && GetHP(player)>0)
		{



			trg12 = 4;
		        timer0 = now + 2;
		}
	}

      if (trg12 == 4 && now>timer0)
	{


                RemoveNPC(GetAnyChar("女神1"));
		RemoveNPC(GetAnyChar("女神2"));
                RemoveNPC(GetAnyChar("女神3"));
		RemoveNPC(GetAnyChar("女神4"));
                RemoveNPC(GetAnyChar("女神5"));
		RemoveNPC(GetAnyChar("女神6"));
                RemoveNPC(GetAnyChar("女神7"));
		RemoveNPC(GetAnyChar("女神8"));
			trg12 = 5;
		        timer1 = now + 2;
		}
      if (trg12 == 5 && now>timer1)
	{

              AddNPC("金华蒙面1");
              AddNPC("金华蒙面2");
              AddNPC("金华蒙面3");
              AddNPC("金华蒙面4");
              AddNPC("金华蒙面5");
              AddNPC("金华蒙面6");
              AddNPC("金华蒙面7");
              AddNPC("金华蒙面8");
		trg12 = 6;

	}
        if (trg13 == 0)
	{
		c = GetChar("蒙面人1");
		c1 = GetChar("蒙面人2");
		c2 = GetChar("蒙面人3");
		c3 = GetChar("蒙面人4");
		c4 = GetChar("蒙面人5");
		c5 = GetChar("蒙面人6");
		c6 = GetChar("蒙面人7");
		c7 = GetChar("蒙面人8");	
		if (c>=0 && GetEnemy(c)==player)
		{
                    	Perform(c, "say", "我们这次不会让你过了.我们一直在等你");
			Perform(c, "faceto", player);


		       ChangeBehavior(c1, "kill", player);
                        Perform(c1, "use", 19);
                        Perform(c1, "use", 5);
		       ChangeBehavior(c2, "kill", player);
                        Perform(c2, "use", 19);
                        Perform(c2, "use", 5);
		       ChangeBehavior(c3, "kill", player);
                        Perform(c3, "use", 19);
                        Perform(c3, "use", 5);
		       ChangeBehavior(c4, "kill", player);
                        Perform(c4, "use", 19);
                        Perform(c4, "use", 5);
		       ChangeBehavior(c5, "kill", player);
                        Perform(c5, "use", 19);
                        Perform(c5, "use", 5);
		       ChangeBehavior(c6, "kill", player);
                        Perform(c6, "use", 19);
                        Perform(c6, "use", 5);
		       ChangeBehavior(c7, "kill", player);
                        Perform(c7, "use", 19);
                        Perform(c7, "use", 5);			
						

			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 20);				
			PlayerPerform("block", 0);
			PlayerPerform("say", "哦。原来是以前的蒙面阿。受死吧。");
			PlayerPerform("pause", 1);

			trg13 = 1;
		}
	}
if (trg13 == 1)
	{
		c = GetChar("蒙面人1");
		if (c>=0 && GetHP(c)<GetMaxHP(c)/2)
		{			
			Perform(c, "guard", 4);
			Perform(c, "say", "。有两下子阿。。");
			Perform(c, "faceto", player);

			PlayerPerform("say", "当然0...要不然你能见到我。.。");
			PlayerPerform("pause", 4);
			trg13 = 2;
		}
	}

	if (trg13 == 2)
	{
		c = GetAnyChar("蒙面人1");
		if (GetHP(c) <= 0)
		{
			Say(c, "我不是你的对手...");
			trg13 = 3;
		}

	}

      if (trg13 == 3)
	{
		c = GetAnyChar("蒙面人1");
		c3 = GetAnyChar("蒙面人2");
		c4 = GetAnyChar("蒙面人3");
		c5 = GetAnyChar("蒙面人4");
		c6 = GetAnyChar("蒙面人5");
		c7 = GetAnyChar("蒙面人6");
		c8 = GetAnyChar("蒙面人7");
		c9 = GetAnyChar("蒙面人8");
		
		if (GetHP(c)<=0 && GetHP(c4)<=0 && GetHP(c3)<=0 && GetHP(c5)<=0 && GetHP(c6)<=0 &&  GetHP(c7)<=0 && GetHP(c8)<=0 && GetHP(c9)<=0 && player>=0 && GetHP(player)>0)
		{

			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);

			trg13 = 4;
		        timer0 = now + 2;
		}
	}

      if (trg13 == 4 && now>timer0)
	{


                RemoveNPC(GetAnyChar("蒙面人1"));
		RemoveNPC(GetAnyChar("蒙面人2"));
                RemoveNPC(GetAnyChar("蒙面人3"));
                RemoveNPC(GetAnyChar("蒙面人4"));
		RemoveNPC(GetAnyChar("蒙面人5"));
		RemoveNPC(GetAnyChar("蒙面人6"));
                RemoveNPC(GetAnyChar("蒙面人7"));
		RemoveNPC(GetAnyChar("蒙面人8"));
			trg13 = 5;
		        timer1 = now + 2;
		}
      if (trg13 == 5 && now>timer1)
	{

              AddNPC("终极能人1");
              AddNPC("终极能人2");
              AddNPC("终极能人3");
              AddNPC("终极能人4");
              AddNPC("终极能人5");
              AddNPC("终极能人6");
              AddNPC("终极能人7");
              AddNPC("终极能人8");
		trg13 = 6;

	}

if (trg14 == 0)
	{
		c = GetChar("复杀手1");
		c1 = GetChar("复杀手2");
		c3 = GetChar("复杀手3");
		c4 = GetChar("复杀手4");
		c5 = GetChar("复杀手5");
		c6 = GetChar("复杀手6");
		c7 = GetChar("复杀手7");
		c8 = GetChar("复杀手8");
		if (c>=0 && c1>0 && c3>0 && c4>0 && c5>0 && c6>0 && c7>0 && c8>0)
		{


			Perform(c, "faceto", player);
			Perform(c, "pause", 100);	
                        Perform(c, "use", 19);
                        Perform(c, "use", 5);
			Perform(c1, "pause", 100);
                        Perform(c1, "use", 5);
                        Perform(c1, "use", 19);
			Perform(c3, "pause", 100);
                        Perform(c3, "use", 5);
                        Perform(c3, "use", 19);
			Perform(c4, "pause", 100);
                        Perform(c4, "use", 5);
                        Perform(c4, "use", 19);
			Perform(c5, "pause", 100);
                        Perform(c5, "use", 19);
                        Perform(c5, "use", 5);
			Perform(c6, "pause", 100);
                        Perform(c6, "use", 19);
                        Perform(c6, "use", 5);
			Perform(c7, "pause", 100);
                        Perform(c7, "use", 19);
                        Perform(c7, "use", 5);
			Perform(c8, "pause", 100);
                        Perform(c8, "use", 19);
                        Perform(c8, "use", 5);

		trg14 = 1;
                    }

                 }


        if (trg14 == 1)
	{
		c = GetChar("复杀手1");
		c1 = GetChar("复杀手2");
		c2 = GetChar("复杀手3");
		c3 = GetChar("复杀手4");
		c4 = GetChar("复杀手5");
		c5 = GetChar("复杀手6");
		c6 = GetChar("复杀手7");
		c7 = GetChar("复杀手8");		
		SetTarget(0, "char", c);
		SetTarget(1, "char", player);
		if (c>=0 && GetEnemy(c)==player && Distance(0, 1)<2000)
		{
			StopPerform(player);
			StopPerform(c);

			Perform(c, "say", "我们厉害不厉害..。手底见真章吧。。。你这个家伙。受死吧");
			Perform(c, "pause", 4);
			Perform(c, "faceto", player);
			Perform(c, "say", "呵呵..。我们跟你一样，都是杀手，不过金华是我们的地盘，我们只守在这里。");
			Perform(c, "pause", 2);
			Perform(c, "faceto", player);

                        ChangeBehavior(c1,"follow",player);
			Perform(c1, "pause", 8);
			Perform(c1, "faceto", c);
                        ChangeBehavior(c2,"follow",player);
			Perform(c2, "pause", 8);
			Perform(c2, "faceto", c);
                        ChangeBehavior(c3,"follow",player);
			Perform(c3, "pause", 8);
			Perform(c3, "faceto", c);
                        ChangeBehavior(c4,"follow",player);
			Perform(c4, "pause", 8);
			Perform(c4, "faceto", c);
                        ChangeBehavior(c5,"follow",player);
			Perform(c5, "pause", 8);
			Perform(c5, "faceto", c);
                        ChangeBehavior(c6,"follow",player);
			Perform(c6, "pause", 8);
			Perform(c6, "faceto", c);
                        ChangeBehavior(c7,"follow",player);
			Perform(c7, "pause", 8);
			Perform(c7, "faceto", c);

			PlayerPerform("block", 0);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("say", "杀气重重..肯定是高手");
			PlayerPerform("pause", 5);
			PlayerPerform("say", "哦，原来是这样阿。。估计你们挺厉害的。。");
			PlayerPerform("pause", 3);
			PlayerPerform("say", "你...。是谁？怎么从来没有见过你。");
			PlayerPerform("block", 1);

			trg14 = 2;
		}
	}


      if (trg14 == 2)
	{
		c = GetAnyChar("复杀手1");
		if (GetHP(c) <= 0)
		{
			Say(c, "我竟会死，，没想到啊。");
			trg14 = 3;
		}

	}

	if (trg15 == 0)
	{
		c = GetChar("复杀手2");
		if (c>=0 && GetHP(c)<GetMaxHP(c)/2)
		{			
			Perform(c, "say", "真厉害阿！");
			Perform(c, "faceto", player);
			trg15 = 1;
		}
	}

	if (trg15 == 1)
	{
		c = GetAnyChar("复杀手2");
		if (GetHP(c) <= 0)
		{
			Say(c, "靠...老大，帮我报仇阿。");
			trg15 = 2;
		}

	}
	if (trg16 == 0)
	{
		c = GetChar("复杀手3");
		if (c>=0 && GetHP(c)<GetMaxHP(c)/2)
		{			
			Perform(c, "say", "我不....我从没有败过");
			Perform(c, "faceto", player);
			trg16 = 1;
		}
	}

	if (trg16 == 1)
	{
		c = GetAnyChar("复杀手3");
		if (GetHP(c) <= 0)
		{
			Say(c, "我没想到会败给你，看来是低估了你。。");
			trg16 = 2;
		}

	}
	if (trg17 == 0)
	{
		c = GetChar("复杀手4");
		if (c>=0 && GetHP(c)<GetMaxHP(c)/2)
		{			
			Perform(c, "say", "低估你了。。没想到你挺厉害的。");
			Perform(c, "faceto", player);
			trg17 = 1;
		}
	}

	if (trg17 == 1)
	{
		c = GetAnyChar("复杀手4");
		if (GetHP(c) <= 0)
		{
			Say(c, "老大。。我我我....");
			trg17 = 2;
		}

	}
	if (trg18 == 0)
	{
		c = GetChar("复杀手5");
		if (c>=0 && GetHP(c)<GetMaxHP(c)/2)
		{			
			Perform(c, "say", "不...。我不要在给老大丢脸");
			Perform(c, "faceto", player);
			trg18 = 1;
		}
	}

	if (trg18 == 1)
	{
		c = GetAnyChar("复杀手6");
		if (GetHP(c) <= 0)
		{
			Say(c, "你真是高手....。。佩服。。。");
			trg18 = 2;
		}

	}

      if (trg18 == 2)
	{
		c = GetAnyChar("复杀手1");
		c3 = GetAnyChar("复杀手2");
		c4 = GetAnyChar("复杀手3");
		c5 = GetAnyChar("复杀手4");
		c6 = GetAnyChar("复杀手5");
		c7 = GetAnyChar("复杀手6");
		c8 = GetAnyChar("复杀手7");
		c9 = GetAnyChar("复杀手8");
		
		if (GetHP(c)<=0 && GetHP(c4)<=0 && GetHP(c3)<=0 && GetHP(c5)<=0 && GetHP(c6)<=0 &&  GetHP(c7)<=0 && GetHP(c8)<=0 && GetHP(c9)<=0 && player>=0 && GetHP(player)>0)
		{



			trg18 = 3;
		        timer0 = now + 2;
		}
	}

      if (trg18 == 3 && now>timer0)
	{


                RemoveNPC(GetAnyChar("复杀手1"));
		RemoveNPC(GetAnyChar("复杀手2"));
                RemoveNPC(GetAnyChar("复杀手3"));
                RemoveNPC(GetAnyChar("复杀手4"));
		RemoveNPC(GetAnyChar("复杀手5"));
		RemoveNPC(GetAnyChar("复杀手6"));
                RemoveNPC(GetAnyChar("复杀手7"));
		RemoveNPC(GetAnyChar("复杀手8"));
			trg18 = 4;
		        timer1 = now + 2;
		}
      if (trg18 == 4 && now>timer1)
	{

              AddNPC("金华6");
		trg18 = 5;

	}

if (trg19 == 0)
	{
		c = GetChar("一级高官");
		if (c>=0 )
		{


			Perform(c, "faceto", player);
			Perform(c, "pause", 100);	
                        Perform(c, "use", 19);
                        Perform(c, "use", 5);
                        Perform(c, "use", 4);
                        Perform(c, "use", 34);
                        Perform(c, "use", 33);
                        Perform(c, "use", 3);

		       trg19 = 1;

	}
}

if (trg19==1)
	{
		c = GetChar("一级高官");
		SetTarget(0, "char", c);
		SetTarget(1, "char", player);
		if (c>=0 && GetEnemy(c)==player && Distance(0, 1)<500)
		{
			StopPerform(player);
			StopPerform(c);
                        ChangeBehavior(c,"follow",player);
			Perform(c, "say", "受死，。好大的口气。那就先杀死我吧，杀死我，才能看见孙堂主..");
			Perform(c, "pause", 5);
			Perform(c, "say", "你不要这么嚣张。游戏结束还早呢。，想杀孙老大。你还的费点力气。");
			Perform(c, "pause", 5);
			Perform(c, "say", "你能杀完吗？。笑话。。哈哈。");
			Perform(c, "pause", 4);
			Perform(c, "faceto", player);
			Perform(c, "say", "你是不是累了。。用不用歇一会在打阿。");
			Perform(c, "pause", 2);
			Perform(c, "faceto", player);


			PlayerPerform("block", 0);
			PlayerPerform("say", "阿？。。叫孙玉伯出来受死。。快点。。");
			PlayerPerform("pause", 5);
			PlayerPerform("say", "杀不完不要紧。杀死你们做老大的我就安心了。。");
			PlayerPerform("pause", 5);
			PlayerPerform("say", "不用，。。我一点也不累，我杀完你们这里的所有人我在知道累。");
			PlayerPerform("pause", 3);
			PlayerPerform("say", "高官。你终于来了。。我杀了这么多人，你在不出来，就不够意思了。");
			PlayerPerform("block", 1);

			trg19 = 2;
		        timer0 = now + 18;
		}
	}
      if (trg19 == 2 && now>timer0)
	{

              AddNPC("终极能人1");
              AddNPC("终极能人2");
              AddNPC("终极能人3");
              AddNPC("终极能人4");
              AddNPC("终极能人5");
              AddNPC("终极能人6");
              AddNPC("终极能人7");
		trg19 = 3;

	}


	if (trg19 == 3)
	{
		c = GetChar("一级高官");
		if (c>=0 && GetHP(c)<GetMaxHP(c)/2)
		{			
			Perform(c, "say", "哈哈..你不会活着走出金华的，你在这等死吧。。");
			Perform(c, "faceto", player);
			trg19 = 4;
		        timer1 = now + 2;
		}
	}

     if (trg19==4 && now>timer1)
	{	

		RemoveNPC(GetAnyChar("一级高官"));
                RemoveNPC(GetAnyChar("复杀手1"));
		RemoveNPC(GetAnyChar("复杀手2"));
                RemoveNPC(GetAnyChar("复杀手3"));
                RemoveNPC(GetAnyChar("复杀手4"));
		RemoveNPC(GetAnyChar("复杀手5"));
		RemoveNPC(GetAnyChar("复杀手6"));
                RemoveNPC(GetAnyChar("复杀手7"));
		trg19 = 5;
	        timer2 = now + 5;


	}
      if (trg19 == 5 && now>timer2)
	{

              AddNPC("金华5");
		trg19 = 6;

	}


if (trg20 == 0)
	{
		c = GetChar("律香川");
		if (c>=0 )
		{


			Perform(c, "faceto", player);
			Perform(c, "pause", 100);	
                        Perform(c, "use", 19);
                        Perform(c, "use", 5);
                        Perform(c, "use", 4);
                        Perform(c, "use", 34);
                        Perform(c, "use", 33);
                        Perform(c, "use", 3);

		       trg20 = 1;

	}
}

if (trg20==1)
	{
		c = GetChar("律香川");
		SetTarget(0, "char", c);
		SetTarget(1, "char", player);
		if (c>=0 && GetEnemy(c)==player && Distance(0, 1)<500)
		{
			StopPerform(player);
			StopPerform(c);
                        ChangeBehavior(c,"follow",player);
			Perform(c, "say", "猖狂的家伙.....");
			Perform(c, "pause", 5);
			Perform(c, "say", "不是你的对手。小子，现在你是死的时候了，别这么嚣张了。");
			Perform(c, "pause", 5);
			Perform(c, "say", "哦..你知道高官跑路了吗？。高官是让我来收拾你。");
			Perform(c, "pause", 4);
			Perform(c, "faceto", player);
			Perform(c, "say", "搞清楚是谁来找死。。伊人君。。");
			Perform(c, "pause", 2);
			Perform(c, "faceto", player);


			PlayerPerform("block", 0);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("say", "我不给你废话。杀死你们，我不信老头子不出来。。。");
			PlayerPerform("pause", 5);
			PlayerPerform("say", "收拾我。。。你们只会吹牛，哪一个是我的对手。");
			PlayerPerform("pause", 5);
			PlayerPerform("say", "高官都跑路了。何况你来，不是受死。");
			PlayerPerform("pause", 3);
			PlayerPerform("say", "高官走了。你又来受死。。");
			PlayerPerform("block", 1);

			trg20 = 2;
		        timer0 = now + 18;
		}
	}

      if (trg20 == 2 && now>timer0)
	{

              AddNPC("金华蒙面1");
              AddNPC("金华蒙面2");
              AddNPC("金华蒙面3");
              AddNPC("金华蒙面4");
              AddNPC("金华蒙面5");
              AddNPC("金华蒙面6");
              AddNPC("金华蒙面7");

		trg20 = 3;

	}

 if (trg20 == 3)
	{
		c = GetChar("律香川");	
		c1 = GetChar("蒙面人1");	
		c2 = GetChar("蒙面人2");	
		c3 = GetChar("蒙面人3");	
		c4 = GetChar("蒙面人4");	
		c5 = GetChar("蒙面人5");	
		c6 = GetChar("蒙面人6");	
		c7 = GetChar("蒙面人7");	
		if (c>=0 && GetEnemy(c)==player)
		{

                        Perform(c, "use", 19);
                        Perform(c, "use", 5);
                        Perform(c, "use", 33);
                        Perform(c, "use", 4);
                        Perform(c, "use", 34);
                        Perform(c, "use", 41);
			Perform(c, "say", "都过来干掉这小子...。...");
			Perform(c, "faceto", player);

		       ChangeBehavior(c1, "kill", player);
                        Perform(c1, "use", 19);
                        Perform(c1, "use", 5);
                        Perform(c1, "use", 34);
                        Perform(c1, "use", 4);
                        Perform(c1, "use", 33);
                        Perform(c1, "use", 3);
		       ChangeBehavior(c2, "kill", player);
                        Perform(c2, "use", 19);
                        Perform(c2, "use", 5);
		       ChangeBehavior(c3, "kill", player);
                        Perform(c3, "use", 19);
                        Perform(c3, "use", 5);
		       ChangeBehavior(c4, "kill", player);
                        Perform(c4, "use", 19);
                        Perform(c4, "use", 5);
		       ChangeBehavior(c5, "kill", player);
                        Perform(c5, "use", 19);
                        Perform(c5, "use", 5);
		       ChangeBehavior(c6, "kill", player);
                        Perform(c6, "use", 19);
                        Perform(c6, "use", 5);
		       ChangeBehavior(c7, "kill", player);
                        Perform(c7, "use", 19);
                        Perform(c7, "use", 5);	

		trg20 = 4;
	}
}


	if (trg20 == 4)
	{
		c = GetChar("律香川");
		if (c>=0 && GetHP(c)<GetMaxHP(c)/2)
		{			
			Perform(c, "say", "我累了。你牛比，咱一会在打。");
			Perform(c, "faceto", player);
			trg20 = 5;
		        timer2 = now + 2;
		}
	}

     if (trg20==5 && now>timer2)
	{	

		RemoveNPC(GetAnyChar("律香川"));
                RemoveNPC(GetAnyChar("蒙面人1"));
		RemoveNPC(GetAnyChar("蒙面人2"));
                RemoveNPC(GetAnyChar("蒙面人3"));
                RemoveNPC(GetAnyChar("蒙面人4"));
		RemoveNPC(GetAnyChar("蒙面人5"));
		RemoveNPC(GetAnyChar("蒙面人6"));
                RemoveNPC(GetAnyChar("蒙面人7"));
		trg20 = 6;
	        timer3 = now + 5;


	}
      if (trg20 == 6 && now>timer3)
	{

              AddNPC("金华8");
		trg20 = 7;

	}

if (trg21 == 0)
	{
		c = GetChar("律香川一等杀手");
		if (c>=0 )
		{


			Perform(c, "faceto", player);
			Perform(c, "pause", 100);	
                        Perform(c, "use", 19);
                        Perform(c, "use", 5);
                        Perform(c, "use", 4);
                        Perform(c, "use", 34);
                        Perform(c, "use", 33);
                        Perform(c, "use", 3);

		       trg21 = 1;

	}
}

if (trg21==1)
	{
		c = GetChar("律香川一等杀手");
		SetTarget(0, "char", c);
		SetTarget(1, "char", player);
		if (c>=0 && GetEnemy(c)==player && Distance(0, 1)<500)
		{
			StopPerform(player);
			StopPerform(c);
                        ChangeBehavior(c,"follow",player);
			Perform(c, "say", "你也是个好汉....");
			Perform(c, "pause", 5);
			Perform(c, "say", "我这次要用真功夫了。作为杀手。。我不是死，就是活。。");
			Perform(c, "pause", 5);
			Perform(c, "say", "你不用废话。我们是敌人。。用不着废话的。");
			Perform(c, "pause", 4);
			Perform(c, "faceto", player);
			Perform(c, "say", "我们就在这里绝一死战吧，。。我说过，在金华。");
			Perform(c, "pause", 2);
			Perform(c, "faceto", player);


			PlayerPerform("block", 0);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("say", "好汉。。。领教了。。。");
			PlayerPerform("pause", 5);
			PlayerPerform("say", "是..我们要拼个你死我活。。");
			PlayerPerform("pause", 5);
			PlayerPerform("say", "你是个好汗。我景仰你。。");
			PlayerPerform("pause", 3);
			PlayerPerform("say", "杀手..。。");
			PlayerPerform("block", 1);

			trg21 = 2;
			timer0 = now + 16;
		}
	}
      if (trg21 == 2 && now>timer0)
	{

	AddNPC("终极蒙面镖客1");
	AddNPC("终极蒙面镖客2");
	AddNPC("终极蒙面镖客3");
	AddNPC("终极蒙面镖客4");
	AddNPC("终极蒙面镖客5");
	AddNPC("终极蒙面镖客6");
	AddNPC("终极蒙面镖客7");

		trg21 = 3;

	}


 if (trg21 == 3)
	{
		c = GetChar("律香川一等杀手");	
		c1 = GetChar("蒙面镖客1");	
		c2 = GetChar("蒙面镖客2");	
		c3 = GetChar("蒙面镖客3");	
		c4 = GetChar("蒙面镖客4");	
		c5 = GetChar("蒙面镖客5");	
		c6 = GetChar("蒙面镖客6");	
		c7 = GetChar("蒙面镖客7");	
		if (c>=0 && GetEnemy(c)==player)
		{

                        Perform(c, "use", 19);
                        Perform(c, "use", 5);
                        Perform(c, "use", 33);
                        Perform(c, "use", 4);
                        Perform(c, "use", 34);
                        Perform(c, "use", 41);
			Perform(c, "say", "我需要人帮助.。...这是我的本能。。");
			Perform(c, "faceto", player);

		       ChangeBehavior(c1, "kill", player);
                        Perform(c1, "use", 19);
                        Perform(c1, "use", 5);
                        Perform(c1, "use", 34);
                        Perform(c1, "use", 4);
                        Perform(c1, "use", 33);
                        Perform(c1, "use", 3);
		       ChangeBehavior(c2, "kill", player);
                        Perform(c2, "use", 19);
                        Perform(c2, "use", 5);
		       ChangeBehavior(c3, "kill", player);
                        Perform(c3, "use", 19);
                        Perform(c3, "use", 5);
		       ChangeBehavior(c4, "kill", player);
                        Perform(c4, "use", 19);
                        Perform(c4, "use", 5);
		       ChangeBehavior(c5, "kill", player);
                        Perform(c5, "use", 19);
                        Perform(c5, "use", 5);
		       ChangeBehavior(c6, "kill", player);
                        Perform(c6, "use", 19);
                        Perform(c6, "use", 5);
		       ChangeBehavior(c7, "kill", player);
                        Perform(c7, "use", 19);
                        Perform(c7, "use", 5);	

		trg21 = 4;
	}
}



	if (trg21 == 4)
	{
		c = GetChar("律香川一等杀手");
		if (c>=0 && GetHP(c)<5000)
		{			
                        Perform(c, "use", 35);
			Perform(c, "say", "我想我要失败了...我对不起老大。");
			Perform(c, "faceto", player);


			PlayerPerform("say", "阿。。果然是条好汉呢。。。");
			PlayerPerform("pause", 3);
			trg21 = 5;
			timer1 = now + 4;
		}
	}


      if (trg21 == 5 && now>timer1)
	{


                RemoveNPC(GetAnyChar("蒙面镖客1"));
		RemoveNPC(GetAnyChar("蒙面镖客2"));
                RemoveNPC(GetAnyChar("蒙面镖客3"));
		RemoveNPC(GetAnyChar("蒙面镖客4"));
                RemoveNPC(GetAnyChar("蒙面镖客5"));
		RemoveNPC(GetAnyChar("蒙面镖客6"));
                RemoveNPC(GetAnyChar("蒙面镖客7"));
		RemoveNPC(GetAnyChar("律香川一等杀手"));
			trg21 = 6;
		        timer2 = now + 2;
		}


      if (trg21 == 6 && now>timer2)
	{

	     AddNPC("金华7");

		trg21 = 7;

	}
if (trg22 == 0)
	{
		c = GetChar("孙玉伯");
		if (c>=0 )
		{


			Perform(c, "faceto", player);
			Perform(c, "pause", 100);	
                        Perform(c, "use", 19);
                        Perform(c, "use", 5);
                        Perform(c, "use", 4);
                        Perform(c, "use", 34);
                        Perform(c, "use", 33);
                        Perform(c, "use", 3);

		       trg22 = 1;

	}
}
if (trg22==1)
	{
		c = GetChar("孙玉伯");
		SetTarget(0, "char", c);
		SetTarget(1, "char", player);
		if (c>=0 && GetEnemy(c)==player && Distance(0, 1)<150)
		{
			StopPerform(player);
			StopPerform(c);
                        ChangeBehavior(c,"follow",player);
			Perform(c, "say", "我为我的儿子报仇...幽魂出来收拾你。");
			Perform(c, "pause", 5);
			Perform(c, "say", "你现在就会死。。。马上会死。我的儿子阿。。");
			Perform(c, "pause", 5);
			Perform(c, "say", "看透又如何。你马上要死了。。");
			Perform(c, "pause", 4);
			Perform(c, "faceto", player);
			Perform(c, "say", "那当初为何不杀死老夫呢...现在想杀我.晚了吧。");
			Perform(c, "pause", 2);
			Perform(c, "faceto", player);


			PlayerPerform("block", 0);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("say", "幽魂？？？？？？");
			PlayerPerform("pause", 5);
			PlayerPerform("say", "你跟你儿子们一样。都不一个（贱）字");
			PlayerPerform("pause", 5);
			PlayerPerform("say", "我死。杀死你在死也不迟...");
			PlayerPerform("pause", 5);
			PlayerPerform("say", "当初我景仰你。。不过现在我看透你了");
			PlayerPerform("pause", 3);
			PlayerPerform("say", "你终于出来了。我等你好久了。想杀你还真难阿。");
			PlayerPerform("block", 1);

			trg22 = 2;
			timer0 = now + 20;
		}
	}


      if (trg22 == 2 && now>timer0)
	{

	     AddNPC("金华1");
	     AddNPC("金华2");
	     AddNPC("金华3");
	     AddNPC("金华4");
	     AddNPC("金华5");
	     AddNPC("金华6");
	     AddNPC("金华8");

		trg22 = 3;

	}


	if (trg23 == 0 && now>timer1)
	{
		c = GetChar("三公子");
		c1 = GetChar("二公子");
		c3 = GetChar("律香彬");
		c4 = GetChar("无名高手");
		c5 = GetChar("律香川");
		c6 = GetChar("一级高官");
		c7 = GetChar("律香川一等杀手");
		if (c>=0 && c1>0 && c3>0 && c4>0 && c5>0 && c6>0 && c7>0 )
		{


			Perform(c, "faceto", player);	
                        Perform(c, "use", 15);
                        Perform(c, "use", 7);
                        Perform(c1, "use", 7);
                        Perform(c1, "use", 15);
                        Perform(c3, "use", 7);
                        Perform(c3, "use", 15);
                        Perform(c4, "use", 7);
                        Perform(c4, "use", 15);
                        Perform(c5, "use", 15);
                        Perform(c5, "use", 7);
                        Perform(c6, "use", 15);
                        Perform(c6, "use", 7);
                        Perform(c7, "use", 15);
                        Perform(c7, "use", 7);

		        trg23 = 1;
			timer1 = now + 10;

	    }

       }

	if (trg23 == 1 && now>timer1)
	{
		c = GetChar("三公子");
		c1 = GetChar("二公子");
		c3 = GetChar("律香彬");
		c4 = GetChar("无名高手");
		c5 = GetChar("律香川");
		c6 = GetChar("一级高官");
		c7 = GetChar("律香川一等杀手");
		if (c>=0 && c1>0 && c3>0 && c4>0 && c5>0 && c6>0 && c7>0 )
		{


			Perform(c, "faceto", player);	
                        Perform(c, "use", 19);
                        Perform(c, "use", 7);
                        Perform(c1, "use", 7);
                        Perform(c1, "use", 19);
                        Perform(c3, "use", 7);
                        Perform(c3, "use", 19);
                        Perform(c4, "use", 7);
                        Perform(c4, "use", 19);
                        Perform(c5, "use", 19);
                        Perform(c5, "use", 7);
                        Perform(c6, "use", 19);
                        Perform(c6, "use", 7);
                        Perform(c7, "use", 19);
                        Perform(c7, "use", 7);

		        trg23 = 0;
			timer1 = now + 10;

	           }

             }

	if (trg24 == 0)
	{
		c = GetChar("孙玉伯");
		if (c>=0 && GetHP(c)<GetMaxHP(c)/2)
		{		
                        Perform(c, "use", 15);
                        Perform(c, "use", 15);
                        Perform(c, "use", 15);
                        Perform(c, "use", 15);
                        Perform(c, "use", 15);	
			Perform(c, "say", "我要为我的儿子报仇阿...。");
			Perform(c, "faceto", player);

			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			trg24 = 1;
		}
	}

	if (trg24 == 1)
	{
		c = GetChar("孙玉伯");
		c1 = GetChar("二公子");
		c2 = GetChar("律香彬");
		c3 = GetChar("无名高手");
		c4 = GetChar("律香川");
		c5 = GetChar("一级高官");
		c6 = GetChar("律香川一等杀手");
		c7 = GetChar("三公子");
		if (c>=0 && GetHP(c)<5000)
		{	
                        Perform(c, "pause", 40);
		        Perform(c, "say", "老夫以后不会在提起此事。。也不会在追究了。");
			Perform(c, "faceto", player);		
		        Perform(c, "say", "你对的住老夫。老夫感激你，；老夫告辞了。。");
			Perform(c, "pause", 6);	
			Perform(c, "faceto", player);
		        Perform(c, "say", "对，。是老夫惹的祸，老夫以后绝对不会在出现在你的面前。");
			Perform(c, "pause", 6);	
			Perform(c, "faceto", player);
		        Perform(c, "say", "伊人君！！你放老夫两次，老夫不会在追究此事了，我什么都没有了。");
			Perform(c, "pause", 6);	
			Perform(c, "faceto", player);
		        Perform(c, "say", "你们为什么这么的傻呀.老夫！！！");
			Perform(c, "pause", 6);	
			Perform(c, "faceto", player);
		        Perform(c, "say", "不..你杀死老夫吧，老夫现在什么也没有了，活着也没意思了。");
			Perform(c, "pause", 6);	
			Perform(c, "faceto", player);
		        Perform(c, "say", "老夫也不愿意这样做阿。可是这是为什么阿。我失去了这么多的好手..");
			Perform(c, "pause", 6);	
			Perform(c, "faceto", player);
		        Perform(c, "say", "为什么....老夫宁愿自己死，也不愿意连累你们呢。");
			Perform(c, "pause", 6);
			Perform(c, "faceto", player);
		        Perform(c, "say", "你们这是做什么阿？阿.....");
			Perform(c, "pause", 6);
			Perform(c, "faceto", player);
			Perform(c, "say", "我..。你，儿阿，难道爹不能为你们报仇吗？");
			Perform(c, "faceto", player);



                        Perform(c1, "use", 35);
		        Perform(c1, "say", "放了孙堂主，。");
			Perform(c1, "pause", 3);

                        Perform(c2, "use", 35);
		        Perform(c2, "say", "放了孙堂主，。");
			Perform(c2, "pause", 3);

                        Perform(c3, "use", 35);
		        Perform(c3, "say", "放了孙堂主，。");
			Perform(c3, "pause", 3);

                        Perform(c4, "use", 35);
			Perform(c4, "say", "放了孙堂主，。");
			Perform(c4, "pause", 3);

                        Perform(c5, "use", 35);
			Perform(c5, "say", "住手..放了孙堂主，我们已死谢罪。。");
			Perform(c5, "pause", 2);

                        Perform(c6, "use", 35);
		        Perform(c6, "say", "放了孙堂主，。");
			Perform(c6, "pause", 3);

                        Perform(c7, "use", 35);
		        Perform(c7, "say", "放了孙堂主，。");
			Perform(c7, "pause", 3);

			PlayerPerform("say", "祝大家玩的愉快。再见。。");
			PlayerPerform("pause", 1);
			PlayerPerform("say", "QQ号码765739946");
			PlayerPerform("pause", 1);
			PlayerPerform("say", "QQ号码765739946");
			PlayerPerform("pause", 1);
			PlayerPerform("say", "OK了....本任务到此结束..如有不懂的地方请联系我");
			PlayerPerform("pause", 8);
			PlayerPerform("say", "马上给我滚。");
			PlayerPerform("pause", 6);
			PlayerPerform("say", "这都是你自己惹的祸。");
			PlayerPerform("pause", 6);
			PlayerPerform("say", "你马上给我走。。要不然我一会又想杀你了。");
			PlayerPerform("pause", 6);
			PlayerPerform("say", "我不能让他们白白的死去，。他们在天上也不会安宁。。");
			PlayerPerform("pause", 6);
			PlayerPerform("say", "既然他们已死谢罪.....好，我在放你一次，如果你还不改的话，我决不留情了。");
			PlayerPerform("pause", 6);
			PlayerPerform("say", "但是他们已经为了你死掉了....");
			PlayerPerform("pause", 6);
			PlayerPerform("say", "你身边的人都是忠心耿耿？他们为了不让我杀你，却....");
			PlayerPerform("pause", 6);
			PlayerPerform("say", "阿。..。。为什么？？？");
			PlayerPerform("pause", 5);
			trg24 = 2;
			timer1 = now + 60;
		}
	}

     if (trg24==2 && now>timer1)
	{	
		RemoveNPC(GetAnyChar("孙玉伯"));

		 gameover = 1;
		 trg24 = 3;


	}



	c = GetAnyChar("孙玉伯");
	if (gameover!=-1 && c>=0 && GetHP(c)<=0)
	{			
		gameover = -1;
		timer1 = now + 1; 
	}

	if (gameover!=-1 && GetHP(player)<=0)
	{
		gameover = -1;
		timer1 = now + 2; 
	}	
	if ((gameover==1 || gameover==-1) && now>timer1)
	{
		GameOver(gameover);
		gameover = 2;
	}
}
