Ejemplo n.º 1
0
        public static bool Open(Container c, Mobile m)
        {
            if (m_Table.ContainsKey(c))
            {
                c.SendRemovePacket();
                Close(c);
                c.Delta(ItemDelta.Update);
                c.ProcessDelta();
                return(false);
            }

            if (c is Armoire || c is FancyArmoire)
            {
                Timer t = new FurnitureTimer(c, m);
                t.Start();
                m_Table[c] = t;

                switch (c.ItemID)
                {
                case 0xA4D: c.ItemID = 0xA4C; break;

                case 0xA4F: c.ItemID = 0xA4E; break;

                case 0xA51: c.ItemID = 0xA50; break;

                case 0xA53: c.ItemID = 0xA52; break;
                }
            }

            return(true);
        }
Ejemplo n.º 2
0
        public static bool Open(Container c, Mobile m)
        {
            if (m_Table.ContainsKey(c))
            {
                c.SendRemovePacket();
                Close(c);
                c.Delta(ItemDelta.Update);
                c.ProcessDelta();
                return(false);
            }

            if ((c is Armoire || c is FancyArmoire || c is SkullChest) && !(c.RootParent is Mobile) && !(c.RootParent is Corpse) && !(c.RootParent is Container))
            {
                Timer t = new FurnitureTimer(c, m);
                t.Start();
                m_Table[c] = t;

                switch (c.ItemID)
                {
                case 0xA4D: c.ItemID = 0xA4C; break;

                case 0xA4F: c.ItemID = 0xA4E; break;

                case 0xA51: c.ItemID = 0xA50; break;

                case 0xA53: c.ItemID = 0xA52; break;

                case 0x4102: c.ItemID = 0x4104; break;                         // WIZARD SKULL CHEST

                case 0x4106: c.ItemID = 0x4109; break;                         // WIZARD SKULL CHEST
                }
            }

            return(true);
        }
Ejemplo n.º 3
0
		public static bool Open( Container c, Mobile m )
		{
			if ( m_Table.Contains( c ) )
			{
				c.SendRemovePacket();
				Close( c );
				c.Delta( ItemDelta.Update );
				c.ProcessDelta();
				return false;
			}

			if ( c is Armoire || c is FancyArmoire )
			{
				Timer t = new FurnitureTimer( c, m );
				t.Start();
				m_Table[c] = t;

				switch ( c.ItemID )
				{
					case 0xA4D: c.ItemID = 0xA4C; break;
					case 0xA4F: c.ItemID = 0xA4E; break;
					case 0xA51: c.ItemID = 0xA50; break;
					case 0xA53: c.ItemID = 0xA52; break;
				}
			}

			return true;
		}