Om problem fixed. Looks like theres some problem with the onbeforedeath distro edit.
I replaced it with
and it works fine now.
I replaced it with
Code:
//Start Zombiex edit
Mobile killerx = this.FindMostRecentDamager(true);
if (killerx is Zombiex && (this.Map == Map.Felucca))
{
// Switch to BaseUndead if using Thagoras BaseUndead.cs
//What Should the Zombie virus not affect
if ( this.Summoned || this is Zombiex || this is AncientLich || this is Bogle || this is LichLord || this is Shade || this is Spectre || this is Wraith || this is BoneKnight || this is Ghoul || this is Mummy || this is SkeletalKnight || this is Skeleton || this is Zombie || this is ShadowKnight || this is DarknightCreeper || this is RevenantLion || this is LadyOfTheSnow || this is RottingCorpse || this is SkeletalDragon || this is AirElemental || this is IceElemental || this is ToxicElemental || this is PoisonElemental || this is FireElemental || this is WaterElemental || this is EarthElemental || this is Efreet || this is SnowElemental || this is AgapiteElemental || this is BronzeElemental || this is CopperElemental || this is DullCopperElemental || this is GoldenElemental || this is ShadowIronElemental || this is ValoriteElemental || this is VeriteElemental || this is BloodElemental )
//if (this is BaseUndead || this.Summoned)
{
return base.OnBeforeDeath();
}
else
{
double dhits, dstr;
Zombiex zomb = new Zombiex();
zomb.Map = this.Map;
zomb.Female = this.Female;
zomb.Body = this.Body;
zomb.Location = this.Location;
zomb.Hue = 768;
zomb.Name = this.Name;
zomb.Title = "*Infected*";
zomb.HairItemID = HairItemID;
zomb.HairHue = HairHue;
zomb.FacialHairItemID = FacialHairItemID;
zomb.FacialHairHue = FacialHairHue;
dhits = this.HitsMax / 2;
dstr = this.Str / 2;
for (int i = 0; i < this.Skills.Length; ++i)
{
zomb.Skills[i].Base = this.Skills[i].Base;
zomb.Skills[i].Cap = this.Skills[i].Cap;
}
for (int i = 0; i < this.Items.Count; i++)
{
zomb.AddItem(zomb.CloneItem(this.Items[i]));
}
zomb.HitsMaxSeed = this.HitsMax + (int)dhits;
zomb.Hits = this.HitsMax + (int)dhits;
zomb.DamageMin = this.DamageMin;
zomb.DamageMax = this.DamageMax;
zomb.Str = this.Str + (int)dstr;
zomb.MoveToWorld (this.Location, this.Map);
this.Delete();
}
}
//End Zombiex edit
and it works fine now.