Example #1
0
            protected override void OnTarget(Mobile m, object o)
            {
                if (o is Item)
                {
                    Item IT = (Item)o;
                    if (IT.Parent != m.Backpack)
                    {
                        m.SendLocalizedMessage(1042001);
                        box.NG(m, box);
                    }
                    else if (IT is BaseTool)
                    {
                        BaseTool j    = (BaseTool)IT;
                        int      uses = j.UsesRemaining;
                        box.AddTool(m, j, uses, box);
                    }
                    else if (IT is BaseHarvestTool)
                    {
                        BaseHarvestTool j    = (BaseHarvestTool)IT;
                        int             uses = j.UsesRemaining;
                        box.AddTool(m, j, uses, box);
                    }
//Modded this from to                    else if (IT is Hatchet || IT is SturdyHatchet || IT is Pickaxe || IT is SturdyPickaxe)
                    else if (IT is Hatchet || IT is Pickaxe || IT is SturdyPickaxe)
                    {
                        BaseAxe j    = (BaseAxe)IT;
                        int     uses = j.UsesRemaining;
                        box.AddTool(m, j, uses, box);
                    }
                    else if (IT is ProspectorsTool)
                    {
                        ProspectorsTool j    = (ProspectorsTool)IT;
                        int             uses = j.UsesRemaining;
                        box.AddTool(m, j, uses, box);
                    }
                    else if (IT is GargoylesPickaxe)
                    {
                        GargoylesPickaxe j = (GargoylesPickaxe)IT;
                        int uses           = j.UsesRemaining;
                        box.AddTool(m, j, uses, box);
                    }
                    else if (IT is BaseAxe)
                    {
                        m.SendMessage("I do not take axe other than pickaxe and gargoyle pickaxe.");
                        box.NG(m, box);
                    }
                    else
                    {
                        m.SendMessage("I'm sorry but I do not recognize this type");
                        box.NG(m, box);
                    }
                }
                else
                {
                    m.SendMessage("I'm sorry but I do not recognize this type");
                    box.NG(m, box);
                }
            }
Example #2
0
			public InternalTarget( ProspectorsTool tool ) : base( 2, true, TargetFlags.None )
			{
				m_Tool = tool;
			}
Example #3
0
 public InternalTarget(ProspectorsTool tool) : base(2, true, TargetFlags.None)
 {
     m_Tool = tool;
 }
Example #4
0
        public override void OnResponse(NetState sender, RelayInfo info)
        {
            if (m_House.Deleted)
            {
                return;
            }

            else if (info.ButtonID == 1)
            {
                if (m_House.SewingKit > 0)
                {
                    m_From.AddToBackpack(new SewingKit(m_House.SewingKit));
                    m_House.SewingKit = (0);
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                }
                else
                {
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                    m_House.BeginCombine(m_From);
                }
            }
            else if (info.ButtonID == 2)
            {
                if (m_House.MortarPestle > 0)
                {
                    m_From.AddToBackpack(new MortarPestle(m_House.MortarPestle));
                    m_House.MortarPestle = (0);
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                }
                else
                {
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                    m_House.BeginCombine(m_From);
                }
            }
            else if (info.ButtonID == 3)
            {
                if (m_House.ScribesPen > 0)
                {
                    m_From.AddToBackpack(new ScribesPen(m_House.ScribesPen));
                    m_House.ScribesPen = (0);
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                }
                else
                {
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                    m_House.BeginCombine(m_From);
                }
            }
            else if (info.ButtonID == 4)
            {
                if (m_House.MalletAndChisel > 0)
                {
                    m_From.AddToBackpack(new MalletAndChisel(m_House.MalletAndChisel));
                    m_House.MalletAndChisel = (0);
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                }
                else
                {
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                    m_House.BeginCombine(m_From);
                }
            }
            else if (info.ButtonID == 5)
            {
                if (m_House.Carpentry > 0)
                {
                    m_From.AddToBackpack(new Hammer(m_House.Carpentry));
                    m_House.Carpentry = (0);
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                }
                else
                {
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                    m_House.BeginCombine(m_From);
                }
            }
            else if (info.ButtonID == 6)
            {
                if (m_House.FletcherTools > 0)
                {
                    m_From.AddToBackpack(new FletcherTools(m_House.FletcherTools));
                    m_House.FletcherTools = (0);
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                }
                else
                {
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                    m_House.BeginCombine(m_From);
                }
            }
            else if (info.ButtonID == 7)
            {
                if (m_House.TinkerTools > 0)
                {
                    m_From.AddToBackpack(new TinkerTools(m_House.TinkerTools));
                    m_House.TinkerTools = (0);
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                }
                else
                {
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                    m_House.BeginCombine(m_From);
                }
            }
            else if (info.ButtonID == 8)
            {
                if (m_House.BlackSmith > 0)
                {
                    m_From.AddToBackpack(new SmithHammer(m_House.BlackSmith));
                    m_House.BlackSmith = (0);
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                }
                else
                {
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                    m_House.BeginCombine(m_From);
                }
            }
            else if (info.ButtonID == 9)
            {
                if (m_House.Shovel > 0)
                {
                    m_From.AddToBackpack(new Shovel(m_House.Shovel));
                    m_House.Shovel = (0);
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                }
                else
                {
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                    m_House.BeginCombine(m_From);
                }
            }
            else if (info.ButtonID == 10)
            {
                if (m_House.GargoylesPickaxe > 0)
                {
                    GargoylesPickaxe gargoylesPickaxe = new GargoylesPickaxe(); // items that don't accept uses need to be handled like this
                    gargoylesPickaxe.UsesRemaining = m_House.GargoylesPickaxe;  // items that don't accept uses need to be handled like this
                    m_From.AddToBackpack(gargoylesPickaxe);                     // items that don't accept uses need to be handled like this
                    m_House.GargoylesPickaxe = (0);
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                }
                else
                {
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                    m_House.BeginCombine(m_From);
                }
            }
            else if (info.ButtonID == 11)
            {
                if (m_House.ProspectorsTool > 0)
                {
                    ProspectorsTool prospectorstool = new ProspectorsTool();    // items that don't accept uses need to be handled like this
                    prospectorstool.UsesRemaining = m_House.ProspectorsTool;    // items that don't accept uses need to be handled like this
                    m_From.AddToBackpack(prospectorstool);                      // items that don't accept uses need to be handled like this
                    m_House.ProspectorsTool = (0);
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                }
                else
                {
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                    m_House.BeginCombine(m_From);
                }

                /*else if ( info.ButtonID == 12 )
                 * {
                 *      if ( m_House.LumberjackingProspectorsTool > 0 )
                 *      {
                 *              LumberjackingProspectorsTool lumberjackingprospectorstool = new LumberjackingProspectorsTool();	// items that don't accept uses need to be handled like this
                 *              lumberjackingprospectorstool.UsesRemaining = m_House.LumberjackingProspectorsTool;	// items that don't accept uses need to be handled like this
                 *              m_From.AddToBackpack(lumberjackingprospectorstool);	// items that don't accept uses need to be handled like this
                 *              m_House.LumberjackingProspectorsTool = ( 0 );
                 *              m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
                 *      }
                 *      else
                 *      {
                 *              m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
                 *              m_House.BeginCombine( m_From );
                 *      }*/
            }
            else if (info.ButtonID == 13)
            {
                if (m_House.Lumberjacking > 0)
                {
                    Hatchet lumberjacking = new Hatchet();                      // items that don't accept uses need to be handled like this
                    lumberjacking.UsesRemaining = m_House.Lumberjacking;        // items that don't accept uses need to be handled like this
                    m_From.AddToBackpack(lumberjacking);                        // items that don't accept uses need to be handled like this
                    lumberjacking.ShowUsesRemaining = true;
                    m_House.Lumberjacking           = (0);
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                }
                else
                {
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                    m_House.BeginCombine(m_From);
                }
            }
            else if (info.ButtonID == 14)
            {
                if (m_House.Cooking > 0)
                {
                    m_From.AddToBackpack(new Skillet(m_House.Cooking));
                    m_House.Cooking = (0);
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                }
                else
                {
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                    m_House.BeginCombine(m_From);
                }
            }
            else if (info.ButtonID == 15)
            {
                if (m_House.Cartography > 0)
                {
                    m_From.AddToBackpack(new MapmakersPen(m_House.Cartography));
                    m_House.Cartography = (0);
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                }
                else
                {
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                    m_House.BeginCombine(m_From);
                }
            }
            else if (info.ButtonID == 16)
            {
                if (m_House.Glassblowing > 0)
                {
                    m_From.AddToBackpack(new Blowpipe(m_House.Glassblowing));
                    m_House.Glassblowing = (0);
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                }
                else
                {
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                    m_House.BeginCombine(m_From);
                }
            }
            else if (info.ButtonID == 17)
            {
                if (m_House.TaxidermyKit > 0)
                {
                    m_From.AddToBackpack(new TaxidermyKit());                       // have 1 time use
                    m_House.TaxidermyKit = (m_House.TaxidermyKit - 1);              // have 1 time use
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                }
                else
                {
                    m_From.SendGump(new ToolHouseGump(m_From, m_House));
                    m_House.BeginCombine(m_From);
                }

                /*}
                 * else if ( info.ButtonID == 18 )
                 * {
                 *      if ( m_House.GargoylesAxe > 0 )
                 *      {
                 *              m_From.AddToBackpack( new GargoylesAxe(m_House.GargoylesAxe) );
                 *              m_House.GargoylesAxe = ( 0 );
                 *              m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
                 *      }
                 *      else
                 *      {
                 *              m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
                 *              m_House.BeginCombine( m_From );
                 *      }
                 * }
                 * else if ( info.ButtonID == 19 )
                 * {
                 *      if ( m_House.GargoylesKnife > 0 )
                 *      {
                 *              m_From.AddToBackpack( new GargoylesKnife(m_House.GargoylesKnife) );
                 *              m_House.GargoylesKnife = ( 0 );
                 *              m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
                 *      }
                 *      else
                 *      {
                 *              m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
                 *              m_House.BeginCombine( m_From );
                 *      }*/
            }
///			else if ( info.ButtonID == 20 )
///			{
///				if ( m_House.Brush > 0 )
///				{
///					m_From.AddToBackpack( new Brush(m_House.Brush) );
///					m_House.Brush = ( 0 );
///					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
///				}
///				else
///				{
///					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
///					m_House.BeginCombine( m_From );
///				}
///			}
            else if (info.ButtonID == 21)
            {
                m_From.SendGump(new ToolHouseGump(m_From, m_House));
                m_House.BeginCombine(m_From);
            }
        }
		public override void OnResponse( NetState sender, RelayInfo info )
		{
			if ( m_House.Deleted )
				return;

			else if ( info.ButtonID == 1 )
			{
				if ( m_House.SewingKit > 0 )
				{
					m_From.AddToBackpack( new SewingKit(m_House.SewingKit) );
					m_House.SewingKit = ( 0 );
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
				}
				else
				{
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
					m_House.BeginCombine( m_From );
				}
			}
			else if ( info.ButtonID == 2 )
			{
				if ( m_House.MortarPestle > 0 )
				{
					m_From.AddToBackpack( new MortarPestle(m_House.MortarPestle) );
					m_House.MortarPestle = ( 0 );
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
				}
				else
				{
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
					m_House.BeginCombine( m_From );
				}
			}
			else if ( info.ButtonID == 3 )
			{
				if ( m_House.ScribesPen > 0 )
				{
					m_From.AddToBackpack( new ScribesPen(m_House.ScribesPen) );
					m_House.ScribesPen = ( 0 );
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
				}
				else
				{
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
					m_House.BeginCombine( m_From );
				}
			}
			else if ( info.ButtonID == 4 )
			{
				if ( m_House.MalletAndChisel > 0 )
				{
					m_From.AddToBackpack( new MalletAndChisel(m_House.MalletAndChisel) );
					m_House.MalletAndChisel = ( 0 );
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
				}
				else
				{
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
					m_House.BeginCombine( m_From );
				}
			}
			else if ( info.ButtonID == 5 )
			{
				if ( m_House.Carpentry > 0 )
				{
					m_From.AddToBackpack( new Hammer(m_House.Carpentry) );
					m_House.Carpentry = ( 0 );
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
				}
				else
				{
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
					m_House.BeginCombine( m_From );
				}
			}
			else if ( info.ButtonID == 6 )
			{
				if ( m_House.FletcherTools > 0 )
				{
					m_From.AddToBackpack( new FletcherTools(m_House.FletcherTools) );
					m_House.FletcherTools = ( 0 );
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
				}
				else
				{
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
					m_House.BeginCombine( m_From );
				}
			}
			else if ( info.ButtonID == 7 )
			{
				if ( m_House.TinkerTools > 0 )
				{
					m_From.AddToBackpack( new TinkerTools(m_House.TinkerTools) );
					m_House.TinkerTools = ( 0 );
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
				}
				else
				{
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
					m_House.BeginCombine( m_From );
				}
			}
			else if ( info.ButtonID == 8 )
			{
				if ( m_House.BlackSmith > 0 )
				{
					m_From.AddToBackpack( new SmithHammer(m_House.BlackSmith) );
					m_House.BlackSmith = ( 0 );
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
				}
				else
				{
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
					m_House.BeginCombine( m_From );
				}
			}
			else if ( info.ButtonID == 9 )
			{
				if ( m_House.Shovel > 0 )
				{
                	m_From.AddToBackpack( new Shovel(m_House.Shovel) );
					m_House.Shovel = ( 0 );
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
				}
				else
				{
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
					m_House.BeginCombine( m_From );
				}
			}
			else if ( info.ButtonID == 10 )
			{
				if ( m_House.GargoylesPickaxe > 0 )
				{
					GargoylesPickaxe gargoylesPickaxe = new GargoylesPickaxe();	// items that don't accept uses need to be handled like this
					gargoylesPickaxe.UsesRemaining = m_House.GargoylesPickaxe;	// items that don't accept uses need to be handled like this
					m_From.AddToBackpack(gargoylesPickaxe);	// items that don't accept uses need to be handled like this
					m_House.GargoylesPickaxe = ( 0 );
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
				}
				else
				{
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
					m_House.BeginCombine( m_From );
				}
			}
			else if ( info.ButtonID == 11 )
			{
				if ( m_House.ProspectorsTool > 0 )
				{
					ProspectorsTool prospectorstool = new ProspectorsTool();	// items that don't accept uses need to be handled like this
					prospectorstool.UsesRemaining = m_House.ProspectorsTool;	// items that don't accept uses need to be handled like this
					m_From.AddToBackpack(prospectorstool);	// items that don't accept uses need to be handled like this
					m_House.ProspectorsTool = ( 0 );
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
				}
				else
				{
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
					m_House.BeginCombine( m_From );
				}
			
			/*else if ( info.ButtonID == 12 )
			{
				if ( m_House.LumberjackingProspectorsTool > 0 )
				{
					LumberjackingProspectorsTool lumberjackingprospectorstool = new LumberjackingProspectorsTool();	// items that don't accept uses need to be handled like this
					lumberjackingprospectorstool.UsesRemaining = m_House.LumberjackingProspectorsTool;	// items that don't accept uses need to be handled like this
					m_From.AddToBackpack(lumberjackingprospectorstool);	// items that don't accept uses need to be handled like this
					m_House.LumberjackingProspectorsTool = ( 0 );
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
				}
				else
				{
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
					m_House.BeginCombine( m_From );
				}*/
			}
			else if ( info.ButtonID == 13 )
			{
				if ( m_House.Lumberjacking > 0 )
				{
					Hatchet lumberjacking = new Hatchet();	// items that don't accept uses need to be handled like this
					lumberjacking.UsesRemaining = m_House.Lumberjacking;	// items that don't accept uses need to be handled like this
					m_From.AddToBackpack(lumberjacking);	// items that don't accept uses need to be handled like this
					lumberjacking.ShowUsesRemaining = true;
					m_House.Lumberjacking = ( 0 );
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
				}
				else
				{
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
					m_House.BeginCombine( m_From );
				}
			}
			else if ( info.ButtonID == 14 )
			{
				if ( m_House.Cooking > 0 )
				{                       
					m_From.AddToBackpack( new Skillet(m_House.Cooking) );
					m_House.Cooking = ( 0 );
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
				}
				else
				{
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
					m_House.BeginCombine( m_From );
				}
			}
			else if ( info.ButtonID == 15 )
			{
				if ( m_House.Cartography > 0 )
				{                       
					m_From.AddToBackpack( new MapmakersPen(m_House.Cartography) );
					m_House.Cartography = ( 0 );
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
				}
				else
				{
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
					m_House.BeginCombine( m_From );
				}
			}
			else if ( info.ButtonID == 16 )
			{
				if ( m_House.Glassblowing > 0 )
				{                       
					m_From.AddToBackpack( new Blowpipe(m_House.Glassblowing) );
					m_House.Glassblowing = ( 0 );
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
				}
				else
				{
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
					m_House.BeginCombine( m_From );
				}
			}
			else if ( info.ButtonID == 17 )
			{
				if ( m_House.TaxidermyKit > 0 )
				{                       
					m_From.AddToBackpack( new TaxidermyKit() ); // have 1 time use
					m_House.TaxidermyKit = ( m_House.TaxidermyKit - 1 ); // have 1 time use
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
				}
				else
				{
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
					m_House.BeginCombine( m_From );
				}
			/*}
			else if ( info.ButtonID == 18 )
			{
				if ( m_House.GargoylesAxe > 0 )
				{                       
					m_From.AddToBackpack( new GargoylesAxe(m_House.GargoylesAxe) );
					m_House.GargoylesAxe = ( 0 );
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
				}
				else
				{
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
					m_House.BeginCombine( m_From );
				}
			}
			else if ( info.ButtonID == 19 )
			{
				if ( m_House.GargoylesKnife > 0 )
				{                       
					m_From.AddToBackpack( new GargoylesKnife(m_House.GargoylesKnife) );
					m_House.GargoylesKnife = ( 0 );
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
				}
				else
				{
					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
					m_House.BeginCombine( m_From );
				}*/
			}
///			else if ( info.ButtonID == 20 )
///			{
///				if ( m_House.Brush > 0 )
///				{
///					m_From.AddToBackpack( new Brush(m_House.Brush) );
///					m_House.Brush = ( 0 );
///					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
///				}
///				else
///				{
///					m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
///					m_House.BeginCombine( m_From );
///				}
///			}
			else if ( info.ButtonID == 21 )
			{
				m_From.SendGump( new ToolHouseGump( m_From, m_House ) );
				m_House.BeginCombine( m_From );
			}
		}
Example #6
0
		public override void OnResponse( NetState state, RelayInfo info )
		{
            PlayerMobile m = m_user; ToolBox box = i_box; BaseTool tool; BaseHarvestTool toola; Hatchet toolh; Container pack = m.Backpack;

			switch ( info.ButtonID ) {
				default: { break; }
				case 2: { box.OW( m ); break; }
				case 3: { tool = new Tongs(); tool.UsesRemaining = box.i_S; pack.DropItem( tool ); box.i_S = 0; break; }
				case 4: { tool = new MouldingPlane(); tool.UsesRemaining = box.i_C; pack.DropItem( tool ); box.i_C = 0; break; }
				case 5: { tool = new TinkerTools(); tool.UsesRemaining = box.i_Ti; pack.DropItem( tool ); box.i_Ti = 0; break; }
				case 6: { tool = new SewingKit(); tool.UsesRemaining = box.i_T; pack.DropItem( tool ); box.i_T = 0; break; }
				case 7: { toolh = new Hatchet(); toolh.UsesRemaining = box.i_L; pack.DropItem( toolh ); box.i_L = 0; break; }
				case 8: { tool = new ScribesPen(); tool.UsesRemaining = box.i_Sc; pack.DropItem( tool ); box.i_Sc = 0; break; }
				case 9: { toola = new Shovel(); toola.UsesRemaining = box.i_M; pack.DropItem( toola ); box.i_M = 0; break; }
				case 10: { tool = new Skillet(); tool.UsesRemaining = box.i_Co; pack.DropItem( tool ); box.i_Co = 0; break; }
				case 11: { tool = new FletcherTools(); tool.UsesRemaining = box.i_F; pack.DropItem( tool ); box.i_F = 0; break; }
				case 12: { tool = new MortarPestle(); tool.UsesRemaining = box.i_A; pack.DropItem( tool ); box.i_A = 0; break; }
				case 13: { tool = new MalletAndChisel(); tool.UsesRemaining = box.i_St; pack.DropItem( tool ); box.i_St = 0; break; }
				case 14: { tool = new MapmakersPen(); tool.UsesRemaining = box.i_Ca; pack.DropItem( tool ); box.i_Ca = 0; break; }
                case 15: { GargoylesPickaxe item = new GargoylesPickaxe(); item.UsesRemaining = box.i_Garg; pack.DropItem(item); box.i_Garg = 0; break; }
                case 16: { ProspectorsTool item = new ProspectorsTool(); item.UsesRemaining = box.i_Pros; pack.DropItem(item); box.i_Pros = 0; break; }
                case 17: { Blowpipe item = new Blowpipe(); item.UsesRemaining = box.i_G; pack.DropItem(item); box.i_G = 0; break; }
            } 
            if ( info.ButtonID > 2 ) { box.NG( m, box ); 
            } 
        }