Ejemplo n.º 1
0
        public void Carve(Mobile from, Item item)
        {
            Item ribcage = new RibCage();
            Item heart = new Item( 7405 );
            Item liver = new Item( 7406 );
            Item entrails = new Item( 7407 );

            if ( m_Owner != null )
            {
                ribcage.Name = "ribcage of " + m_Owner.Name;
                liver.Name = "liver of " + m_Owner.Name;
                heart.Name = "heart of " + m_Owner.Name;
                entrails.Name = "entrails of " + m_Owner.Name;
            }

            if ( !(Parent is Container) )
            {
                ribcage.MoveToWorld( GetWorldLocation(), Map );
                liver.MoveToWorld( GetWorldLocation(), Map );
                heart.MoveToWorld( GetWorldLocation(), Map );
                entrails.MoveToWorld( GetWorldLocation(), Map );
            }
            else
            {
                Container cont = (Container)Parent;
                cont.DropItem( ribcage );
                cont.DropItem( liver );
                cont.DropItem( heart );
                cont.DropItem( entrails );
            }

            Delete();
        }
Ejemplo n.º 2
0
        public void Carve(Mobile from, Item item)
        {
            Item ribcage  = new RibCage();
            Item heart    = new Item(7405);
            Item liver    = new Item(7406);
            Item entrails = new Item(7407);

            if (m_Owner != null)
            {
                ribcage.Name  = "ribcage of " + m_Owner.Name;
                liver.Name    = "liver of " + m_Owner.Name;
                heart.Name    = "heart of " + m_Owner.Name;
                entrails.Name = "entrails of " + m_Owner.Name;
            }

            if (!(Parent is Container))
            {
                ribcage.MoveToWorld(GetWorldLocation(), Map);
                liver.MoveToWorld(GetWorldLocation(), Map);
                heart.MoveToWorld(GetWorldLocation(), Map);
                entrails.MoveToWorld(GetWorldLocation(), Map);
            }
            else
            {
                Container cont = (Container)Parent;
                cont.DropItem(ribcage);
                cont.DropItem(liver);
                cont.DropItem(heart);
                cont.DropItem(entrails);
            }

            Delete();
        }