string Name	= "不可不戒";
int Model =	5;
int Weapon = 17;
int Weapon2 = 8;
int Team = 0;
int View = 2000;
int Think = 100;
int	Attack1	= 35;
int Attack2 = 25;
int Attack3 = 30;
int	Guard =	20;
int	Dodge =	10;
int Jump = 20;
int Look = 10;
int Burst = 45;
int Aim = 80;
int GetItem = 0;
int Spawn = 48;
int HP = 4000;
	
int g_selfAddr;
int g_self;
void OnInit(int this)
{
	g_selfAddr = this;
}

void OnStart()
{
	int c = GetSelf(g_selfAddr);
	int player = GetChar("player");
	ChangeBehavior(c, "kill",player);
}

void  OnUpdate()
{
	int c = GetSelf(g_selfAddr);
	int player = GetChar("player");
SetTarget(0, "char", player);
SetTarget(1, "char", g_selfAddr);
			if (Distance(0, 1) > 350)
			{
Attack1	= 15;
Attack2 = 15;
Attack3 = 15;
Guard =	35;
Dodge =	8;
Jump = 60;
Look = 10;
Burst = 80;}
if (Distance(0, 1) < 350)
			{
int	Attack1	= 35;
int Attack2 = 25;
int Attack3 = 30;
int	Guard =	20;
int	Dodge =	10;
int Jump = 20;
int Look = 10;
int Burst = 45;}	
			
}
