Ejemplo n.º 1
0
        public static void ColorMyStone(BaseStatue statue)
        {
            int color = statue.Hue;

            if (color < 1)
            {
                if (statue.Resource == "Dull Copper Granite")
                {
                    color = MaterialInfo.GetMaterialColor("dull copper", "classic", 0);
                }
                else if (statue.Resource == "Shadow Iron Granite")
                {
                    color = MaterialInfo.GetMaterialColor("shadow iron", "classic", 0);
                }
                else if (statue.Resource == "Copper Granite")
                {
                    color = MaterialInfo.GetMaterialColor("copper", "classic", 0);
                }
                else if (statue.Resource == "Bronze Granite")
                {
                    color = MaterialInfo.GetMaterialColor("bronze", "classic", 0);
                }
                else if (statue.Resource == "Gold Granite")
                {
                    color = MaterialInfo.GetMaterialColor("gold", "classic", 0);
                }
                else if (statue.Resource == "Agapite Granite")
                {
                    color = MaterialInfo.GetMaterialColor("agapite", "classic", 0);
                }
                else if (statue.Resource == "Verite Granite")
                {
                    color = MaterialInfo.GetMaterialColor("verite", "classic", 0);
                }
                else if (statue.Resource == "Valorite Granite")
                {
                    color = MaterialInfo.GetMaterialColor("valorite", "classic", 0);
                }
                else if (statue.Resource == "Nepturite Granite")
                {
                    color = MaterialInfo.GetMaterialColor("nepturite", "classic", 0);
                }
                else if (statue.Resource == "Obsidian Granite")
                {
                    color = MaterialInfo.GetMaterialColor("obsidian", "classic", 0);
                }
                else if (statue.Resource == "Mithril Granite")
                {
                    color = MaterialInfo.GetMaterialColor("mithril", "classic", 0);
                }
                else if (statue.Resource == "Xormite Granite")
                {
                    color = MaterialInfo.GetMaterialColor("xormite", "classic", 0);
                }
                else if (statue.Resource == "Dwarven Granite")
                {
                    color = MaterialInfo.GetMaterialColor("dwarven", "classic", 0);
                }
                else
                {
                    color = 0xB8E;
                }
            }

            statue.Hue = color;
        }
Ejemplo n.º 2
0
 public RenamePrompt(BaseStatue statue)
 {
     m_Statue = statue;
 }
Ejemplo n.º 3
0
            protected override void OnTarget(Mobile from, object targeted)
            {
                if (targeted == null)
                {
                    return;
                }                            

                if (targeted is LandTarget)
                {
                    Point3D loc = ((LandTarget)targeted).Location;
                    BaseStatue statue = new BaseStatue(from);
                    statue.Material = m_Material;                    
                    statue.Pose = m_Pose;
                    statue.Direction = m_Dir;
                    statue.Map = from.Map;                    
                    statue.Location = loc;
                    if (m_Plinth)
                    {
                        statue.HasPlinth = m_Plinth;
                    }
                    m_deed.Delete();
                    return;
                }
                if (targeted is StaticTarget)
                {
                    Point3D loc = ((StaticTarget)targeted).Location;
                    BaseStatue statue = new BaseStatue(from);
                    statue.Material = m_Material;                    
                    statue.Pose = m_Pose;
                    statue.Direction = m_Dir;
                    statue.Map = from.Map;
                    statue.Location = loc;
                    if (m_Plinth)
                    {
                        statue.HasPlinth = m_Plinth;
                    }
                    m_deed.Delete();
                    return;
                }               
            }
Ejemplo n.º 4
0
 public override void Deserialize(GenericReader reader)
 {
     base.Deserialize(reader);
     int version = reader.ReadInt();
     m_Statue = reader.ReadMobile() as BaseStatue;
 }
Ejemplo n.º 5
0
 public Plinth(BaseStatue statue)
     : base(0x32F2)
 {
     m_Statue = statue;
     Name = "Statue";
 }
Ejemplo n.º 6
0
 public StatueDeedMenu(BaseStatue statue, Mobile from)
     : base(163)
 {
     m_Statue = statue;
     m_Clicker = from;
 }