Examples of pickupMe()


Examples of l2p.gameserver.model.items.L2ItemInstance.pickupMe()

          }
        }
        target.deleteMe();
        return;
      }
      if(!target.pickupMe(this))
      {
        owner.sendActionFailed();
        return;
      }
    }
View Full Code Here

Examples of l2p.gameserver.model.items.L2ItemInstance.pickupMe()

        if(!getInventory().validateCapacity(item))
        {
          sendPacket(Msg.YOUR_INVENTORY_IS_FULL);
          return;
        }
        if(!item.pickupMe(this))
        {
          return;
        }
        sendPacket(SystemMessage.obtainItems(item));
        Log.LogItem(this, Log.PickupItem, getInventory().addItem(item));
View Full Code Here

Examples of l2p.gameserver.model.items.L2ItemInstance.pickupMe()

        }
        sendChanges();
      }
      else if(item.getItemId() == 57)
      {
        if(!item.pickupMe(this))
        {
          return;
        }
        getParty().distributeAdena(item, this);
      }
View Full Code Here

Examples of l2p.gameserver.model.items.L2ItemInstance.pickupMe()

        getParty().distributeAdena(item, this);
      }
      else
      {
        // Нужно обязательно сначало удалить предмет с земли.
        if(!item.pickupMe(null))
        {
          return;
        }
        getParty().distributeItem(this, item);
      }
View Full Code Here

Examples of lineage2.gameserver.model.items.ItemInstance.pickupMe()

      FlagItemAttachment attachment = item.getAttachment() instanceof FlagItemAttachment ? (FlagItemAttachment) item.getAttachment() : null;
      if (attachment != null)
      {
        return;
      }
      item.pickupMe();
    }
    if ((owner.getParty() == null) || (owner.getParty().getLootDistribution() == Party.ITEM_LOOTER))
    {
      getInventory().addItem(item);
      sendChanges();
View Full Code Here

Examples of lineage2.gameserver.model.items.ItemInstance.pickupMe()

      {
        if (pickupItem(item, Log.Pickup))
        {
          broadcastPacket(new GetItem(item, getObjectId()));
          broadcastPickUpMsg(item);
          item.pickupMe();
        }
      }
      else
      {
        getParty().distributeItem(this, item, null);
View Full Code Here

Examples of net.sf.l2j.gameserver.model.L2ItemInstance.pickupMe()

            }
            if(target.getItemLootShedule() != null
              && (target.getOwnerId() == getOwner().getObjectId() || getOwner().isInLooterParty(target.getOwnerId())))
            target.resetOwnerTimer();

            target.pickupMe(this);

            if(Config.SAVE_DROPPED_ITEM) // item must be removed from ItemsOnGroundManager if is active
          ItemsOnGroundManager.getInstance().removeObject(target);
    }
View Full Code Here

Examples of net.sf.l2j.gameserver.model.L2ItemInstance.pickupMe()

      {
        target.resetOwnerTimer();
      }
     
      // Remove the L2ItemInstance from the world and send server->client GetItem packets
      target.pickupMe(this);
      if (Config.SAVE_DROPPED_ITEM)
      {
        ItemsOnGroundManager.getInstance().removeObject(target);
      }
     
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.