H
hydroxtrem
Guest
um a little stuck?
ok i tried makeing a monster script{harpie} by compareing 3 other scripts to it and working from them and wut not, but when i try to compile i get errors, so can anyone tell me what is wrong with this
[code:1]using System;
using System.Collections;
using Server.Items;
using Server.Targeting;
using Server.Scripts.Misc;
using Server.Scripts.Items.Weapons.SpearsAndForks;
namespace Server.Scripts.Mobiles.Monsters.Melee
{
public class Harpie : AgressiveAI
{
[Contructable]
public Harpie()
{
this.body = 0x2D;
this.name = Harpie();
this.InitStats(Utility.Random(140,100), Utility.Random(80,60), Utility.Random(70,46));
this.Skills[SkillName.Wrestling].Base = Utility.Random(60,40);
this.Skills[SkillName.Tactics].Base = Utility.Random(50,30);
this.Fame = Utility.Random(2000,2000);
this.Karma = Utility.Random(1250,1250);
AddItem( new Gold( 50, 75 ) );
}
public Harpie( Serial serial ) : base( serial )
{
}
public override bool CheckAttack( Mobile m )
{
return m.Player || m.Body.IsHuman || m.Body.IsAnimal;
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
public override double GetValueFrom( Mobile m )
{
return -this.GetDistanceToSqrt( m );
}
}
}[/code:1][/quote]
ok i tried makeing a monster script{harpie} by compareing 3 other scripts to it and working from them and wut not, but when i try to compile i get errors, so can anyone tell me what is wrong with this
[code:1]using System;
using System.Collections;
using Server.Items;
using Server.Targeting;
using Server.Scripts.Misc;
using Server.Scripts.Items.Weapons.SpearsAndForks;
namespace Server.Scripts.Mobiles.Monsters.Melee
{
public class Harpie : AgressiveAI
{
[Contructable]
public Harpie()
{
this.body = 0x2D;
this.name = Harpie();
this.InitStats(Utility.Random(140,100), Utility.Random(80,60), Utility.Random(70,46));
this.Skills[SkillName.Wrestling].Base = Utility.Random(60,40);
this.Skills[SkillName.Tactics].Base = Utility.Random(50,30);
this.Fame = Utility.Random(2000,2000);
this.Karma = Utility.Random(1250,1250);
AddItem( new Gold( 50, 75 ) );
}
public Harpie( Serial serial ) : base( serial )
{
}
public override bool CheckAttack( Mobile m )
{
return m.Player || m.Body.IsHuman || m.Body.IsAnimal;
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
public override double GetValueFrom( Mobile m )
{
return -this.GetDistanceToSqrt( m );
}
}
}[/code:1][/quote]