예제 #1
0
            protected override void OnTarget(Mobile from, object targeted)
            {
                IPoint3D loc = targeted as IPoint3D;

                if (loc == null)
                {
                    from.SendMessage("Invalid location.");
                }
                else
                {
                    BaseCreature child = m_Female.BreedWith(m_Male);

                    if (child == null)
                    {
                        from.SendMessage("An unknown error occurred and has been logged.");
                    }

                    child.Controlled    = true;
                    child.ControlMaster = from;
                    child.MoveToWorld(new Point3D(loc), from.Map);
                }
            }