67 lines
No EOL
1.5 KiB
C#
67 lines
No EOL
1.5 KiB
C#
using System;
|
|
using Server;
|
|
using Server.Items;
|
|
|
|
namespace Server.Mobiles
|
|
{
|
|
[CorpseName( "a liche's corpse" )]
|
|
public class Lich : BaseCreature
|
|
{
|
|
[Constructable]
|
|
public Lich() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
|
{
|
|
Name = "a lich";
|
|
Body = 24;
|
|
BaseSoundID = 0x3E9;
|
|
Clan = Clan.Undead;
|
|
|
|
SetStr( 171, 200 );
|
|
SetDex( 126, 145 );
|
|
SetInt( 276, 305 );
|
|
|
|
SetHits( 103, 120 );
|
|
|
|
SetDamage( 24, 26 );
|
|
|
|
SetSkill( SkillName.Concentration, 100.0 );
|
|
SetSkill( SkillName.Magery, 70.1, 80.0 );
|
|
SetSkill( SkillName.Meditation, 85.1, 95.0 );
|
|
SetSkill( SkillName.MagicResist, 80.1, 100.0 );
|
|
SetSkill( SkillName.Tactics, 70.1, 90.0 );
|
|
|
|
Fame = 8000;
|
|
Karma = -8000;
|
|
|
|
VirtualArmor = 50;
|
|
PackItem( new GnarledStaff() );
|
|
PackReg( 17, 24 );
|
|
PackItem( new Bone( Utility.RandomList(1,2,3,4) ) );
|
|
}
|
|
|
|
public override void GenerateLoot()
|
|
{
|
|
AddLoot( LootPack.Rich );
|
|
AddLoot( LootPack.MedScrolls, 2 );
|
|
}
|
|
|
|
public override bool CanRummageCorpses{ get{ return true; } }
|
|
public override bool BleedImmune{ get{ return true; } }
|
|
public override Poison PoisonImmune{ get{ return Poison.Lethal; } }
|
|
|
|
public Lich( 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();
|
|
}
|
|
}
|
|
} |