Package net.sf.l2j.gameserver.model

Examples of net.sf.l2j.gameserver.model.PcFreight


    private void showWithdrawWindowFreight(L2PcInstance player)
    {
        player.sendPacket(new ActionFailed());
        if (Config.DEBUG) _log.fine("Showing freightened items");

        PcFreight freight = player.getFreight();

        if (freight != null)
        {
          if (freight.getSize() > 0)
          {
            if (Config.ALT_GAME_FREIGHTS)
            {
                  freight.setActiveLocation(0);
            } else
            {
              freight.setActiveLocation(getWorldRegion().hashCode());
            }
              player.setActiveWarehouse(freight);
              player.sendPacket(new WareHouseWithdrawalList(player, WareHouseWithdrawalList.FREIGHT));
          }
          else
View Full Code Here


                _log.warning("Error retrieving a target object for char " + player.getName()
                    + " - using freight.");
            return;
        }

        PcFreight freight = destChar.getFreight();
      if (Config.ALT_GAME_FREIGHTS)
      {
            freight.setActiveLocation(0);
      } else
      {
        freight.setActiveLocation(getWorldRegion().hashCode());
      }
        player.setActiveWarehouse(freight);
        player.tempInvetoryDisable();
        destChar.deleteMe();
View Full Code Here

  {
    if (_count == -1) return;
    L2PcInstance player = getClient().getActiveChar();
        if (player == null) return;
    L2PcInstance target = L2PcInstance.load(_objectID);
    PcFreight freight = target.getFreight();
    getClient().getActiveChar().setActiveWarehouse(freight);
    target.deleteMe();
        ItemContainer warehouse = player.getActiveWarehouse();
        if (warehouse == null) return;
    L2FolkInstance manager = player.getLastFolkNPC();
View Full Code Here

TOP

Related Classes of net.sf.l2j.gameserver.model.PcFreight

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.