Example #1
0
 public override void OnDoubleClick(Mobile from)
 {
     //Large Bag of Holding---2050 Gold
     Item[] Token = from.Backpack.FindItemsByType(typeof(Gold));
     if (from.Backpack.ConsumeTotal(typeof(Gold), 2050))
     {
         BagOfDruidReagents BagOfDruidReagents = new BagOfDruidReagents(50);
         from.AddToBackpack(BagOfDruidReagents);
         from.SendMessage("2050 gold has been removed from your pack.");
     }
     else
     {
         from.SendMessage("You do not have enough funds for that.");
     }
 }
		public override void OnDoubleClick( Mobile from )
		{
                  //Large Bag of Holding---2050 Gold
			Item[] Token = from.Backpack.FindItemsByType( typeof( Gold ) );
		      if ( from.Backpack.ConsumeTotal( typeof( Gold ), 2050 ) )
		{
         	      BagOfDruidReagents BagOfDruidReagents = new BagOfDruidReagents( 50 );
		      from.AddToBackpack( BagOfDruidReagents );
			from.SendMessage( "2050 gold has been removed from your pack." );
		}
		   	else
		      {
		   		from.SendMessage( "You do not have enough funds for that." );
		   	}
					
		}