Package net.sf.l2j.gameserver.serverpackets

Examples of net.sf.l2j.gameserver.serverpackets.SendTradeDone


        L2PcInstance partner = player.getActiveRequester();
        if (partner == null || L2World.getInstance().findObject(partner.getObjectId()) == null)
        {
            // Trade partner not found, cancel trade
      player.sendPacket(new SendTradeDone(0));
            SystemMessage msg = new SystemMessage(SystemMessageId.TARGET_IS_NOT_FOUND_IN_THE_GAME);
            player.sendPacket(msg);
      player.setActiveRequester(null);
      msg = null;
            return;
View Full Code Here


    }
   
    _activeTradeList.lock();
    _activeTradeList = null;
   
    sendPacket(new SendTradeDone(0));
    SystemMessage msg = new SystemMessage(SystemMessageId.S1_CANCELED_TRADE);
    msg.addString(partner.getName());
    sendPacket(msg);
  }
View Full Code Here

   * @param successfull the successfull
   */
  public void onTradeFinish(boolean successfull)
  {
    _activeTradeList = null;
    sendPacket(new SendTradeDone(1));
    if (successfull)
    {
      sendPacket(new SystemMessage(SystemMessageId.TRADE_SUCCESSFUL));
    }
  }
View Full Code Here

TOP

Related Classes of net.sf.l2j.gameserver.serverpackets.SendTradeDone

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.