ModernUO/Scripts/Mobiles/Monsters/Humanoid/Magic/Gargoyle.cs
2018-09-14 08:41:38 -07:00

74 lines
1.7 KiB
C#

using Server.Items;
namespace Server.Mobiles
{
public class Gargoyle : BaseCreature
{
public override string CorpseName => "a gargoyle corpse";
public override string DefaultName => "a gargoyle";
[Constructible]
public Gargoyle() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Body = 4;
BaseSoundID = 372;
SetStr( 146, 175 );
SetDex( 76, 95 );
SetInt( 81, 105 );
SetHits( 88, 105 );
SetDamage( 7, 14 );
SetDamageType( ResistanceType.Physical, 100 );
SetResistance( ResistanceType.Physical, 30, 35 );
SetResistance( ResistanceType.Fire, 25, 35 );
SetResistance( ResistanceType.Cold, 5, 10 );
SetResistance( ResistanceType.Poison, 15, 25 );
SetSkill( SkillName.EvalInt, 70.1, 85.0 );
SetSkill( SkillName.Magery, 70.1, 85.0 );
SetSkill( SkillName.MagicResist, 70.1, 85.0 );
SetSkill( SkillName.Tactics, 50.1, 70.0 );
SetSkill( SkillName.Wrestling, 40.1, 80.0 );
Fame = 3500;
Karma = -3500;
VirtualArmor = 32;
if ( 0.025 > Utility.RandomDouble() )
PackItem( new GargoylesPickaxe() );
}
public override bool CanFly => true;
public override void GenerateLoot()
{
AddLoot( LootPack.Average );
AddLoot( LootPack.MedScrolls );
AddLoot( LootPack.Gems, Utility.RandomMinMax( 1, 4 ) );
}
public override int TreasureMapLevel => 1;
public override int Meat => 1;
public Gargoyle( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 );
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}