/**
* Show the bank window
*/
public void showShop(Shop shop) {
RSCPacketBuilder s = new RSCPacketBuilder();
s.setID(253);
s.addByte((byte) shop.size());
s.addByte((byte) (shop.general() ? 1 : 0));
s.addByte((byte) shop.sellModifier());
s.addByte((byte) shop.buyModifier());
for (InvItem i : shop.getItems()) {
s.addShort(i.id);
s.addShort(i.amount);
s.addInt(Formulae.getPrice(
shop.getItems().get(Formulae.getItemPos(shop, i.id)), shop,
true));
s.addInt(Formulae.getPrice(
shop.getItems().get(Formulae.getItemPos(shop, i.id)), shop,
false));
}
packets.add(s.toPacket());
}