Ejemplo n.º 1
0
//END PIECES\\


        public YardFountain(Mobile from, int price, TypeOfFountain type, Point3D loc)
        {
            m_Value  = price;
            m_Placer = from;
            int    id   = 0;
            string name = "";

            name    = from.Name + "'s Fountain";
            Name    = name;
            Movable = false;
            MoveToWorld(loc, from.Map);

            m_Components = new ArrayList();

            switch (type)
            {
            case TypeOfFountain.Stone:
            {
                id     = 0x1731;
                ItemID = id + 9;
            }
            break;

            case TypeOfFountain.Sand:
            {
                id     = 0x19C3;
                ItemID = id + 9;
            }
            break;
            }
            AddPiece(-2, +1, 0, id++, name, loc);
            AddPiece(-1, +1, 0, id++, name, loc);
            AddPiece(+0, +1, 0, id++, name, loc);
            AddPiece(+1, +1, 0, id++, name, loc);

            AddPiece(+1, +0, 0, id++, name, loc);
            AddPiece(+1, -1, 0, id++, name, loc);
            AddPiece(+1, -2, 0, id++, name, loc);

            AddPiece(+0, -2, 0, id++, name, loc);
            AddPiece(+0, -1, 0, id++, name, loc);
            //AddPiece( +0, +0, 0, id++, name, loc);
            id++;
            AddPiece(-1, +0, 0, id++, name, loc);
            AddPiece(-2, +0, 0, id++, name, loc);

            AddPiece(-2, -1, 0, id++, name, loc);
            AddPiece(-1, -1, 0, id++, name, loc);

            AddPiece(-1, -2, 0, id++, name, loc);
            AddPiece(-2, -2, 0, ++id, name, loc);

            m_Components.Add(this);
        }
Ejemplo n.º 2
0
//END PIECES\\


		public YardFountain( Mobile from, int price, TypeOfFountain type, Point3D loc )
		{
			m_Value = price;
			m_Placer = from;
			int id = 0;
			string name = "";
			name = from.Name + "'s Fountain";
			Name = name;
			Movable = false;
			MoveToWorld( loc, from.Map );

			m_Components = new ArrayList();

			switch ( type )
			{
				case TypeOfFountain.Stone:
				{
					id = 0x1731;
					ItemID = id+9;
				}
				break;
				case TypeOfFountain.Sand:
				{
					id = 0x19C3;
					ItemID = id+9;
				}
				break;
			}
			AddPiece( -2, +1, 0, id++, name, loc);
			AddPiece( -1, +1, 0, id++, name, loc);
			AddPiece( +0, +1, 0, id++, name, loc);
			AddPiece( +1, +1, 0, id++, name, loc);

			AddPiece( +1, +0, 0, id++, name, loc);
			AddPiece( +1, -1, 0, id++, name, loc);
			AddPiece( +1, -2, 0, id++, name, loc);

			AddPiece( +0, -2, 0, id++, name, loc);
			AddPiece( +0, -1, 0, id++, name, loc);
			//AddPiece( +0, +0, 0, id++, name, loc);
			id++;
			AddPiece( -1, +0, 0, id++, name, loc);
			AddPiece( -2, +0, 0, id++, name, loc);

			AddPiece( -2, -1, 0, id++, name, loc);
			AddPiece( -1, -1, 0, id++, name, loc);

			AddPiece( -1, -2, 0, id++, name, loc);
			AddPiece( -2, -2, 0, ++id, name, loc);

			m_Components.Add( this );
		}