发表于 2009-2-4 11:531#
楼主string Name = "陪练";
int Model = 1;
int Weapon = 9;
int Weapon2 = 0;
int Team = 2;
int View = 2000;
int Think = 10;
int Attack1 = 10;
int Attack2 = 20;
int Attack3 = 10;
int Guard = 20;
int Dodge = 0;
int Jump = 20;
int Look = 1000;
int Burst = 30;
int Aim = 100;
int GetItem = 0;
int Spawn = 5;
int HP = 9990;
int g_selfAddr;
int g_self;
int tempHP;
OnInit(int this)
{
g_selfAddr = this;
}
OnStart()
{
int c = GetSelf(g_selfAddr);
ChangeBehavior(c, "run");
tempHP=GetHP(c)/10;
OnUpdate()
{
int a = GetSelf(g_selfAddr);
if(a>=0){
int hp = GetHP(a)/10;
if(hp>tempHP)
{
tempHP=hp;
}
if((hp+10)<tempHP)
{
Say(a,"我还有",hp,"的血!");
tempHP=hp;
}
}
}
int Model = 1;
int Weapon = 9;
int Weapon2 = 0;
int Team = 2;
int View = 2000;
int Think = 10;
int Attack1 = 10;
int Attack2 = 20;
int Attack3 = 10;
int Guard = 20;
int Dodge = 0;
int Jump = 20;
int Look = 1000;
int Burst = 30;
int Aim = 100;
int GetItem = 0;
int Spawn = 5;
int HP = 9990;
int g_selfAddr;
int g_self;
int tempHP;
OnInit(int this)
{
g_selfAddr = this;
}
OnStart()
{
int c = GetSelf(g_selfAddr);
ChangeBehavior(c, "run");
tempHP=GetHP(c)/10;
OnUpdate()
{
int a = GetSelf(g_selfAddr);
if(a>=0){
int hp = GetHP(a)/10;
if(hp>tempHP)
{
tempHP=hp;
}
if((hp+10)<tempHP)
{
Say(a,"我还有",hp,"的血!");
tempHP=hp;
}
}
}
UID 69132




