88 lines
3.6 KiB
C#
88 lines
3.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Server.Items;
|
|
|
|
namespace Server.Mobiles
|
|
{
|
|
public class SBFarmer : SBInfo
|
|
{
|
|
private readonly List<GenericBuyInfo> m_BuyInfo = new InternalBuyInfo();
|
|
private readonly IShopSellInfo m_SellInfo = new InternalSellInfo();
|
|
public SBFarmer()
|
|
{
|
|
}
|
|
|
|
public override IShopSellInfo SellInfo
|
|
{
|
|
get
|
|
{
|
|
return m_SellInfo;
|
|
}
|
|
}
|
|
public override List<GenericBuyInfo> BuyInfo
|
|
{
|
|
get
|
|
{
|
|
return m_BuyInfo;
|
|
}
|
|
}
|
|
|
|
public class InternalBuyInfo : List<GenericBuyInfo>
|
|
{
|
|
public InternalBuyInfo()
|
|
{
|
|
Add(new GenericBuyInfo("1031235", typeof(FreshGinger), 505, 10, 11235, 0));
|
|
Add(new GenericBuyInfo(typeof(Cabbage), 5, 20, 0xC7B, 0, true));
|
|
Add(new GenericBuyInfo(typeof(Cantaloupe), 6, 20, 0xC79, 0, true));
|
|
Add(new GenericBuyInfo(typeof(Carrot), 3, 20, 0xC78, 0, true));
|
|
Add(new GenericBuyInfo(typeof(HoneydewMelon), 7, 20, 0xC74, 0, true));
|
|
Add(new GenericBuyInfo(typeof(Squash), 3, 20, 0xC72, 0, true));
|
|
Add(new GenericBuyInfo(typeof(Lettuce), 5, 20, 0xC70, 0, true));
|
|
Add(new GenericBuyInfo(typeof(Onion), 3, 20, 0xC6D, 0, true));
|
|
Add(new GenericBuyInfo(typeof(Pumpkin), 11, 20, 0xC6A, 0, true));
|
|
Add(new GenericBuyInfo(typeof(GreenGourd), 3, 20, 0xC66, 0, true));
|
|
Add(new GenericBuyInfo(typeof(YellowGourd), 3, 20, 0xC64, 0, true));
|
|
//Add( new GenericBuyInfo( typeof( Turnip ), 6, 20, XXXXXX, 0 ) );
|
|
Add(new GenericBuyInfo(typeof(Watermelon), 7, 20, 0xC5C, 0, true));
|
|
//Add( new GenericBuyInfo( typeof( EarOfCorn ), 3, 20, XXXXXX, 0 ) );
|
|
Add(new GenericBuyInfo(typeof(Eggs), 3, 20, 0x9B5, 0, true));
|
|
Add(new BeverageBuyInfo(typeof(Pitcher), BeverageType.Milk, 7, 20, 0x9AD, 0));
|
|
Add(new GenericBuyInfo(typeof(Peach), 3, 20, 0x9D2, 0, true));
|
|
Add(new GenericBuyInfo(typeof(Pear), 3, 20, 0x994, 0, true));
|
|
Add(new GenericBuyInfo(typeof(Lemon), 3, 20, 0x1728, 0, true));
|
|
Add(new GenericBuyInfo(typeof(Lime), 3, 20, 0x172A, 0, true));
|
|
Add(new GenericBuyInfo(typeof(Grapes), 3, 20, 0x9D1, 0, true));
|
|
Add(new GenericBuyInfo(typeof(Apple), 3, 20, 0x9D0, 0, true));
|
|
Add(new GenericBuyInfo(typeof(SheafOfHay), 2, 20, 0xF36, 0));
|
|
Add(new GenericBuyInfo(typeof(Hoe), 5, 20, 3897, 0));
|
|
}
|
|
}
|
|
|
|
public class InternalSellInfo : GenericSellInfo
|
|
{
|
|
public InternalSellInfo()
|
|
{
|
|
Add(typeof(Pitcher), 5);
|
|
Add(typeof(Eggs), 1);
|
|
Add(typeof(Apple), 1);
|
|
Add(typeof(Grapes), 1);
|
|
Add(typeof(Watermelon), 3);
|
|
Add(typeof(YellowGourd), 1);
|
|
Add(typeof(GreenGourd), 1);
|
|
Add(typeof(Pumpkin), 5);
|
|
Add(typeof(Onion), 1);
|
|
Add(typeof(Lettuce), 2);
|
|
Add(typeof(Squash), 1);
|
|
Add(typeof(Carrot), 1);
|
|
Add(typeof(HoneydewMelon), 3);
|
|
Add(typeof(Cantaloupe), 3);
|
|
Add(typeof(Cabbage), 2);
|
|
Add(typeof(Lemon), 1);
|
|
Add(typeof(Lime), 1);
|
|
Add(typeof(Peach), 1);
|
|
Add(typeof(Pear), 1);
|
|
Add(typeof(SheafOfHay), 1);
|
|
}
|
|
}
|
|
}
|
|
} |