// 伏虎山
int Rule = 4;
int RoundTime = 45;
int PlayerSpawn = 113;
int PlayerSpawnDir = 90;
int PlayerWeapon = 0;
int PlayerWeapon2 = 0;
int PlayerHP = 20000;
OnStart()
{
	AddNPC("npc17_01");
	AddNPC("npc17_02");
	AddNPC("npc17_03");
	AddNPC("npc17_04");
	AddNPC("npc17_05");
	AddNPC("npc17_06");
	AddNPC("npc17_07");
}
int player;
int trg0;
int trg1;
int trg2;
int timer0;
int timer1;
int timer2;
int timer3;
int s1;
int s2;
int s3;
int s4;
int k1;
int k2;
int k3;
int con;
int gameover; 
OnUpdate()
{	
	int now = GetGameTime();
	if (trg0==0)
	{
		int player = GetAnyChar("player");
		int c = GetChar("剑仙の朱雀");
		int c1 = GetChar("天兵·甲");
		int c2 = GetChar("天兵·乙");
		int c3 = GetChar("天兵·丙");
		int c4 = GetChar("天兵·丁");
		int c5 = GetChar("天兵·戊");
		int c6 = GetChar("天兵·己");
		if (GetHP(c) >0 && GetHP(c6)>0)
		{

			PlayerPerform("block", 0);
			PlayerPerform("say", "去找一把武器来用吧！！");
			PlayerPerform("pause", 3);
			PlayerPerform("say", "..可是！我的武器似乎被拿走了？");
			PlayerPerform("pause", 3);
			PlayerPerform("say", "..怎么感觉不到强大气息！只有朱雀？除了小心一点朱雀！其他都不是我对手");
			PlayerPerform("pause", 3);
			PlayerPerform("say", "..这里是..剑神的大本营么？");
			PlayerPerform("pause", 3);
			PlayerPerform("say", "...对了！我去快活林时中了埋伏了！！");
			PlayerPerform("pause", 3);
			PlayerPerform("say", "这里是...？");
			PlayerPerform("block", 1);
			trg0 = 1;
		}

	}
	if (trg0==1)
	{
		SetTarget(0, "char", c);
		SetTarget(1, "char", player);
		if (GetHP(c)>=0 && Distance(0, 1) < 100 && s1 < 1)
		{
			Perform(c, "say", "所有天兵全过来吧！消灭入侵者！");
			Perform(c, "pause", 5);
			Perform(c, "say", "哈哈哈！");
			Perform(c, "pause", 3);
			Perform(c, "say", "只是！我没有想到，你这么快就醒了？");
			Perform(c, "pause", 3);
			Perform(c, "say", "我只是要报仇，雪城一战，简直就是我们的耻辱！");
			Perform(c, "pause", 3);
			Perform(c, "say", "呵呵！你想的太美了，我可不是好心保你性命的！");
			Perform(c, "pause", 5);
			Perform(c, "say", "五爪峰那里被你给逃走了！玄武没杀了你！那就换我朱雀来杀");
			Perform(c, "aggress");
			Perform(c, "pause", 5);
			Perform(c, "say", "嘖嘖嘖！快活林现在的人都到洛阳了！害我们扑了空！现在麒麟正要去洛阳找他们！");
			Perform(c, "pause", 5);
			Perform(c, "say", "咦！居然让你到我这来了？");
			Perform(c, "faceto", player);

			ChangeBehavior(c1,"follow",player);
			Perform(c1, "pause", 30);

			ChangeBehavior(c2,"follow",player);
			Perform(c2, "pause", 30);

			ChangeBehavior(c3,"follow",player);
			Perform(c3, "pause", 30);

			ChangeBehavior(c4,"follow",player);
			Perform(c4, "pause", 30);

			ChangeBehavior(c5,"follow",player);
			Perform(c5, "pause", 30);

			ChangeBehavior(c6,"follow",player);
			Perform(c6, "pause", 30);

			PlayerPerform("block", 0);
			PlayerPerform("pause", 3);
			PlayerPerform("say", "....！！");
			PlayerPerform("pause", 5);
			PlayerPerform("say", "找死！！");
			PlayerPerform("pause", 10);
			PlayerPerform("say", "那就快点让我离开吧！！");
			PlayerPerform("pause", 5);
			PlayerPerform("say", "那为什么我会在这！？");
			PlayerPerform("pause", 5);
			PlayerPerform("say", "快点让开！让我回去快活林！");
			PlayerPerform("pause", 3);
			PlayerPerform("block", 1);
			s1 = 1;
		}
	}
}