public override void OnGaveMeleeAttack(Mobile defender) { base.OnGaveMeleeAttack(defender); if (defender is PlayerMobile) { if (defender.Hits < 10) { Zombiex zomb = new Zombiex(); zomb.Map = defender.Map; zomb.Female = defender.Female; zomb.Body = defender.Body; zomb.Location = defender.Location; zomb.Hue = Utility.RandomMinMax(1267, 1272); zomb.Name = defender.Name; zomb.Title = "*Infected*"; //21JAN2008 Added Hair & Facial & Lower Torso Items *** START *** zomb.HairItemID = defender.HairItemID; zomb.HairHue = defender.HairHue; zomb.FacialHairItemID = defender.FacialHairItemID; zomb.FacialHairHue = defender.FacialHairHue; zomb.BodyMod = defender.BodyMod; zomb.EquipItemFromLayer(defender, zomb, Layer.InnerLegs); zomb.EquipItemFromLayer(defender, zomb, Layer.OuterLegs); zomb.EquipItemFromLayer(defender, zomb, Layer.InnerTorso); zomb.EquipItemFromLayer(defender, zomb, Layer.MiddleTorso); zomb.EquipItemFromLayer(defender, zomb, Layer.OuterTorso); zomb.EquipItemFromLayer(defender, zomb, Layer.Waist); //if (zomb.Female != null) if (!zomb.Female) zomb.EquipItemFromLayer(defender, zomb, Layer.Shirt); //21JAN2008 Some updated *** END *** new Zombiex(); defender.Kill(); } switch (Utility.Random(2)) { case 0: this.Str -= 1; //this.Say(" losing 1 Str from hitting"); break; } } if (defender is BaseCreature) { switch (Utility.Random(4)) { case 0: this.Str -= 1; //this.Say(" losing 1 Str from hitting"); break; } } }
public override void OnGaveMeleeAttack(Mobile defender) { base.OnGaveMeleeAttack(defender); if (defender is PlayerMobile) { if (defender.Hits < 10) { Zombiex zomb = new Zombiex(); zomb.Map = defender.Map; zomb.Female = defender.Female; zomb.Body = defender.Body; zomb.Location = defender.Location; zomb.Hue = Utility.RandomMinMax(1267, 1272); zomb.Name = defender.Name; zomb.Title = "*Infected*"; //21JAN2008 Added Hair & Facial & Lower Torso Items *** START *** zomb.HairItemID = defender.HairItemID; zomb.HairHue = defender.HairHue; zomb.FacialHairItemID = defender.FacialHairItemID; zomb.FacialHairHue = defender.FacialHairHue; zomb.BodyMod = defender.BodyMod; zomb.EquipItemFromLayer(defender, zomb, Layer.InnerLegs); zomb.EquipItemFromLayer(defender, zomb, Layer.OuterLegs); zomb.EquipItemFromLayer(defender, zomb, Layer.InnerTorso); zomb.EquipItemFromLayer(defender, zomb, Layer.MiddleTorso); zomb.EquipItemFromLayer(defender, zomb, Layer.OuterTorso); zomb.EquipItemFromLayer(defender, zomb, Layer.Waist); //if (zomb.Female != null) if (!zomb.Female) { zomb.EquipItemFromLayer(defender, zomb, Layer.Shirt); } //21JAN2008 Some updated *** END *** new Zombiex(); defender.Kill(); } switch (Utility.Random(2)) { case 0: this.Str -= 1; //this.Say(" losing 1 Str from hitting"); break; } } if (defender is BaseCreature) { switch (Utility.Random(4)) { case 0: this.Str -= 1; //this.Say(" losing 1 Str from hitting"); break; } } }