* 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
87 lines
2.3 KiB
C#
87 lines
2.3 KiB
C#
using Server.Ethics;
|
|
|
|
namespace Server.Mobiles
|
|
{
|
|
public class UnholyFamiliar : BaseCreature
|
|
{
|
|
[Constructible]
|
|
public UnholyFamiliar()
|
|
: base(AIType.AI_Melee)
|
|
{
|
|
Body = 99;
|
|
BaseSoundID = 0xE5;
|
|
|
|
SetStr(96, 120);
|
|
SetDex(81, 105);
|
|
SetInt(36, 60);
|
|
|
|
SetHits(58, 72);
|
|
SetMana(0);
|
|
|
|
SetDamage(11, 17);
|
|
|
|
SetDamageType(ResistanceType.Physical, 100);
|
|
|
|
SetResistance(ResistanceType.Physical, 20, 25);
|
|
SetResistance(ResistanceType.Fire, 10, 20);
|
|
SetResistance(ResistanceType.Cold, 5, 10);
|
|
SetResistance(ResistanceType.Poison, 5, 10);
|
|
SetResistance(ResistanceType.Energy, 10, 15);
|
|
|
|
SetSkill(SkillName.MagicResist, 57.6, 75.0);
|
|
SetSkill(SkillName.Tactics, 50.1, 70.0);
|
|
SetSkill(SkillName.Wrestling, 60.1, 80.0);
|
|
|
|
Fame = 2500;
|
|
Karma = 2500;
|
|
|
|
VirtualArmor = 22;
|
|
|
|
Tamable = false;
|
|
ControlSlots = 1;
|
|
}
|
|
|
|
public UnholyFamiliar(Serial serial)
|
|
: base(serial)
|
|
{
|
|
}
|
|
|
|
public override string CorpseName => "an evil corpse";
|
|
public override bool IsDispellable => false;
|
|
public override bool IsBondable => false;
|
|
public override string DefaultName => "a dark wolf";
|
|
|
|
public override int Meat => 1;
|
|
public override int Hides => 7;
|
|
public override FoodType FavoriteFood => FoodType.Meat;
|
|
public override PackInstinct PackInstinct => PackInstinct.Canine;
|
|
|
|
public override string ApplyNameSuffix(string suffix)
|
|
{
|
|
if (suffix.Length == 0)
|
|
{
|
|
suffix = Ethic.Evil.Definition.Adjunct.String;
|
|
}
|
|
else
|
|
{
|
|
suffix = $"{suffix} {Ethic.Evil.Definition.Adjunct.String}";
|
|
}
|
|
|
|
return base.ApplyNameSuffix(suffix);
|
|
}
|
|
|
|
public override void Serialize(IGenericWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
|
|
writer.Write(0); // version
|
|
}
|
|
|
|
public override void Deserialize(IGenericReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
|
|
var version = reader.ReadInt();
|
|
}
|
|
}
|
|
}
|