// 秦皇陵7
int Rule = 5;
int RoundTime = 99;
int PlayerSpawn = 9;
int PlayerSpawnDir = 100;
int PlayerWeapon = 14;
int PlayerWeapon2 = 17;
int PlayerHP = 6000;

int trg0 = 0;

OnStart()
{
	AddNPC("7关1");
	AddNPC("7关2");
	AddNPC("7关3");
	AddNPC("7关4");
	AddNPC("7关5");
	AddNPC("7关6");
	AddNPC("7关7");
	AddNPC("7关8");
}

OnUpdate()
{
	int player = GetAnyChar("player");
	if (player < 0)
	{
		return 0;
	}
	int c;
	int c2;
	int c3;
	int c4;
	int c5;
	int c6;
	int c7;
	int c8;
	if (trg0 == 0)
	{
		c = GetAnyChar("蒙面人=1");
		c2 = GetAnyChar("蒙面人=2");
		c3 = GetAnyChar("蒙面人=3");
		c4 = GetAnyChar("蒙面人=4");
		c5 = GetAnyChar("蒙面人=5");
		c6 = GetAnyChar("蒙面人=6");
		c7 = GetAnyChar("蒙面人=7");
		c8 = GetAnyChar("蒙面人=8");

		if (c>=0 && c2>=0 && c3>=0 && c4>=0 && c5>=0 && c6>=0 && c7>=0 && c8>=0 && GetHP(player)>0)
		{

                        ChangeBehavior(c,"kill",player);
                        ChangeBehavior(c8,"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);
			Perform(c2, "pause", 8);
			Perform(c3, "pause", 8);
			Perform(c4, "pause", 8);
			Perform(c5, "pause", 8);
			Perform(c6, "pause", 8);
			Perform(c7, "pause", 8);
			Perform(c8, "pause", 8);
			Perform(c, "aggress");
			Perform(c, "say", "    那请先杀死我们在找兵兵吧！");
			Perform(c, "pause", 4);
			Perform(c, "say", "  你！！  哼哼...伊人君是吧..");
			Perform(c, "pause", 4);

			PlayerPerform("block", 0);
			PlayerPerform("say", "（好！）");
			PlayerPerform("pause", 4);
			PlayerPerform("say", "（不错！兵兵在哪里！..）");// 6
			PlayerPerform("pause", 4);
			PlayerPerform("say", "（这里好象有机关呢！还是小心点的好！）");
			PlayerPerform("pause", 2);
			PlayerPerform("say", "（现在已经快塌入重点了！我应该快速离开这里！然后去找兵兵...）");
			PlayerPerform("block", 1);

			trg0 = 1;
		}
	}
}