Package l2p.gameserver.model

Examples of l2p.gameserver.model.L2TradeList


    L2Player activeChar = getClient().getActiveChar();
    if(activeChar == null)
    {
      return;
    }
    L2TradeList tradeList = activeChar.getTradeList();
    if(tradeList != null)
    {
      tradeList.setBuyStoreName(_storename);
      sendPacket(new PrivateStoreMsgBuy(activeChar));
    }
  }
View Full Code Here


    L2Player activeChar = getClient().getActiveChar();
    if(activeChar == null)
    {
      return;
    }
    L2TradeList tradeList = activeChar.getTradeList();
    if(tradeList != null)
    {
      tradeList.setSellStoreName(_storename);
      sendPacket(new PrivateStoreMsgSell(activeChar, false));
    }
  }
View Full Code Here

      {
        i.setCount(inst.getCount());
      }
      _sellList.add(i);
    }
    L2TradeList _list = new L2TradeList(0);
    // Строим список вещей, годных для продажи имеющихся в инвентаре
    for(L2ItemInstance item : seller.getInventory().getItemsList())
    {
      if(item != null && item.canBeTraded(seller) && item.getItemId() != L2Item.ITEM_ID_ADENA)
      {
        _list.addItem(item);
      }
    }
    _haveList = new ConcurrentLinkedQueue<TradeItem>();
    // Делаем список для собственно передачи с учетом количества
    for(L2ItemInstance item : _list.getItems())
    {
      TradeItem ti = new TradeItem();
      ti.setObjectId(item.getObjectId());
      ti.setItemId(item.getItemId());
      ti.setCount(item.getCount());
View Full Code Here

    L2Player activeChar = getClient().getActiveChar();
    if(activeChar == null)
    {
      return;
    }
    L2TradeList tradeList = activeChar.getTradeList();
    if(tradeList != null)
    {
      tradeList.setSellStoreName(_storename);
      sendPacket(new PrivateStoreMsgSell(activeChar, true));
    }
  }
View Full Code Here

          activeChar.getTradeList().removeAll();
          activeChar.sendPacket(new SendTradeDone(0));
        }
        else
        {
          activeChar.setTradeList(new L2TradeList(0));
        }
        activeChar.getTradeList().updateSellList(activeChar, activeChar.getSellList());
        activeChar.setPrivateStoreType(L2Player.STORE_PRIVATE_NONE);
        activeChar.standUp();
        activeChar.broadcastUserInfo(true);
        if(!activeChar.checksForShop(false))
        {
          activeChar.sendActionFailed();
          return;
        }
        activeChar.sendPacket(new PrivateStoreManageList(activeChar, _actionId == 61));
        break;
      }
      case 28: // Запрос на создание приватного магазина покупки
      {
        if(activeChar.isInTransaction())
        {
          activeChar.getTransaction().cancel();
        }
        if(activeChar.getTradeList() != null)
        {
          activeChar.getTradeList().removeAll();
          activeChar.sendPacket(new SendTradeDone(0));
        }
        else
        {
          activeChar.setTradeList(new L2TradeList(0));
        }
        activeChar.setPrivateStoreType(L2Player.STORE_PRIVATE_NONE);
        activeChar.standUp();
        activeChar.broadcastUserInfo(true);
        if(!activeChar.checksForShop(false))
View Full Code Here

      body_part = tempItem.getBodyPart();
      type2 = tempItem.getType2ForPackets();
      owner_price = e.getOwnersPrice();
      buylist.add(new BuyItemInfo(_id, count, store_price, body_part, type2, owner_price));
    }
    _list = new L2TradeList(0);
    for(L2ItemInstance item : buyer.getInventory().getItems())
    {
      if(item != null && item.canBeTraded(buyer) && item.getItemId() != L2Item.ITEM_ID_ADENA)
      {
        for(TradeItem ti : buyer.getBuyList())
View Full Code Here

TOP

Related Classes of l2p.gameserver.model.L2TradeList

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.