#include "shenghua.pst"
#include "shenghua1.pst"
string Name = "";
int Model = shenghuarenwuxuanze();
int Weapon = npcggjwuqi();
int Weapon2 = npcggjwuqi();
int Team = 1;
int View = 2500+Rand(2500);
int Think = 150;
int Attack1 = 50;
int Attack2 = 20;
int Attack3 = 30;
int Guard = 0;
int Dodge = 0;
int Jump = 1;
int Look = 1000;
int Burst = 10;
int Aim = 100;
int GetItem = 0;
int Spawn = Rand(120);
int HP = renwushengming3();

int npc;
int Stat;
int g_selfAddr;
OnInit(int this)
{
	fankongjingying(Name,Model);
    	Name = gsNames;
	g_selfAddr = this;
}
OnStart()
{
	npc = GetSelf(g_selfAddr);
	ChangeBehavior(npc, "run");

}
OnUpdate()
{

	if(Stat==0)
	{
		Stat++;
		npcztxs1(npc, HP);	
		return 0;
	}
        if(Stat+60<GetGameTime()){
        Stat=GetGameTime();
	Perform(npc,"use",34);
	Perform(npc,"use",8);
	Perform(npc,"use",4);
       }
}