//  快活林人事的迷惑
int Rule = 1;
int RoundTime = 90;
int PlayerSpawn = 1;
int PlayerSpawnDir = 80;
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 timer0 = 0;
int timer1 = 0;
int timer2 = 0;
int timer3 = 0;
int timer4 = 0;
int gameover = 0;

OnStart()
{
	AddNPC("雪城1");
	AddNPC("雪城杀手1");
	AddNPC("雪城杀手2");
	AddNPC("雪城杀手3");
	AddNPC("雪城杀手4");
	AddNPC("雪城杀手5");
	AddNPC("雪城杀手6");
	AddNPC("雪城杀手7");
}

OnUpdate()
{
	int player = GetAnyChar("player");
	if (player < 0)
	{
		return 0;
	}
	if (gameover == 2)
	{
		return 0;
	}
	
        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;
        int c13;
        int c14;
        int c15;
	int now = GetGameTime();
	

if (trg0 == 0)
	{
		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)
		{
			Perform(c, "faceto", player);	
                        Perform(c, "use", 5);
                        Perform(c, "use", 19);
                        Perform(c1, "use", 5);
                        Perform(c1, "use", 19);
                        Perform(c2, "use", 5);
                        Perform(c2, "use", 19);
                        Perform(c3, "use", 5);
                        Perform(c3, "use", 19);
                        Perform(c4, "use", 5);
                        Perform(c4, "use", 19);
                        Perform(c5, "use", 5);
                        Perform(c5, "use", 19);
                        Perform(c6, "use", 5);
                        Perform(c6, "use", 19);
                        Perform(c7, "use", 5);
                        Perform(c7, "use", 19);
		
			PlayerPerform("use", 19);
			PlayerPerform("use", 33);
			PlayerPerform("use", 34);
			PlayerPerform("use", 5);
			trg0 = 1;
		}
	}







        if (trg0 == 1)
	{
		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 && c1>=0 && c2>=0)
	        {
			Perform(c, "pause", 500);
 			Perform(c,"say", "那你们都去前面给我搜索一下，看那小子在哪，都快给我去。"); 
			Perform(c,"pause", 8);
 			Perform(c,"say", "都给我听清楚了吗？"); 
			Perform(c,"pause", 1);   
			Perform(c,"say", "要小心谨慎，不要大意。我们只许成功，不许失败。"); 
			Perform(c,"pause", 1);
			Perform(c,"say", "你们都给我用心的点，不要小看那家伙，听说武功不错。"); 
			Perform(c,"pause", 1);
			Perform(c,"say", "你们都给我听着。前面那家伙，咱主子下令，要干掉他）"); 

			ChangeBehavior(c1, "patrol", 61, 99, 108,  37, 123, 28, 0);
			Perform(c1,"pause", 8);
			Perform(c1,"say", "是。我们知道了。"); 
			Perform(c1,"pause", 5);
                        Perform(c1, "faceto", c);
			Perform(c1, "crouch", 1);

			ChangeBehavior(c2, "patrol", 61, 99, 108,  37, 123, 28, 0);
			Perform(c2,"pause", 8);
			Perform(c2,"say", "是。我们知道了。"); 
			Perform(c2,"pause", 5);
                        Perform(c2, "faceto", c);
			Perform(c2, "crouch", 1);

			ChangeBehavior(c3, "patrol", 61, 99, 108,  37, 123, 28, 0);
			Perform(c3,"pause", 8);
			Perform(c3,"say", "是。我们知道了。"); 
			Perform(c3,"pause", 5);
                        Perform(c3, "faceto", c);
			Perform(c3, "crouch", 1);

			ChangeBehavior(c4, "patrol", 61, 99, 108,  37, 123, 28, 0);
			Perform(c4,"pause", 8);
			Perform(c4,"say", "是。我们知道了。"); 
			Perform(c4,"pause", 5);
                        Perform(c4, "faceto", c);
			Perform(c4, "crouch", 1);

			ChangeBehavior(c5, "patrol", 61, 99, 108,  37, 123, 28, 0);
			Perform(c5,"pause", 8);
			Perform(c5,"say", "是。我们知道了。"); 
			Perform(c5,"pause", 5);
                        Perform(c5, "faceto", c);
			Perform(c5, "crouch", 1);

			ChangeBehavior(c6, "patrol", 61, 99, 108,  37, 123, 28, 0);
			Perform(c6,"pause", 8);
			Perform(c6,"say", "是。我们知道了。"); 
			Perform(c6,"pause", 5);
                        Perform(c6, "faceto", c);
			Perform(c6, "crouch", 1);

			ChangeBehavior(c7, "patrol", 61, 99, 108,  37, 123, 28, 0);
			Perform(c7,"pause", 8);
			Perform(c7,"say", "是。我们知道了。"); 
			Perform(c7,"pause", 5);
                        Perform(c7, "faceto", c);
			Perform(c7, "crouch", 1);



			PlayerPerform("block", 0);
			PlayerPerform("block", 1);
			PlayerPerform("block", 1);
			PlayerPerform("block", 1);
			PlayerPerform("say", "时间不多，我要赶紧行动。。");
                        PlayerPerform("say", "好..杀死他们，我要赶紧解决赶去洛阳..。"); 
			PlayerPerform("pause", 6);
			PlayerPerform("block", 1);
			PlayerPerform("block", 1);
			PlayerPerform("block", 1);
			PlayerPerform("block", 1);
			PlayerPerform("block", 1);
			PlayerPerform("block", 1);
                        PlayerPerform("say", "只有这些杀手们，和律香川的第一杀手。"); 
                        PlayerPerform("say", "律香川叫人杀我，哼，早知道他会这样做的，这里似乎没有主人，"); 
			PlayerPerform("pause", 6);
			PlayerPerform("block", 1);

			trg0 = 2;
                }          
        }     
    
if (trg0==2)
	{
		c = GetChar("律香川一等杀手");
		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, "say", "我们今天就打一次，我看你的能耐有多大。。。");
			Perform(c, "pause", 2);
			Perform(c, "faceto", player);

			PlayerPerform("block", 0);
			PlayerPerform("say", "好，那我就送你见阎王。。。");
			PlayerPerform("pause", 5);
			PlayerPerform("say", "....哼，不自量力。。");
			PlayerPerform("pause", 3);
			PlayerPerform("say", "杀手？");
			PlayerPerform("block", 1);

			trg0 = 3;
		}
	}

	if (trg1 == 0)
	{
		c = GetChar("杀手底下1");
		SetTarget(0, "char", c);
		SetTarget(1, "char", player);
		if (c>=0 && GetEnemy(c)==player)
		{
			Perform(c, "say", "大家快过来！！，发现入侵者了！！");
			Perform(c, "faceto", c);

			c2 = GetChar("杀手底下2"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}

			c2 = GetChar("杀手底下3"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}
			c2 = GetChar("杀手底下4"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}
			c2 = GetChar("杀手底下5"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}
			c2 = GetChar("杀手底下6"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}
			c2 = GetChar("杀手底下7"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}

			trg1 = 1;
		}
	}

	if (trg2 == 0)
	{
		c = GetChar("杀手底下2");
		SetTarget(0, "char", c);
		SetTarget(1, "char", player);
		if (c>=0 && GetEnemy(c)==player)
		{
			Perform(c, "say", "大家快过来！！，发现入侵者了！！");
			Perform(c, "faceto", c);

			c2 = GetChar("杀手底下1"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}

			c2 = GetChar("杀手底下3"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}
			c2 = GetChar("杀手底下4"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}
			c2 = GetChar("杀手底下5"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}
			c2 = GetChar("杀手底下6"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}
			c2 = GetChar("杀手底下7"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}

			trg2 = 1;
		}
	}

	if (trg3 == 0)
	{
		c = GetChar("杀手底下3");
		SetTarget(0, "char", c);
		SetTarget(1, "char", player);
		if (c>=0 && GetEnemy(c)==player)
		{
			Perform(c, "say", "大家快过来！！，发现入侵者了！！");
			Perform(c, "faceto", c);

			c2 = GetChar("杀手底下2"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}

			c2 = GetChar("杀手底下1"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}
			c2 = GetChar("杀手底下4"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}
			c2 = GetChar("杀手底下5"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}
			c2 = GetChar("杀手底下6"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}
			c2 = GetChar("杀手底下7"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}

			trg3 = 1;
		}
	}

	if (trg4 == 0)
	{
		c = GetChar("杀手底下4");
		SetTarget(0, "char", c);
		SetTarget(1, "char", player);
		if (c>=0 && GetEnemy(c)==player)
		{
			Perform(c, "say", "大家快过来！！，发现入侵者了！！");
			Perform(c, "faceto", c);

			c2 = GetChar("杀手底下2"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}

			c2 = GetChar("杀手底下3"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}
			c2 = GetChar("杀手底下1"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}
			c2 = GetChar("杀手底下5"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}
			c2 = GetChar("杀手底下6"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}
			c2 = GetChar("杀手底下7"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}

			trg4 = 1;
		}
	}

	if (trg5 == 0)
	{
		c = GetChar("杀手底下5");
		SetTarget(0, "char", c);
		SetTarget(1, "char", player);
		if (c>=0 && GetEnemy(c)==player)
		{
			Perform(c, "say", "大家快过来！！，发现入侵者了！！");
			Perform(c, "faceto", c);

			c2 = GetChar("杀手底下2"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}

			c2 = GetChar("杀手底下3"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}
			c2 = GetChar("杀手底下4"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}
			c2 = GetChar("杀手底下1"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}
			c2 = GetChar("杀手底下6"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}
			c2 = GetChar("杀手底下7"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}

			trg5 = 1;
		}
	}
	if (trg6 == 0)
	{
		c = GetChar("杀手底下6");
		SetTarget(0, "char", c);
		SetTarget(1, "char", player);
		if (c>=0 && GetEnemy(c)==player)
		{
			Perform(c, "say", "大家快过来！！，发现入侵者了！！");
			Perform(c, "faceto", c);

			c2 = GetChar("杀手底下2"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}

			c2 = GetChar("杀手底下3"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}
			c2 = GetChar("杀手底下4"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}
			c2 = GetChar("杀手底下5"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}
			c2 = GetChar("杀手底下1"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}
			c2 = GetChar("杀手底下7"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}

			trg6 = 1;
		}
	}
	if (trg7 == 0)
	{
		c = GetChar("杀手底下7");
		SetTarget(0, "char", c);
		SetTarget(1, "char", player);
		if (c>=0 && GetEnemy(c)==player)
		{
			Perform(c, "say", "大家快过来！！，发现入侵者了！！");
			Perform(c, "faceto", c);

			c2 = GetChar("杀手底下2"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}

			c2 = GetChar("杀手底下3"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}
			c2 = GetChar("杀手底下4"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}
			c2 = GetChar("杀手底下5"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}
			c2 = GetChar("杀手底下6"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}
			c2 = GetChar("杀手底下1"); 
			if (c2 >= 0)
			{
				ChangeBehavior(c2, "kill", player);
			}

			trg7 = 1;
		}
	}
      if (trg0 == 3)
	{
		c = GetAnyChar("律香川一等杀手");
		if (c>=0 && GetHP(c)<2000)
		{

		        Perform(c, "say", "阁下武功不错，改天在切磋。。。");
			Perform(c, "pause", 1);
			Perform(c, "say", "好小子..。");


			PlayerPerform("say", "想跑..");
			PlayerPerform("pause", 2);	
			PlayerPerform("block", 1);
		         trg0 = 4;
		         timer0 = now + 3;
		}
	}

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

               RemoveNPC(GetAnyChar("律香川一等杀手"));
		trg0 = 5;


	}


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

			PlayerPerform("say", "杀手果真是杀手，杀人于无形....");
			PlayerPerform("pause", 3);


			trg7 = 2;
			timer0 = now + 4;
		}		
	}
if (trg7==2 && now>timer0)
	{

                RemoveNPC(GetAnyChar("杀手底下1"));
		RemoveNPC(GetAnyChar("杀手底下2"));
                RemoveNPC(GetAnyChar("杀手底下3"));
		RemoveNPC(GetAnyChar("杀手底下4"));
                RemoveNPC(GetAnyChar("杀手底下5"));
		RemoveNPC(GetAnyChar("杀手底下6"));
                RemoveNPC(GetAnyChar("杀手底下7"));

		trg7 = 3;
		timer1 = now + 4;


	}
if (trg7==3 && now>timer1)
	{

              AddNPC("雪城魔刀1");
              AddNPC("雪城魔刀2");
              AddNPC("雪城魔刀3");
              AddNPC("雪城魔刀4");
              AddNPC("雪城魔刀5");
		trg7 = 4;


	}


    if (trg7==4)
	{
		c = GetAnyChar("魔刀侍卫1");
		c1 = GetAnyChar("魔刀侍卫2");
		c2 = GetAnyChar("魔刀侍卫3");
		c3 = GetAnyChar("魔刀侍卫4");
		c4 = GetAnyChar("魔刀侍卫5");
		if (c>=0 && GetEnemy(c)==player)
		{
                        ChangeBehavior(c,"follow",player);
                        Perform(c, "use", 5);
                        Perform(c, "use", 19);
			Perform(c, "say", "让你尝尝我们魔刀的厉害");
			Perform(c, "faceto", player);

                        ChangeBehavior(c1,"follow",player);
                        Perform(c1, "use", 5);
                        Perform(c1, "use", 19);

                        ChangeBehavior(c2,"follow",player);
                        Perform(c2, "use", 5);
                        Perform(c2, "use", 19);

                        ChangeBehavior(c3,"follow",player);
                        Perform(c3, "use", 5);
                        Perform(c3, "use", 19);
                        ChangeBehavior(c4,"follow",player);
                        Perform(c4, "use", 5);
                        Perform(c4, "use", 19);

		trg7 = 5;


	}
}


      if (trg7 == 5)
	{
		c = GetAnyChar("魔刀侍卫1");
		c1 = GetAnyChar("魔刀侍卫2");
		c2 = GetAnyChar("魔刀侍卫3");
		c3 = GetAnyChar("魔刀侍卫4");
		c4 = GetAnyChar("魔刀侍卫5");
		if (GetHP(c)<=0 && GetHP(c1)<=0 && GetHP(c2)<=0 && GetHP(c3)<=0 && GetHP(c4)<=0 &&  player>=0 && GetHP(player)>0)
		{

			PlayerPerform("say", "....这里的埋伏不少阿。。");
			PlayerPerform("pause", 3);


			trg7 = 6;
			timer0 = now + 4;
		}		
	}

if (trg7==6 && now>timer0)
	{

                RemoveNPC(GetAnyChar("魔刀侍卫1"));
		RemoveNPC(GetAnyChar("魔刀侍卫2"));
                RemoveNPC(GetAnyChar("魔刀侍卫3"));
		RemoveNPC(GetAnyChar("魔刀侍卫4"));
                RemoveNPC(GetAnyChar("魔刀侍卫5"));

		trg7 = 7;
		timer1 = now + 4;


	}
if (trg7==7 && now>timer1)
	{

              AddNPC("雪城神枪1");
              AddNPC("雪城神枪2");
              AddNPC("雪城神枪3");
              AddNPC("雪城神枪4");
              AddNPC("雪城神枪5");
		trg7 = 8;


	}

    if (trg7==8)
	{
		c = GetAnyChar("神枪手1");
		c1 = GetAnyChar("神枪手2");
		c2 = GetAnyChar("神枪手3");
		c3 = GetAnyChar("神枪手4");
		c4 = GetAnyChar("神枪手5");
		if (c>=0 && GetEnemy(c)==player)
		{
                        ChangeBehavior(c,"follow",player);
                        Perform(c, "use", 5);
                        Perform(c, "use", 19);
			Perform(c, "say", "竟敢在这里撒野，看我怎么收拾你。");
			Perform(c, "faceto", player);

                        ChangeBehavior(c1,"follow",player);
                        Perform(c1, "use", 5);
                        Perform(c1, "use", 19);

                        ChangeBehavior(c2,"follow",player);
                        Perform(c2, "use", 5);
                        Perform(c2, "use", 19);

                        ChangeBehavior(c3,"follow",player);
                        Perform(c3, "use", 5);
                        Perform(c3, "use", 19);
                        ChangeBehavior(c4,"follow",player);
                        Perform(c4, "use", 5);
                        Perform(c4, "use", 19);

		trg7 = 9;


	}
}

      if (trg7 == 9)
	{
		c = GetAnyChar("神枪手1");
		c1 = GetAnyChar("神枪手2");
		c2 = GetAnyChar("神枪手3");
		c3 = GetAnyChar("神枪手4");
		c4 = GetAnyChar("神枪手5");
		if (GetHP(c)<=0 && GetHP(c1)<=0 && GetHP(c2)<=0 && GetHP(c3)<=0 && GetHP(c4)<=0 &&  player>=0 && GetHP(player)>0)
		{

			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("say", "......。。呜，棘手。");
			PlayerPerform("pause", 3);


			trg7 = 10;
			timer0 = now + 4;
		}		
	}
if (trg7==10 && now>timer0)
	{

                RemoveNPC(GetAnyChar("神枪手1"));
		RemoveNPC(GetAnyChar("神枪手2"));
                RemoveNPC(GetAnyChar("神枪手3"));
		RemoveNPC(GetAnyChar("神枪手4"));
                RemoveNPC(GetAnyChar("神枪手5"));

		trg7 = 11;
		timer1 = now + 4;


	}
if (trg7==11 && now>timer1)
	{

              AddNPC("雪城护法1");
              AddNPC("雪城护法2");
              AddNPC("雪城护法3");
              AddNPC("雪城护法4");
              AddNPC("雪城护法5");
              AddNPC("雪城护法6");
              AddNPC("雪城护法7");
              AddNPC("雪城护法8");
		trg7 = 12;


	}

   if (trg8==0)
	{
		c = GetAnyChar("雪城护法1");
		c1 = GetAnyChar("雪城护法2");
		c2 = GetAnyChar("雪城护法3");
		c3 = GetAnyChar("雪城护法4");
		c4 = GetAnyChar("雪城护法5");
		c5 = GetAnyChar("雪城护法6");
		c6 = GetAnyChar("雪城护法7");
		c7 = GetAnyChar("雪城护法8");
		if (c>=0 && GetEnemy(c)==player)
		{
                        ChangeBehavior(c,"follow",player);
                        Perform(c, "use", 5);
                        Perform(c, "use", 19);
			Perform(c, "say", "你死期到了，看你有多大劲。人是杀不完的，哼，小子。");
			Perform(c, "faceto", player);

                        ChangeBehavior(c1,"follow",player);
                        Perform(c1, "use", 5);
                        Perform(c1, "use", 19);

                        ChangeBehavior(c2,"follow",player);
                        Perform(c2, "use", 5);
                        Perform(c2, "use", 19);

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

		trg8 = 1;


	}
}
 if (trg8 == 1)
	{
		c = GetAnyChar("雪城护法1");
		if (GetHP(c) <= 0)
		{
			Say(c, "你们快活林的人快要灭绝了。。");
			trg8 = 2;
		}
	}



      if (trg8 == 2)
	{
		c = GetAnyChar("雪城护法1");
		c1 = GetAnyChar("雪城护法2");
		c2 = GetAnyChar("雪城护法3");
		c3 = GetAnyChar("雪城护法4");
		c4 = GetAnyChar("雪城护法5");
		c5 = GetAnyChar("雪城护法6");
		c6 = GetAnyChar("雪城护法7");
		c7 = GetAnyChar("雪城护法8");
if (GetHP(c)<=0 && GetHP(c1)<=0 && GetHP(c2)<=0 && GetHP(c3)<=0 && GetHP(c4)<=0 &&  GetHP(c5)<=0 && GetHP(c6)<=0 && GetHP(c7)<=0 && player>=0 && GetHP(player)>0)
		{



			PlayerPerform("use", 15);	
			PlayerPerform("use", 15);	
			PlayerPerform("say", "不会孙玉伯把快活林的人抓了起来？那梦。。.");

			trg8 = 3;
			timer0 = now + 5;

		}
	}
if (trg8==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"));

		trg8 = 4;
		timer1 = now + 4;


	}
if (trg8==4 && now>timer1)
	{

              AddNPC("雪城人1");
              AddNPC("雪城人2");
              AddNPC("雪城人3");
		trg8 = 5;


	}


    if (trg9 == 0)
	{
		c = GetAnyChar("伊人梦");
		c1 = GetAnyChar("凤凤");
		c2 = GetAnyChar("高老大");
		if (c>=0 && GetEnemy(c)==player)
		{			
                        Perform(c, "use", 5);
                        Perform(c, "use", 19);
		        Perform(c2, "say", "...。到时候你自己就知道了。。动手。。。");
			Perform(c2, "pause", 5);
		        Perform(c, "say", "老公，对不起了。");
			Perform(c, "pause", 5);
			Perform(c, "say", "别说太多，假装跟我打。要不然你走不出这里的。");

                        ChangeBehavior(c1,"follow",player);
                        Perform(c1, "use", 5);
                        Perform(c1, "use", 19);
		        Perform(c1, "say", "...。依计行事就对了。");
			Perform(c1, "pause", 3);
		        Perform(c1, "say", "对不起了，君。只有这样，你才能活着走出去。");
			Perform(c1, "pause", 2);
			Perform(c1, "faceto", c);

                        ChangeBehavior(c2,"follow",player);
                        Perform(c2, "use", 5);
                        Perform(c2, "use", 19);
                        Perform(c2, "use", 15);
                        Perform(c2, "use", 20);
		        Perform(c2, "say", "...。。听我的。");
			Perform(c2, "pause", 5);
		        Perform(c2, "say", "...。依计行事就对了。听我的。");
			Perform(c2, "pause", 3);
			Perform(c2, "faceto", c);


			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("say", "你们来真的阿。。.");
			PlayerPerform("pause", 1);
			PlayerPerform("say", "为什么我们要打，我们大不了跟他们拼了。.");
			PlayerPerform("pause", 1);
			PlayerPerform("say", "这是怎么回事吗？..");
			PlayerPerform("pause", 6);
			PlayerPerform("block", 1);

			trg9 = 1;
		        timer0 = now + 60;
		}
	}

	if (trg9==1 && now>timer0)
	{
		c = GetChar("伊人梦");
		c1 = GetChar("凤凤");
		c2 = GetChar("高老大");
		SetTarget(0, "char", c);
		SetTarget(1, "char", player);
		if (c>=0 && Distance(0, 1)<150)
		{				
			Perform(c, "pause", 100);
			Perform(c, "say", "抓紧时间干掉老头子，老公这一切全靠你了。，");
			Perform(c, "pause", 1);
			Perform(c, "say", "现在你知道是什么事情了，，就不用想太多，");
			Perform(c, "pause", 1);
			Perform(c, "say", "孙玉伯会这样利用我们，就是为了让你难堪。，");
			Perform(c, "pause", 1);
			Perform(c, "say", "为了我们快活林能够安宁，我们只好这样做了。，");
			Perform(c, "pause", 1);
			Perform(c, "say", "如果一但打草精蛇，我们快活林的人就会死无葬身之地啊。，");
			Perform(c, "pause", 1);
			Perform(c, "say", "你赶紧敢去洛阳。。我们暂时在孙玉伯那里，");
			Perform(c, "pause", 4);
			Perform(c, "say", "现在还不是时候，。因为我们快活林的人危在旦夕。");
			Perform(c, "pause", 4);
			Perform(c, "say", "..我们被孙玉伯抓了起来，如果不这样做，他就会杀死快活林所有人。。");
			Perform(c, "pause", 2);
			Perform(c, "faceto", player);

			Perform(c1, "pause", 200000);
			Perform(c1, "faceto", player);

			Perform(c2, "pause", 200000);
			Perform(c2, "faceto", player);

			PlayerPerform("block", 0);
			PlayerPerform("say", "好，我看那老家伙到底能耍出什么花样来。那我先走了。。");
			PlayerPerform("pause", 7);
			PlayerPerform("say", "什么意思吗？..我真的一点都不懂是什么事。");
			PlayerPerform("pause", 4);
			PlayerPerform("say", "为什么，大不了跟他决一死战呢，");
			PlayerPerform("pause", 4);
			PlayerPerform("say", "到底是怎么回事，我们为什么要打，我是你老公阿。");
			PlayerPerform("block", 1);

			timer1 = now + 16;
		         gameover = 1;
			trg9 = 2;
		}
	}




	c = GetAnyChar("伊人梦");
	if (gameover!=-1 && c>=0 && GetHP(c)<=0)
	{			
		gameover = -1;
		timer1 = now + 1; 
	}

	c = GetAnyChar("凤凤");
	if (gameover!=-1 && c>=0 && GetHP(c)<=0)
	{			
		gameover = -1;
		timer1 = now + 1; 
	}
	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;
	}

}