Package org.pokenet.server.network.message.shop

Examples of org.pokenet.server.network.message.shop.ShopBuyMessage


          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{
View Full Code Here

TOP

Related Classes of org.pokenet.server.network.message.shop.ShopBuyMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.