string Name = "½©Ê¬¡÷";
int Model = 22;
int Weapon = 51;
int Weapon2 = 0;
int Team = 2;
int View = 280;
int Think = 100;
int Attack1 = 50;
int Attack2 = 20;
int Attack3 = 15;
int Guard = 0;
int Dodge = 0;
int Jump = 0;
int Look = 0;
int Burst = 0;
int Aim = 0;
int GetItem = 0;
int Spawn = 1040;
int HP = 1800;
	
int zhi;
int g_self;
int lxjszx0;
int lxjszx1;	
int HPlast=0;
int realHP=0;
int g_selfAddr;

OnInit(int this)
{
g_selfAddr = this;
}
OnStart()
{
g_self = GetSelf(g_selfAddr);      
ChangeBehavior(g_self, "patrol",1138);
}
OnUpdate()
{
int zhi = GetGameTime();
int player = GetAnyChar("player");  

if (zhi > lxjszx0)
{
if (g_self>0)
{
Perform(g_self, "use", 13);
lxjszx0 = zhi + 40; 
}
}
realHP=GetHP(g_self);
int HPnow = GetHP(g_self);
if(HPnow == realHP && HPlast < realHP)
{
HPlast = realHP;
}
if(HPnow < HPlast)
{
StopPerform(g_self);
int AtkP = HPlast - HPnow;
Say(g_self,"  Ô¹ÆøÇýÊ¹   HP  ",HPnow/10,".",HPnow%10);
HPlast = HPnow;
}
}











