m_money = m_money - (q * m_currentShop.getPriceForItem(id));
m_bag.addItem(id, q);
this.updateClientMoney();
//Let player know he bought the item
TcpProtocolHandler.writeMessage(m_tcpSession,
new ShopBuyMessage(GameServer.getServiceManager().getItemDatabase().getItem(id).getId()));
//Update player inventory
TcpProtocolHandler.writeMessage(m_tcpSession, new ItemMessage(true,
GameServer.getServiceManager().getItemDatabase().getItem(id).getId(), 1));
}
}else{