| CODE |
using System; using System.Collections; using Server.Items; using Server.Engines; namespace Server.Mobiles { public class SBJardinier : SBInfo { private ArrayList m_BuyInfo = new InternalBuyInfo(); private IShopSellInfo m_SellInfo = new InternalSellInfo(); public SBJardinier() { } public override IShopSellInfo SellInfo { get { return m_SellInfo; } } public override ArrayList BuyInfo { get { return m_BuyInfo; } } public class InternalBuyInfo : ArrayList { public InternalBuyInfo() { Add( new GenericBuyInfo( "1060834", typeof( Engines.Plants.PlantBowl ), 1000, 50, 0x15FD, 0 ) ); Add( new BeverageBuyInfo( typeof( Pitcher ), BeverageType.Water, 10, 50, 0x1F9D, 0 ) ); Add( new GenericBuyInfo( typeof( Engines.Plants.Seed ), 500, 100, 0xDCF, 0 ) ); Add( new GenericBuyInfo( typeof( GreaterStrengthPotion ), 25, 50, 0xF09, 0 ) ); Add( new GenericBuyInfo( typeof( GreaterCurePotion ), 25, 50, 0xF07, 0 ) ); Add( new GenericBuyInfo( typeof( GreaterHealPotion ), 25, 50, 0xF0C, 0 ) ); Add( new GenericBuyInfo( typeof( GreaterPoisonPotion ), 25, 50, 0xF0A, 0 ) ); } } public class InternalSellInfo : GenericSellInfo { public InternalSellInfo() { } } } } |
| CODE |
| public InternalBuyInfo() { Add( new GenericBuyInfo( typeof( Apple ), 3, 20, 0x9D0, 0 ) ); Add( new GenericBuyInfo( typeof( Grapes ), 3, 20, 0x9D1, 0 ) ); Add( new GenericBuyInfo( typeof( Watermelon ), 7, 20, 0xC5C, 0 ) ); Add( new GenericBuyInfo( typeof( YellowGourd ), 3, 20, 0xC64, 0 ) ); Add( new GenericBuyInfo( typeof( Pumpkin ), 11, 20, 0xC6A, 0 ) ); Add( new GenericBuyInfo( typeof( Onion ), 3, 20, 0xC6D, 0 ) ); Add( new GenericBuyInfo( typeof( Lettuce ), 5, 20, 0xC70, 0 ) ); Add( new GenericBuyInfo( typeof( Squash ), 3, 20, 0xC72, 0 ) ); Add( new GenericBuyInfo( typeof( HoneydewMelon ), 7, 20, 0xC74, 0 ) ); Add( new GenericBuyInfo( typeof( Carrot ), 3, 20, 0xC77, 0 ) ); Add( new GenericBuyInfo( typeof( Cantaloupe ), 6, 20, 0xC79, 0 ) ); Add( new GenericBuyInfo( typeof( Cabbage ), 5, 20, 0xC7B, 0 ) ); //Add( new GenericBuyInfo( typeof( EarOfCorn ), 3, 20, XXXXXX, 0 ) ); //Add( new GenericBuyInfo( typeof( Turnip ), 6, 20, XXXXXX, 0 ) ); //Add( new GenericBuyInfo( typeof( SheafOfHay ), 2, 20, XXXXXX, 0 ) ); Add( new GenericBuyInfo( typeof( Lemon ), 3, 20, 0x1728, 0 ) ); Add( new GenericBuyInfo( typeof( Lime ), 3, 20, 0x172A, 0 ) ); Add( new GenericBuyInfo( typeof( Peach ), 3, 20, 0x9D2, 0 ) ); Add( new GenericBuyInfo( typeof( Pear ), 3, 20, 0x994, 0 ) ); |
| CODE |
Add( new GenericBuyInfo( "Cabbage Seed", typeof( CabbageSeed ), 50, 20, 0xF27, 0x5E2 ) ); |
| CODE |
| public GenericBuyInfo( string name, Type type, int price, int amount, int itemID, int hue, object[] args ) { amount = 20; m_Type = type; m_Price = price; m_MaxAmount = m_Amount = amount; m_ItemID = itemID; m_Hue = hue; m_Args = args; if ( name == null ) m_Name = (1020000 + (itemID & 0x3FFF)).ToString(); else m_Name = name; } |
| CODE |
Add( new GenericBuyInfo( "Cotton Seed", typeof( CottonSeed ), 250, 20, 0xF27, 0x5E2 ) ); Add( new GenericBuyInfo( "Flax Seed", typeof( FlaxSeed ), 250, 20, 0xF27, 0x5E2 ) ); Add( new GenericBuyInfo( "Wheat Seed", typeof( WheatSeed ), 150, 20, 0xF27, 0x5E2 ) ); Add( new GenericBuyInfo( "Planting Corn", typeof( CornSeed ), 150, 20, 0xC82, 0 ) ); Add( new GenericBuyInfo( "Carrot Seed", typeof( CarrotSeed ), 50, 20, 0xF27, 0x5E2 ) ); Add( new GenericBuyInfo( "Onion Seed", typeof( OnionSeed ), 50, 20, 0xF27, 0x5E2 ) ); Add( new GenericBuyInfo( "Garlic Seed", typeof( GarlicSeed ), 50, 20, 0xF27, 0x5E2 ) ); Add( new GenericBuyInfo( "Lettuce Seed", typeof( LettuceSeed ), 50, 20, 0xF27, 0x5E2 ) ); Add( new GenericBuyInfo( "Cabbage Seed", typeof( CabbageSeed ), 50, 20, 0xF27, 0x5E2 ) ); |