Exemple #1
0
            public override void DoTeleport(Mobile m)
            {
                if (m.Corpse != null && !m.Corpse.Deleted)
                {
                    Point3D location = Point3D.Zero;

                    if (m_GhostRegion != null)
                    {
                        location = m_GhostRegion.RandomSpawnLocation(0, true, false, Point3D.Zero, 0);
                    }

                    if (location == Point3D.Zero)
                    {
                        location = new Point3D(349, 176, 14);
                    }

                    m.Corpse.MoveToWorld(location, Map.Malas);
                    m.MoveToWorld(location, Map.Malas);
                }
            }