Example #1
0
  @Override
  protected final void writeImpl() {
    writeC(0xE9);
    writeD(_money); // money
    writeD(0x00); // lease ?
    writeH(_sellList.size()); // list size

    for (L2ItemInstance item : _sellList.keySet()) {
      writeH(item.getItem().getType1());
      writeD(item.getObjectId());
      writeD(item.getItemId());
      writeD(_sellList.get(item)); // count
      writeH(item.getItem().getType2());
      writeH(0); // unknown
      writeD(0); // price, u shouldnt get any adena for crops, only raw materials
    }
  }
Example #2
0
 public final SystemMessage addItemName(final L2ItemInstance item) {
   return addItemName(item.getItem().getItemId());
 }