Example #1
0
		public virtual void AddComponent( AddonComponent c, int x, int y, int z )
		{
			if ( Deleted )
				return;

			m_Components.Add( c );

			c.Addon = this;
			c.Offset = new Point3D( x, y, z );
			c.MoveToWorld( new Point3D( X + x, Y + y, Z + z ), Map );
		}
Example #2
0
        public void AddComponent(AddonComponent c, int x, int y, int z)
        {
            if (this.Deleted)
                return;

            this.m_Components.Add(c);

            c.Addon = this;
            c.Offset = new Point3D(x, y, z);
            c.MoveToWorld(new Point3D(this.X + x, this.Y + y, this.Z + z), this.Map);
        }
Example #3
0
        public void AddComponent(AddonComponent c, int x, int y, int z)
        {
            if (Deleted)
            {
                return;
            }

            m_Components.Add(c);

            c.Addon  = this;
            c.Offset = new Point3D(x, y, z);
            c.MoveToWorld(new Point3D(X + x, Y + y, Z + z), Map);
        }
Example #4
0
        public void AddComponent(AddonComponent c, int x, int y, int z)
        {
            if (this.Deleted)
            {
                return;
            }

            this.m_Components.Add(c);

            c.Addon  = this;
            c.Offset = new Point3D(x, y, z);
            c.MoveToWorld(new Point3D(this.X + x, this.Y + y, this.Z + z), this.Map);
        }
			public override void Execute(CommandEventArgs e, object obj)
			{
				try
				{
					Item item = obj as Item;
					m_found++;
					if (item != null)
					{
						m_processed++;
						AddonComponent ac = new AddonComponent(item.ItemID);
						ac.MoveToWorld(item.Location, item.Map);
						item.Delete();
					}

					AddResponse(String.Format("done."));
				}
				catch (Exception exe)
				{
					LogHelper.LogException(exe);
					e.Mobile.SendMessage(exe.Message);
				}
			}