string Name = "ÂÄÃæÊ¹";
int Model = 10;
int Weapon = 6;
int Weapon2 = 0;
int Team = 1;
int View = 10000;
int Think = 10000;
int Attack1 = 25;
int Attack2 = 40;
int Attack3 = 20;
int Guard = 5;
int Dodge = 5;
int Jump = 5;
int Look = 60;
int Burst = 1;
int Aim = 50;
int GetItem = 0;
int Spawn = 34;
int HP = 32000;


int g_selfAddr;
int g_self;
int HPlast=300;
int Stat=0;
int realHP=0;
int timer=0;	

OnInit(int this)
{
	g_selfAddr = this;
}

OnStart()
{
	g_self = GetSelf(g_selfAddr);
	ChangeBehavior(g_self, "follow", "player");
}
OnUpdate()
{

if(Stat==0)
{
Stat++;return 0;
}

if(Stat==1)
{Stat++;realHP=GetHP(g_self);HPlast=realHP;return 0;}

if(timer%60==0)
{
Perform(g_self,"use",15);timer=0;
}

timer++;
int HPnow=GetHP(g_self);

if(HPnow==realHP&&HPlast<realHP)
{
HPlast=realHP;
}


}