Ejemplo n.º 1
0
		public override void OnDoubleClick( Mobile from )
		{
			Container pack = from.Backpack;
			
			if ( pack != null && pack.ConsumeTotal( typeof( Gold ), 5000) )
			{
				Shrinkbag sbag = new Shrinkbag( 1 );


				if ( !from.AddToBackpack( sbag ) )
					sbag.Delete();	
			}
			else
			{
				from.SendMessage( 0XAD, "You need at least 5000gp in your backpack to use this." );
			}
		}
Ejemplo n.º 2
0
        public override void OnDoubleClick(Mobile from)
        {
            Container pack = from.Backpack;

            if (pack != null && pack.ConsumeTotal(typeof(Gold), 5000))
            {
                Shrinkbag sbag = new Shrinkbag(1);


                if (!from.AddToBackpack(sbag))
                {
                    sbag.Delete();
                }
            }
            else
            {
                from.SendMessage(0XAD, "You need at least 5000gp in your backpack to use this.");
            }
        }