{
player.sendPacket(Msg._HERE_YOU_CAN_BUY_ONLY_SEEDS_OF_S1_MANOR);
}
else
{
NpcTradeList tradeList = new NpcTradeList(0);
List<SeedProduction> seeds = castle.getSeedProduction(CastleManorManager.PERIOD_CURRENT);
for (SeedProduction s : seeds)
{
TradeItem item = new TradeItem();
item.setItemId(s.getId());
item.setOwnersPrice(s.getPrice());
item.setCount(s.getCanProduce());
if ((item.getCount() > 0) && (item.getOwnersPrice() > 0))
{
tradeList.addItem(item);
}
}
BuyListSeed bl = new BuyListSeed(tradeList, castleId, player.getAdena());
player.sendPacket(bl);
}