public void SummonUndead(Mobile target) { BaseCreature summon = null; switch (Utility.Random(11)) { default: case 0: summon = new Skeleton(); break; case 1: summon = new Zombie(); break; case 2: summon = new Wraith(); break; case 3: summon = new Spectre(); break; case 4: summon = new Ghoul(); break; case 5: summon = new Mummy(); break; case 6: summon = new Bogle(); break; case 7: summon = new BoneKnight(); break; case 8: summon = new SkeletalKnight(); break; case 9: summon = new Lich(); break; case 10: summon = new SkeletalMage(); break; } summon.Team = Team; summon.FightMode = FightMode.Closest; summon.MoveToWorld(target.Location, target.Map); Effects.SendLocationEffect(summon.Location, summon.Map, 0x3728, 10, 10, 0, 0); summon.Combatant = target; summon.PlaySound(summon.GetAttackSound()); }