* Adds the following configurations: * `movement.delay.npcMinDelay` - 0.1 - Pets or Non-monster NPCs * `movement.delay.npcMaxDelay` - 0.4 - Pets or Non-monster NPCs * `movement.delay.monsterMinDelay` - 0.4 - Non-pet Monsters or NPC vs Player Combat * `movement.delay.monsterMaxDelay` - 0.8 - Non-pet Monsters or NPC vs Player Combat * `movement.delay.monsterMinDex` - 150 - Dex maximum for delay by dex * `movement.delay.MinDex` - 190 - Dex maximum for delay by dex
99 lines
2.6 KiB
C#
99 lines
2.6 KiB
C#
using Server.Items;
|
|
|
|
namespace Server.Mobiles
|
|
{
|
|
[TypeAlias("Server.Mobiles.Iceserpant")]
|
|
public class IceSerpent : BaseCreature
|
|
{
|
|
[Constructible]
|
|
public IceSerpent() : base(AIType.AI_Melee)
|
|
{
|
|
Body = 89;
|
|
BaseSoundID = 219;
|
|
|
|
SetStr(216, 245);
|
|
SetDex(26, 50);
|
|
SetInt(66, 85);
|
|
|
|
SetHits(130, 147);
|
|
SetMana(0);
|
|
|
|
SetDamage(7, 17);
|
|
|
|
SetDamageType(ResistanceType.Physical, 10);
|
|
SetDamageType(ResistanceType.Cold, 90);
|
|
|
|
SetResistance(ResistanceType.Physical, 30, 35);
|
|
SetResistance(ResistanceType.Cold, 80, 90);
|
|
SetResistance(ResistanceType.Poison, 15, 25);
|
|
SetResistance(ResistanceType.Energy, 10, 20);
|
|
|
|
SetSkill(SkillName.Anatomy, 27.5, 50.0);
|
|
SetSkill(SkillName.MagicResist, 25.1, 40.0);
|
|
SetSkill(SkillName.Tactics, 75.1, 80.0);
|
|
SetSkill(SkillName.Wrestling, 60.1, 80.0);
|
|
|
|
Fame = 3500;
|
|
Karma = -3500;
|
|
|
|
VirtualArmor = 32;
|
|
|
|
PackItem(Loot.RandomArmorOrShieldOrWeapon());
|
|
|
|
PackItem(
|
|
Utility.Random(10) switch
|
|
{
|
|
0 => new LeftArm(),
|
|
1 => new RightArm(),
|
|
2 => new Torso(),
|
|
3 => new Bone(),
|
|
4 => new RibCage(),
|
|
5 => new RibCage(),
|
|
_ => new BonePile() // 6-9
|
|
}
|
|
);
|
|
|
|
if (Utility.RandomDouble() < 0.025)
|
|
{
|
|
PackItem(new GlacialStaff());
|
|
}
|
|
}
|
|
|
|
public IceSerpent(Serial serial) : base(serial)
|
|
{
|
|
}
|
|
|
|
public override string CorpseName => "an ice serpent corpse";
|
|
public override string DefaultName => "a giant ice serpent";
|
|
|
|
public override bool DeathAdderCharmable => true;
|
|
|
|
public override int Meat => 4;
|
|
public override int Hides => 15;
|
|
public override HideType HideType => HideType.Spined;
|
|
|
|
public override void GenerateLoot()
|
|
{
|
|
AddLoot(LootPack.Meager);
|
|
}
|
|
|
|
public override void Serialize(IGenericWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
|
|
writer.Write(0);
|
|
}
|
|
|
|
public override void Deserialize(IGenericReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
|
|
var version = reader.ReadInt();
|
|
|
|
if (BaseSoundID == -1)
|
|
{
|
|
BaseSoundID = 219;
|
|
}
|
|
}
|
|
}
|
|
}
|