// 灵魂亡灵的威力
int Rule = 1;
int RoundTime = 888;
int PlayerSpawn = 160;
int PlayerSpawnDir = 90;
int PlayerWeapon = 32;
int PlayerWeapon2 = 47;
int PlayerHP = 20000;

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 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 c;
	int c1;
	int c2;
	int c3;
	int c4;
	int c5;
	int c6;
	int c7;
	int c8;
	int c9;
	int c10;
	int now = GetGameTime();


	if (trg0 == 0)
	{
			

			PlayerPerform("use", 33);
			PlayerPerform("use", 34);
			PlayerPerform("use", 5);
                        PlayerPerform("say", "（有动静，上面好象有人！！）");
			PlayerPerform("pause", 2);			
			PlayerPerform("say", "（这里是什么地方。。.）");
			PlayerPerform("pause", 2);			
			PlayerPerform("say", "（都说老大..他们的老大是谁？他们死了。，他的会不会在这里，）");
			PlayerPerform("pause", 1);			
			PlayerPerform("say", "﹒这里是哪？..继承人跟孙玉城都已经死了。但是他们死之前..");
			PlayerPerform("block", 1);
		
			trg0 = 1; 		
		}		


if (trg1 == 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)
		{

			ChangeBehavior(c, "follow", player);
                        Perform(c, "use", 19);
                        Perform(c, "use", 5);
			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("block", 0);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("say", ".果真有人这..！");
			PlayerPerform("pause", 3);
			PlayerPerform("block", 1);


			trg1 = 1;

		}		
	}


	if (trg1 == 1)
	{
		c = GetAnyChar("僵尸1");
		if (c>=0 && GetHP(c)<GetMaxHP(c)/3 && GetHP(player)>0)
		{			
			Perform(c, "say", "！棘手。");
			Perform(c, "faceto", player);

			PlayerPerform("say", "不要废话");
			PlayerPerform("pause", 6);
			trg1 = 2;
		}
	}

if (trg1 == 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("say", "...这里的老大会是谁！出来...");
			PlayerPerform("pause", 1);

			trg1 = 3;
			timer0 = now + 3;
		}
	}

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

		trg1 = 4;
		timer1 = now + 1;
	}

if (trg1 == 4 && now>timer1)
	{
	  AddNPC("复战强化1");
	  AddNPC("复战强化2");
	  AddNPC("复战强化3");
	  AddNPC("复战强化4");
	  AddNPC("复战强化5");
	  AddNPC("复战强化6");
	  AddNPC("复战强化7");
	  AddNPC("复战强化8");

		trg1 = 5;
	}


if (trg2 == 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)
		{

			ChangeBehavior(c, "follow", player);
                        Perform(c, "use", 19);
                        Perform(c, "use", 5);
			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("block", 0);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("say", ".哼！果真是你们老大找我杀我。。不白来。");
			PlayerPerform("pause", 3);
			PlayerPerform("block", 1);


			trg2 = 1;

		}		
	}


	if (trg2 == 1)
	{
		c = GetAnyChar("强化人1");
		if (c>=0 && GetHP(c)<GetMaxHP(c)/3 && GetHP(player)>0)
		{			
			Perform(c, "say", "好厉害");
			Perform(c, "faceto", player);

			PlayerPerform("say", "哈哈...不厉害能闯到这里。。。");
			PlayerPerform("pause", 6);
			trg2 = 2;
		}
	}


if (trg2 == 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("say", "........");
			PlayerPerform("pause", 1);

			trg2 = 3;
			timer0 = now + 3;
		}
	}

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

		trg2 = 4;
		timer1 = now + 1;
	}

if (trg2 == 4 && now>timer1)
	{
	  AddNPC("复战PK1");
	  AddNPC("复战PK2");
	  AddNPC("复战PK3");
	  AddNPC("复战PK4");
	  AddNPC("复战PK5");
	  AddNPC("复战PK6");
	  AddNPC("复战PK7");
	  AddNPC("复战PK8");

		trg2 = 5;
	}

if (trg3 == 0)
	{
		c = GetChar("PK王1");
		c1 = GetChar("PK王2");
		c2 = GetChar("PK王3");
		c3 = GetChar("PK王4");
		c4 = GetChar("PK王5");
		c5 = GetChar("PK王6");
		c6 = GetChar("PK王7");
		c7 = GetChar("PK王8");
		if (c>=0 && GetEnemy(c)==player)
		{

			ChangeBehavior(c, "follow", player);
                        Perform(c, "use", 19);
                        Perform(c, "use", 5);
			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("block", 0);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("say", ".受死...。");
			PlayerPerform("pause", 3);
			PlayerPerform("block", 1);


			trg3 = 1;

		}		
	}


	if (trg3 == 1)
	{
		c = GetAnyChar("PK王1");
		if (c>=0 && GetHP(c)<GetMaxHP(c)/3 && GetHP(player)>0)
		{			
			Perform(c, "say", "好厉害.低估你了。");
			Perform(c, "faceto", player);

			PlayerPerform("say", "哼。。。");
			PlayerPerform("pause", 6);
			trg3 = 2;
		}
	}



if (trg3 == 2)
	{
		c = GetAnyChar("PK王1");
		c1 = GetAnyChar("PK王2");
		c2 = GetAnyChar("PK王3");
		c3 = GetAnyChar("PK王4");
		c4 = GetAnyChar("PK王5");
		c5 = GetAnyChar("PK王6");
		c6 = GetAnyChar("PK王7");
		c7 = GetAnyChar("PK王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("say", "........");
			PlayerPerform("pause", 1);

			trg3 = 3;
			timer0 = now + 3;
		}
	}

	if (trg3 == 3 && now>timer0)
	{
                RemoveNPC(GetAnyChar("PK王1"));
		RemoveNPC(GetAnyChar("PK王2"));
		RemoveNPC(GetAnyChar("PK王3"));
                RemoveNPC(GetAnyChar("PK王4"));
		RemoveNPC(GetAnyChar("PK王5"));
		RemoveNPC(GetAnyChar("PK王6"));
                RemoveNPC(GetAnyChar("PK王7"));
		RemoveNPC(GetAnyChar("PK王8"));

		trg3 = 4;
		timer1 = now + 1;
	}

if (trg3 == 4 && now>timer1)
	{
	  AddNPC("复战复体1");
	  AddNPC("复战复体2");
	  AddNPC("复战复体3");
	  AddNPC("复战复体4");
	  AddNPC("复战复体5");
	  AddNPC("复战复体6");
	  AddNPC("复战复体7");
	  AddNPC("复战复体8");

		trg3 = 5;
	}

if (trg4 == 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)
		{

			ChangeBehavior(c, "follow", player);
                        Perform(c, "use", 19);
                        Perform(c, "use", 5);
			Perform(c, "say", "那就看看你的本事了。");
			Perform(c, "pause", 5);
			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("block", 0);
			PlayerPerform("use", 15);
			PlayerPerform("use", 15);
			PlayerPerform("say", ".把你们老大叫出来。。...。");
			PlayerPerform("pause", 3);
			PlayerPerform("block", 1);


			trg4 = 1;

		}		
	}


	if (trg4 == 1)
	{
		c = GetAnyChar("灵魂复体1");
		if (c>=0 && GetHP(c)<GetMaxHP(c)/3 && GetHP(player)>0)
		{			
			Perform(c, "say", "好厉害.低估你了。");
			Perform(c, "faceto", player);

			PlayerPerform("say", "哼。。。");
			PlayerPerform("pause", 6);
			trg4 = 2;
		}
	}

if (trg4 == 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)
		{



			trg4 = 3;
			timer0 = now + 3;
		}
	}

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

		trg4 = 4;
		timer1 = now + 1;
	}

if (trg4 == 4 && now>timer1)
	{
	  AddNPC("复战1");
		trg4 = 5;
	}

if (trg5==0)
	{
		c = GetChar("灵魂亡灵");
		if (c>=0 && GetEnemy(c)==player)
		{

			ChangeBehavior(c, "follow", player);
                        Perform(c, "use", 19);
                        Perform(c, "use", 5);
                        Perform(c, "use", 34);
                        Perform(c, "use", 33);
                        Perform(c, "use", 41);
                        Perform(c, "use", 3);
			Perform(c, "say", "你这家伙杀我这么多手下，我不杀你杀谁，。拿命...");
			Perform(c, "pause", 4);
			Perform(c, "say", "我说的就是孙剑..是我的手下。你杀死他，我岂能不杀你。");
			Perform(c, "pause", 2);
			Perform(c, "say", "你杀死我的手下那么多...我岂能让你活命，是你自己招惹我，我可没招惹你。");
			Perform(c, "pause", 2);
			Perform(c, "say", "你肯定不是我的对手。。你不杀我，我也要杀你，太不把我灵魂放在眼里了。");
			Perform(c, "pause", 2);
			Perform(c, "faceto", player);
			Perform(c, "say", "对..不错...小子你行阿。。竟能见到我。");
			Perform(c, "pause", 1);


			PlayerPerform("block", 0);
			PlayerPerform("say", "看来要用全力了。。..");
			PlayerPerform("say", "阿？孙剑都是他的手下，这家伙一定很厉害...");
			PlayerPerform("pause", 2);
			PlayerPerform("say", "有.因为你是孙剑他们的余党..所以你要死");
			PlayerPerform("pause", 2);
			PlayerPerform("say", "那你就杀吧......反正杀不死你，我是不会善不甘休的。。");
			PlayerPerform("pause", 2);
			PlayerPerform("say", "笑话。我的目的是杀你。。你受死吧。。");
			PlayerPerform("pause", 2);
			PlayerPerform("say", "你是？...应该就是主谋了。。.");
			PlayerPerform("block", 1);

			trg5 = 1;
			timer0 = now + 12;
		}
	}

if (trg5 == 1 && now>timer0)
	{
	  AddNPC("复战复体1");
	  AddNPC("复战复体2");
	  AddNPC("复战复体3");
	  AddNPC("复战复体4");
	  AddNPC("复战复体5");
	  AddNPC("复战复体6");
	  AddNPC("复战复体7");

		trg5 = 2;
	}


if (trg6==0 && trg5==2)
	{
		c2 = GetAnyChar("灵魂复体1");
		if (c2>=0 && GetHP(c2)<=0)
		{
			reborn = c2;
			rebornName = "复战复体1";
			trg6 = 1;
			timer1 = now + 1;
		}
		c3 = GetAnyChar("灵魂复体2");
		if (c3>=0 && GetHP(c3)<=0)
		{
			reborn = c3;
			rebornName = "复战复体2";
			trg6 = 1;
			timer1 = now + 1;
		}
		c4 = GetAnyChar("灵魂复体3");
		if (c4>=0 && GetHP(c4)<=0)
		{
			reborn = c4;
			rebornName = "复战复体3";
			trg6 = 1;
			timer1 = now + 1;
		}
		c5 = GetAnyChar("灵魂复体4");
		if (c5>=0 && GetHP(c5)<=0)
		{
			reborn = c5;
			rebornName = "复战复体4";
			trg6 = 1;
			timer1 = now + 1;
		}
		c6 = GetAnyChar("灵魂复体5");
		if (c6>=0 && GetHP(c6)<=0)
		{
			reborn = c6;
			rebornName = "复战复体5";
			trg6 = 1;
			timer1 = now + 1;
		}
		c7 = GetAnyChar("灵魂复体6");
		if (c7>=0 && GetHP(c7)<=0)
		{
			reborn = c7;
			rebornName = "复战复体6";
			trg6 = 1;
			timer1 = now + 1;
		}
		c8 = GetAnyChar("灵魂复体7");
		if (c8>=0 && GetHP(c8)<=0)
		{
			reborn = c8;
			rebornName = "复战复体7";
			trg6 = 1;
			timer1 = now + 1;
		}
        }				
	if (trg6==1 && now>timer1)
	{
		RemoveNPC(reborn);
		timer1 = now + 1;
		trg6 = 2;
	}
	if (trg6==2 && now>timer1)
	{
		AddNPC(rebornName);
		trg6 = 0;
	}


if (trg7 == 0 && now>timer1)
	{
		c = GetChar("灵魂复体1");
		c1 = GetChar("灵魂复体2");
		c3 = GetChar("灵魂复体3");
		c4 = GetChar("灵魂复体4");
		c5 = GetChar("灵魂复体5");
		c6 = GetChar("灵魂复体6");
		c7 = GetChar("灵魂复体7");
		if (c>=0 && c1>0 && c3>0 && c4>0 && c5>0 && c6>0 && c7>0 )
		{

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

		        trg7 = 1;
			timer1 = now + 10;

	    }

       }

	if (trg7 == 1 && now>timer1)
	{
		c = GetChar("灵魂复体1");
		c1 = GetChar("灵魂复体2");
		c3 = GetChar("灵魂复体3");
		c4 = GetChar("灵魂复体4");
		c5 = GetChar("灵魂复体5");
		c6 = GetChar("灵魂复体6");
		c7 = GetChar("灵魂复体7");
		if (c>=0 && c1>0 && c3>0 && c4>0 && c5>0 && c6>0 && c7>0 )
		{

			ChangeBehavior(c, "follow", player);
			Perform(c, "faceto", player);	
                        Perform(c, "use", 19);
                        Perform(c, "use", 7);
			ChangeBehavior(c1, "follow", player);
                        Perform(c1, "use", 7);
                        Perform(c1, "use", 19);
			ChangeBehavior(c3, "follow", player);
                        Perform(c3, "use", 7);
                        Perform(c3, "use", 19);
			ChangeBehavior(c4, "follow", player);
                        Perform(c4, "use", 7);
                        Perform(c4, "use", 19);
			ChangeBehavior(c5, "follow", player);
                        Perform(c5, "use", 19);
                        Perform(c5, "use", 7);
			ChangeBehavior(c6, "follow", player);
                        Perform(c6, "use", 19);
                        Perform(c6, "use", 7);
			ChangeBehavior(c7, "follow", player);
                        Perform(c7, "use", 19);
                        Perform(c7, "use", 7);
		        trg7 = 0;
			timer1 = now + 10;

	           }

             }

	if (trg8 == 0)
	{
		c = GetAnyChar("灵魂亡灵");
		if (c>=0 && GetHP(c)<GetMaxHP(c)/2)
		{			
			Perform(c, "say", "好小子。你给老子等着..");

			PlayerPerform("say", "？？？？。");
			PlayerPerform("pause", 2);
			trg8 = 1;
		        timer1 = now + 5; 
		}
	}


     if (trg8==1 && now>timer1)
	{

                RemoveNPC(GetAnyChar("灵魂亡灵"));


		 gameover = 1;
		 trg8 = 2;


	}




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

}